File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 69
69
import re
70
70
71
71
ver = sys .version
72
- print (f'Version: { ver } ' )
73
72
pattern = re .compile ('\A\d{1}.{1,3}\d{1}.{1}\d{1}.{1}' )
74
73
ver = re .findall (pattern , ver )
75
74
@@ -171,6 +170,8 @@ def readip():
171
170
-----------------
172
171
17 - Run a fast ping scan on a large IP range. No service detection or port scanning is done.
173
172
-----------------
173
+ 18 - Scan http for default credentials -- https://github.com/nnposter/nndefaccts
174
+ -----------------
174
175
''' )
175
176
176
177
# select the OS. Posix needs sudo appeneded for some scans.
@@ -458,3 +459,12 @@ def readip():
458
459
print (f'{ sudo } nmap -n -sP --min-rate 1000 --max-retries 0 --max-rtt-timeout 100ms --max-scan-delay 0 { IPAddress } ' )
459
460
print ()
460
461
print ('--' * 45 )
462
+ #
463
+ elif nmapTest == 18 :
464
+ # 18 Default Credentials scan
465
+ IPAddress = readip ()
466
+ print ('--' * 45 )
467
+ print ()
468
+ print (f'{ sudo } nmap --script http-default-accounts --script-args http-default-accounts.fingerprintfile=~/http-default-accounts-fingerprints-nndefaccts.lua -p 80 { IPAddress } ' )
469
+ print ()
470
+ print ('--' * 45 )
You can’t perform that action at this time.
0 commit comments