forked from conix-security/BTG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·68 lines (62 loc) · 2.24 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2018 Conix Cybersecurity
#
# This file is part of BTG.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
import os
import setuptools
import sys
import BTG
_PATH = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(_PATH, 'BTG'))
if 'SUDO_USER' in os.environ:
USER = os.environ['SUDO_USER']
CONFIG_PATH = "/home/%s/.config/BTG" % USER
else:
CONFIG_PATH = os.path.expanduser("~/.config/BTG")
with open("README.rst", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="BTG",
packages=setuptools.find_packages(),
version="2.2.1",
author="Maxou56800",
author_email="[email protected]",
description="This tool allows you to qualify one or more potential malicious observables of various type (URL, MD5, SHA1, SHA256, SHA512, IPv4, IPv6, domain etc..)",
long_description=long_description,
url="https://github.com/Maxou56800/BTG",
keywords=["ioc"],
license="GPLv3",
classifiers=(
'Operating System :: POSIX :: Linux',
'Intended Audience :: Science/Research',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Information Technology',
'Programming Language :: Python :: 3',
'Topic :: Security',
'Topic :: Internet',
),
package_data={'BTG': ["data/modules_descriptor.csv"]},
include_package_data=True,
data_files=[(CONFIG_PATH, ["BTG/config/btg.cfg"])],
entry_points={
'console_scripts': [
'btg = BTG.BTG:main'
],
},
)
os.chmod(CONFIG_PATH+"/btg.cfg", 0o666)
os.chmod(_PATH+"/BTG/data/modules_descriptor.csv", 0o666)