-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
58 lines (50 loc) · 1.97 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
from sys import exit
from subprocess import Popen, PIPE
from os import environ
from setuptools import setup, find_packages
from setuptools.command.install import install
with open('README.md', 'r') as desc:
long_desc = desc.read()
class InstallDependencies(install):
def run(self):
# Install Go
try:
# Debian based
process = Popen(['/usr/bin/apt-get', 'install', 'golang', '-y'], stdout=PIPE)
except IOError:
# Fedora/Red hat
process = Popen(['/usr/bin/dnf', 'install', 'golang', '-y'], stdout=PIPE)
process.communicate()[0].decode('utf-8')
# Get GAU dependency
process = Popen(['/usr/bin/go', 'get', '-u', 'github.com/lc/gau'], stdout=PIPE)
process.communicate()[0].decode('utf-8')
try:
process = Popen(['/bin/cp', f'{environ["HOME"]}/go/bin/gau', '/usr/bin/gau'], stdout=PIPE)
except EnvironmentError:
print('This installer requires root permissions to copy Gau into /usr/bin/gau')
exit(1)
process.communicate()[0].decode('utf-8')
install.run(self)
setup(
name = 'OOB Fuzz',
version = '0.1.0',
author = 'Casper G. Nielsen',
author_email = '[email protected]',
description = 'Conduct OOB Fuzzing of targets with payloads towards callback server',
long_description = long_desc,
long_description_content_type = 'text/markdown',
url = 'https://github.com/CasperGN/oobfuzz',
cmdclass={'install': InstallDependencies},
packages = find_packages(),
include_package_data = True,
install_requires=[
'requests',
'pyopenssl',
'cffi',
],
classifiers = [
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
],
python_requires = '>=3.4',
)