-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.py
More file actions
41 lines (31 loc) · 2.54 KB
/
Copy pathinstall.py
File metadata and controls
41 lines (31 loc) · 2.54 KB
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
if not os.geteuid() == 0:
sys.exit("""\033[1;91m\n[!] DonkeyScan installer must be run as root. ¯\_(ツ)_/¯\n\033[1;m""")
print(""" \033[1;36m
┌══════════════════════════════════════════════════════════════┐
█ █
█ DonkeyScan Installer █
█ █
└══════════════════════════════════════════════════════════════┘ \033[1;m""")
def main():
print("\033[1;34m\n[++] Please choose your operating system.\033[1;m")
print("""
1) Ubuntu / Kali linux / Others
2) Parrot OS
""")
system0 = raw_input(">>> ")
if system0 == "1":
print("\033[1;34m\n[++] Installing DonkeyScan ... \033[1;m")
install = os.system("sudo apt-get update && sudo apt-get install -y nmap build-essential python-pip ruby-dev git libpcap-dev libgmp3-dev && pip install tabulate terminaltables && pip install python-geoip-geolite2 requests socket pathlib && sudo apt install dnsrecon whois host traceroute")
install1 = os.system("""sudo mkdir -p /opt/dscan && sudo cp -R tools/ /opt/dscan/ && sudo cp dscan.py /opt/dscan/dscan.py && sudo cp banner.py /opt/dscan/banner.py && sudo cp enumerator.py /opt/dscan/enumerator.py && sudo ln -s /opt/dscan/dscan.py /usr/bin/dscan && sudo chmod +x /usr/bin/dscan && tput setaf 34; echo "DonkeyScan has been sucessfuly instaled. Execute 'dscan' in your terminal." """)
elif system0 == "2":
print("\033[1;34m\n[++] Installing DonkeyScan ... \033[1;m")
install = os.system("sudo apt-get update && sudo apt-get install -y nmap ruby-dev git libpcap-dev libgmp3-dev python-tabulate python-terminaltables && sudo pip install python-geoip-geolite2 requests pathlib socket && sudo apt install dnsrecon whois host traceroute")
install1 = os.system("""sudo mkdir -p /opt/dscan && sudo cp -R tools/ /opt/dscan/ && sudo cp dscan.py /opt/dscan/dscan.py && sudo cp banner.py /opt/dscan/banner.py && sudo cp enumerator.py /opt/dscan/enumerator.py && sudo ln -s /opt/dscan/dscan.py /usr/bin/dscan && sudo chmod +x /usr/bin/dscan && tput setaf 34; echo "DonkeyScan has been sucessfuly instaled. Execute 'dscan' in your terminal." """)
else:
print("Please select the option 1 or 2")
main()
main()