Abdellah Erraoui
57e0859984
fix(winbox): harden mikrotik-routeros-username-brute, improve version probe
...
mikrotik-routeros-username-brute aborts on a Lua error whenever the
wordlist holds a line longer than 219 characters: the payload is framed
with a single length byte, so string.char() rejects the result and the
whole script dies, leaving the rest of the wordlist untried.
The wordlist reader also probes blank and whitespace-only lines as
usernames, and treats lines beginning with '#' as candidates, sending a
needless request for each.
Fixes:
- validate the payload length and skip overlong usernames instead of
aborting (default cap 32, matching the RouterOS limit, overridable
with ...maxuserlen)
- skip blank lines, '#' comments and duplicate entries
- return argument errors through the standard status/message pair;
they were previously returned silently because NSE only renders the
second return value when the first is false
Adds:
- ...threads number of parallel worker threads (default 5)
- ...delay per-thread delay between attempts (default 0.5)
- ...retries connection attempts per username (default 1)
Attempts still use a fresh TCP session per username, as the device stops
answering after roughly three on the same session.
For mikrotik-routeros-version:
- ...attempts restrict which probes run (index, list)
- reject implausible response lengths advertised by the peer, which
could otherwise leave the socket waiting on a body that never arrives
- when no version can be read (RouterOS 7.1+ uses a different
handshake), still record the port as MikroTik WinBox
2026-10-11 20:38:55 +00:00
dmiller
27995ba97f
Use stdnse.silent_require for openssl throughout
2026-10-09 21:55:21 +00:00
dmiller
c39d0e2e0a
Don't look for missing files in current directory; use fetchfile
2026-10-09 14:41:47 +00:00
dmiller
41e8de7673
Fix some unrequired-library warnings
2026-10-05 15:44:26 +00:00
paulino
527ef01bf3
Add DICOM auditing suite (8 NSE scripts) and expand dicom.lua into a full DIMSE toolkit (C-STORE/FIND/GET/MOVE, role negotiation, DICOM-over-TLS) [Paulino Calderon]
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-10-03 04:41:30 +00:00
dmiller
1cabe71c7c
Only fetch UPNP XML from responding target
2026-10-01 17:23:25 +00:00
nnposter
feca0bac84
Use the correct portrule for the given arguments
2026-09-27 22:45:24 +00:00
dmiller
2b15708362
Avoid duplicate requests in vulners
2026-09-19 15:47:02 +00:00
dmiller
3da280ba11
Fix version truncation. Fixes #3492 . Closes #3493
2026-09-19 15:47:01 +00:00
dmiller
c691f47baf
Use receive_buf to simplify receiving a known length
2026-09-16 18:47:19 +00:00
dmiller
6e7b60c83d
check for SOA record to end AXFR response
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-09-15 19:34:19 +00:00
dmiller
9d9f7c2ed7
Let dns.query() use host table, not just IP address for host option
2026-09-15 19:34:18 +00:00
dmiller
5ac65cacc9
Do not attempt recursion for version.bind/id.server lookups
2026-09-15 19:34:16 +00:00
dmiller
c6ae85544d
Limit db2 packet to size needed for info struct
2026-09-14 17:42:06 +00:00
nnposter
d356e635a4
Cosmetic code cleanup
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-08-27 02:31:09 +00:00
nnposter
d233b45684
Implement XML output for script http-config-backup
2026-08-27 02:12:27 +00:00
nnposter
8b408ccb95
Use correct function to sanitize a filename. Close #3456
2026-08-27 02:05:53 +00:00
nnposter
4de0d186ff
Fix broken test for htaccess. See #3456
2026-08-27 01:49:50 +00:00
nnposter
4bf77dd693
Remove dead code
2026-08-27 01:46:18 +00:00
nnposter
0c17c3b367
Fix a trivial typo
2026-08-27 01:42:52 +00:00
nnposter
80b687140c
Implement XML output for script rsync-list-modules
2026-08-23 02:06:41 +00:00
nnposter
5c84f7f253
Rectify lint findings
2026-08-22 23:52:57 +00:00
dmiller
b6727c3de6
Bump version to 7.991SVN
2026-08-07 15:40:11 +00:00
dmiller
72544c0b9e
Add 's' service names to portrules
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-07-23 18:06:50 +00:00
dmiller
b3948715c4
Check for correct schema. Fixes #2221
2026-07-18 04:29:20 +00:00
dmiller
cd2a82b6c0
Categorize but don't fetch off-host URLs. Fixes #2238
2026-07-17 21:56:31 +00:00
dmiller
b47e7f07ef
Change explicit X==true to X
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-07-08 00:42:18 +00:00
dmiller
ce2b1e6d39
Change explicit X==false to not X
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-07-07 14:50:05 +00:00
dmiller
4d50070c7f
Remove hostmap-bfk. Fixes #2016
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-07-02 20:36:22 +00:00
dmiller
6a9bf48387
Check for start_smb failure. Fixes #1946
2026-07-01 02:06:11 +00:00
dmiller
5340f729b6
Check for parsing errors from Packet:new()
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-06-26 22:06:08 +00:00
dmiller
63a39b7a90
Remove unused ip param from smbauth functions. Fixes #268
2026-06-16 14:20:17 +00:00
dmiller
102ff6f098
Add needed service name to portrule. Fixes #1066
2026-06-01 20:34:02 +00:00
dmiller
1263089a52
Add a todo comment. Closes #552
2026-05-12 21:00:42 +00:00
dmiller
3f5a1bd4c1
Remove single-thread restriction from http-form-brute. Closes #264
2026-04-30 22:02:01 +00:00
dmiller
ba12d8b03e
Note a potential enhancement. Closes #63
2026-04-20 20:19:34 +00:00
dmiller
b14bba972f
Fix error when comm.opencon fails and banner is an oops object
2026-04-07 19:59:48 +00:00
nnposter
d379dc2a9a
Refresh script http-default-accounts. Close #3327
2026-04-06 02:34:02 +00:00
dmiller
deb076224e
Reintegrate Nmap 7.99 release branch
2026-03-27 13:52:02 +00:00
nnposter
407dd3d928
Do not return empty table as a result. Close #3325 .
2026-03-21 23:56:45 +00:00
nnposter
0707e01119
Treat ftp-brute banner errors as connection failures. Close #3260
2026-02-02 02:10:09 +00:00
nnposter
c04f4d1ba2
Add the option to preload stdnse.make_buffer with data. Close #3253
2026-02-02 01:42:06 +00:00
nnposter
ce0c08997e
Remove unused socket connect/close from ipp.Helper. Close #3245
2026-01-01 22:34:15 +00:00
nnposter
06a2c214a1
Check for a prefix, not a substring, and trivial cosmetics
2025-12-10 18:40:25 +00:00
nnposter
4d7ed415c0
Implement script argument hostmap-crtsh.lax. Close #3239 , fix #2183
2025-12-10 18:29:53 +00:00
nnposter
472b586767
Refactor the script to address multiple issues
...
- Add support for HTTPS
- Add support for IPv6
- Add support for more than one path argument
- Properly identify the Location header in the HTTP response
- Properly identify the destination host in the Location header
- Leverage normalized IP address comparison
- Avoid processing the HTTP response body, possibly "endless"
- Add the found IP address as a new scan target (optionally)
Close #3218 , close #3191 )
2025-12-02 23:55:01 +00:00
nnposter
c0a01aa7e1
Keep a local function local
2025-12-02 04:49:44 +00:00
nnposter
f5a3251e97
Use the correct the port range, 512-1023, not 513-1024.
...
Detect if binding a socket to a given port failed and retry.
Close #3196
2025-11-01 22:52:49 +00:00
nnposter
fcf6f0cb19
Use simpler/cheaper portrule
2025-10-08 23:08:04 +00:00
dmiller
6637d76846
Use SOA request to get domain name in dns-zone-transfer. Fixes #3014
2025-07-14 19:17:09 +00:00