-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.py
66 lines (52 loc) · 2.1 KB
/
install.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
import os
import sys
import time
def installationController():
# install the dependencies
installationDnscan()
installtionHarvester()
# create directory installation to store the results
# know if it's windows or linux
if os.name == "nt":
if not os.path.exists("results"):
os.system("md results")
os.system("md results\\easy")
os.system("md results\\full")
os.system("md results\\easy\\dnscan")
os.system("md results\\easy\\theHarvester")
os.system("md results\\easy\\urlscan")
os.system("md results\\easy\\shodan")
os.system("md results\\full\\dnscan")
os.system("md results\\full\\theHarvester")
os.system("md results\\full\\urlscan")
os.system("md results\\full\\shodan")
else:
if not os.path.exists("results"):
os.system("mkdir results")
os.system("mkdir results/easy")
os.system("mkdir results/full")
os.system("mkdir results/easy/dnscan")
os.system("mkdir results/easy/theHarvester")
os.system("mkdir results/full/dnscan")
os.system("mkdir results/full/theHarvester")
os.system("mkdir results/easy/urlscan")
os.system("mkdir results/easy/shodan")
os.system("mkdir results/full/urlscan")
os.system("mkdir results/full/shodan")
def installationDnscan():
if not os.path.exists("dnscan"):
os.system("git clone https://github.com/rbsec/dnscan.git")
# install the dependencies
print("Dependency installation DnScan...")
time.sleep(1)
os.system("pip install -r dnscan/requirements.txt")
print("Installation complete!\n")
def installtionHarvester():
if not os.path.exists("harvester"):
os.system("git clone https://github.com/laramies/theHarvester.git")
# install the dependencies
print("Dependency installation TheHarvester...")
time.sleep(1)
os.system("pip3 install -r theHarvester/requirements.txt")
print("Installation complete!\n")
installationController()