-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnmap-pro.py
More file actions
89 lines (68 loc) · 2.52 KB
/
nmap-pro.py
File metadata and controls
89 lines (68 loc) · 2.52 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
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
import socket
import threading
import os
cyan = "\033[1;36;40m"
green = "\033[1;32;40m"
red = "\033[1;31;40m"
Y = '\033[1;33;40m'
print(cyan +"""
▒█▄░▒█ █▀▄▀█ █▀▀█ █▀▀█ ░░ ▒█▀▀█ █▀▀█ █▀▀█
▒█▒█▒█ █░▀░█ █▄▄█ █░░█ ▀▀ ▒█▄▄█ █▄▄▀ █░░█
▒█░░▀█ ▀░░░▀ ▀░░▀ █▀▀▀ ░░ ▒█░░░ ▀░▀▀ ▀▀▀▀
------------------------------------------------
| CREATED BY : RetroPackets |
| GITHUB : https://github.com/RetroPackets |
| INSTAGRAM : @retropacketz |
------------------------------------------------""")
print ("")
print (red +"WARNING: This scan can take a while depending on your network speed")
print (red + "so have a cup of coffee and relax until finished 😎")
print (cyan +"")
target = input("""Target: """) # scan local host
print("")
def port_scanner(port):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target, port))
print(green + f"""[*] Port {port} is open""")
except:
pass
for port in range(1,10000):
thread = threading.Thread(target =port_scanner, args=[port])
thread.start()
print ("")
print (Y + "[*] Confirming Results For " + target, "With Nmap...")
print (green + "")
os.system("sudo nmap --top-ports 50 " + target)
print ("")
print (Y + "[*] Scanning Using TCP Protocols For: " + target)
print (green + "")
os.system("sudo nmap -sT " + target)
print ("")
print (Y + "[*] Scanning Using UDP Protocols For: " + target)
print(green + "")
os.system("sudo nmap -sU " + target)
print ("")
print (Y + "[*] Performing OS/Service Detection On: " + target)
print (green + "")
os.system("sudo nmap -A -T4 " + target)
print ("")
print (Y + "[*] Detecting Service/Daemon Versions For: " + target)
print (green + "")
os.system("sudo nmap -sV " + target)
print ("")
print (Y + "[*] Performing CVE Detection For: " + target)
print (green + "")
os.system("sudo nmap -Pn --script vuln " + target)
print ("")
print (Y + "[*] Detecting Malware Infections On Remote Hosts For: " + target)
print (green + "")
os.system("sudo nmap -sV --script=http-malware-host " + target)
print ("")
#print (Y +"")
#question = input("Would you like to run a dos attack on the target [y/n]: ")
#if question == ("y"):
# print (green +"")
# os.system("cd src/hammer && python torshammer.py -p 80 -r 5000 -t " + target)
#elif answer == ("n"):
# print("Moving On...")