-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (63 loc) · 2.99 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
from setuptools import setup, find_packages
from setuptools.command.install import install
import os
class CustomInstall(install):
def run(self):
install.run(self)
self.install_tools()
def install_tools(self):
os.system("sudo apt-get install golang-go -y")
os.system("sudo apt-get install whatweb -y")
os.system("sudo apt-get install subfinder -y")
os.system("go install -v github.com/tomnomnom/assetfinder@latest && cp ~/go/bin/assetfinder /usr/bin/assetfinder")
os.system("curl -LO https://github.com/findomain/findomain/releases/latest/download/findomain-linux-i386.zip && unzip findomain-linux-i386.zip && chmod +x findomain && sudo mv findomain /usr/bin/findomain && sudo rm findomain-linux-i386.zip")
os.system("sudo apt-get install sublist3r -y")
os.system("sudo apt-get install theharvester -y")
os.system("sudo apt-get install massdns -y")
os.system("sudo apt-get install dnsgen -y")
os.system("sudo apt-get install altdns -y")
os.system("sudo apt-get install wfuzz -y")
os.system("go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest && cp ~/go/bin/httpx /usr/bin/httpx")
os.system("go install github.com/projectdiscovery/katana/cmd/katana@latest && cp ~/go/bin/katana /usr/bin/katana")
os.system("go install github.com/hakluke/hakrawler@latest && cp ~/go/bin/hakrawler /usr/bin/hakrawler")
os.system("go install github.com/0xsha/GoLinkFinder@latest && cp ~/go/bin/GoLinkFinder /usr/bin/golinkfinder")
os.system("go install github.com/003random/getJS@latest && cp ~/go/bin/getJS /usr/bin/getjs")
os.system("go install github.com/tomnomnom/waybackurls@latest && cp ~/go/bin/waybackurls /usr/bin/waybackurls")
os.system("go install github.com/lc/gau/v2/cmd/gau@latest && cp ~/go/bin/gau /usr/bin/gau")
os.system("go install -v github.com/edoardottt/cariddi/cmd/cariddi@latest && cp ~/go/bin/cariddi /usr/bin/cariddi")
os.system("go install -v github.com/projectdiscovery/shuffledns/cmd/shuffledns@latestt && cp ~/go/bin/shuffledns /usr/bin/shuffledns")
os.system("sudo apt-get install gobuster -y")
setup(
name='otorecon',
version='1.0',
description= 'Otorecon, a bugbounty automation tool',
author='Mr0Wido',
author_email='[email protected]',
url='https://github.com/otorecon/otorecon',
license='MIT',
packages=find_packages(),
include_package_data=True,
install_requires=[
"requests",
"argparse",
"colorama",
"tldextract",
"beautifulsoup4",
"dnspython",
"Click",
],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
entry_points={
'console_scripts': [
'otorecon=main_tools.main:main',
],
},
cmdclass={
'install': CustomInstall,
}
)