Skip to content

Commit baa6132

Browse files
authored
Added menu 18 - default http credentials
1 parent 8ef2817 commit baa6132

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nmap3.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import re
7070

7171
ver = sys.version
72-
print(f'Version: {ver}')
7372
pattern = re.compile('\A\d{1}.{1,3}\d{1}.{1}\d{1}.{1}')
7473
ver = re.findall(pattern, ver)
7574

@@ -171,6 +170,8 @@ def readip():
171170
-----------------
172171
17 - Run a fast ping scan on a large IP range. No service detection or port scanning is done.
173172
-----------------
173+
18 - Scan http for default credentials -- https://github.com/nnposter/nndefaccts
174+
-----------------
174175
''')
175176

176177
# select the OS. Posix needs sudo appeneded for some scans.
@@ -458,3 +459,12 @@ def readip():
458459
print(f'{sudo} nmap -n -sP --min-rate 1000 --max-retries 0 --max-rtt-timeout 100ms --max-scan-delay 0 {IPAddress}')
459460
print()
460461
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)

0 commit comments

Comments
 (0)