forked from buffer/thug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
96 lines (89 loc) · 4.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/usr/bin/env python
import os
import glob
from setuptools import setup, find_packages
os.environ['BUILD_LIB'] = '1'
import thug
personalities_path = os.path.join(thug.__configuration_path__, "personalities")
rules_path = os.path.join(thug.__configuration_path__, "rules")
scripts_path = os.path.join(thug.__configuration_path__, "scripts")
plugins_path = os.path.join(thug.__configuration_path__, "plugins")
hooks_path = os.path.join(thug.__configuration_path__, "hooks")
html_rules_path = os.path.join(rules_path, "htmlclassifier")
js_rules_path = os.path.join(rules_path, "jsclassifier")
vbs_rules_path = os.path.join(rules_path, "vbsclassifier")
url_rules_path = os.path.join(rules_path, "urlclassifier")
sample_rules_path = os.path.join(rules_path, "sampleclassifier")
text_rules_path = os.path.join(rules_path, "textclassifier")
cookie_rules_path = os.path.join(rules_path, "cookieclassifier")
html_filter_path = os.path.join(rules_path, "htmlfilter")
js_filter_path = os.path.join(rules_path, "jsfilter")
vbs_filter_path = os.path.join(rules_path, "vbsfilter")
url_filter_path = os.path.join(rules_path, "urlfilter")
sample_filter_path = os.path.join(rules_path, "samplefilter")
text_filter_path = os.path.join(rules_path, "textfilter")
cookie_filter_path = os.path.join(rules_path, "cookiefilter")
setup(
name = "thug",
version = thug.__version__,
author = "Angelo Dell'Aera",
author_email = "angelo.dellaera@honeynet.org",
description = "Low-interaction honeyclient Thug",
license = "GPLv2",
long_description = open("README.rst").read(),
url = "http://buffer.github.io/thug/",
download_url = "https://github.com/buffer/thug/",
platforms = ["Linux", ],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 2.7",
"Topic :: Security",
],
package_data = {
"" : ["*.js"],
},
packages = find_packages(),
data_files = [
(thug.__configuration_path__, ["conf/thug.conf", ]),
(personalities_path , glob.glob("thug/DOM/personalities/*.json")),
(rules_path , glob.glob("thug/Classifier/rules/*.yar")),
(scripts_path , ["thug/DOM/thug.js",
"thug/DOM/storage.js",
"thug/DOM/date.js",
"thug/DOM/eval.js",
"thug/DOM/write.js",
"thug/Debugger/d8.js"]),
(plugins_path , []),
(hooks_path , []),
(html_rules_path , glob.glob("thug/Classifier/rules/htmlclassifier/*.yar")),
(js_rules_path , glob.glob("thug/Classifier/rules/jsclassifier/*.yar")),
(vbs_rules_path , glob.glob("thug/Classifier/rules/vbsclassifier/*.yar")),
(url_rules_path , glob.glob("thug/Classifier/rules/urlclassifier/*.yar")),
(sample_rules_path , glob.glob("thug/Classifier/rules/sampleclassifier/*.yar")),
(text_rules_path , glob.glob("thug/Classifier/rules/textclassifier/*.yar")),
(cookie_rules_path , glob.glob("thug/Classifier/rules/cookieclassifier/*.yar")),
(html_filter_path , glob.glob("thug/Classifier/rules/htmlfilter/*.yar")),
(js_filter_path , glob.glob("thug/Classifier/rules/jsfilter/*.yar")),
(vbs_filter_path , glob.glob("thug/Classifier/rules/vbsfilter/*.yar")),
(url_filter_path , glob.glob("thug/Classifier/rules/urlfilter/*.yar")),
(sample_filter_path , glob.glob("thug/Classifier/rules/samplefilter/*.yar")),
(text_filter_path , glob.glob("thug/Classifier/rules/textfilter/*.yar")),
(cookie_filter_path , glob.glob("thug/Classifier/rules/cookiefilter/*.yar")),
],
install_requires = open("requirements.txt").read().splitlines(),
entry_points = {
"console_scripts": [
"thug = thug.thug:main",
]
},
project_urls = {
'Bug Reports': 'https://github.com/buffer/thug/issues',
'Funding': 'https://buffer.github.io/thug/',
'Source': 'https://github.com/buffer/thug/',
},
)