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
6637d76846
Use SOA request to get domain name in dns-zone-transfer. Fixes #3014
2025-07-14 19:17:09 +00:00
dmiller
0500811f5a
Move string utility functions to stringaux.lua
2018-10-18 01:08:19 +00:00
dmiller
5bffa604d9
Remove bin.lua unpacking from more scripts
2018-09-08 17:07:00 +00:00
dmiller
24c5ff63b2
Remove nearly all bit.lua use
2018-08-28 15:56:45 +00:00
dmiller
cb237c4468
Cross-reference DNS name enumeration scripts
2017-09-08 19:40:24 +00:00
dmiller
f002aee6a9
Add TLSA type to dns-zone-transfer, refactor bto16
2016-07-21 22:27:30 +00:00
dmiller
f4619edece
Update http urls for nmap.org to https
2015-11-05 20:41:05 +00:00
dmiller
204d37e4d7
Replace packet.toip* and ip*tobin with ipOps.ip_to_str and str_to_ip
2015-02-27 19:42:46 +00:00
batrick
91a106e7d5
more stdnse.print_debug -> stdnse.debug
...
Manual corrections.
2014-08-02 03:15:44 +00:00
batrick
810f7d4803
more stdnse.print_debug -> stdnse.debug
...
This is a catchall pattern with a few exclusions.
$ sed -i 's/stdnse.print_debug( *\([0-9]*\) *, *\(.*\))/stdnse.debug\1(\2)/' *.nse
$ sed -i 's/stdnse.print_debug(\(.*\))/stdnse.debug1(\1)/' *.nse
Excluded:
$ svn revert db2-das-info.nse
$ svn revert flume-master-info.nse
$ svn revert http-headers.nse
$ svn revert http-methods.nse
$ svn revert http-unsafe-output-escaping.nse
$ svn revert http-userdir-enum.nse
$ svn revert http-vuln-cve2011-3192.nse
$ svn revert http-vuln-wnr1000-creds.nse
$ svn revert http-wordpress-plugins.nse
$ svn revert telnet-brute.nse
2014-08-02 02:46:16 +00:00
dmiller
1b71f75aad
Spelling fixes for Lua files
...
Mostly in documentation/comments, but a couple code bugs were caught,
including a call to stdnse.pirnt_debug and a mis-declared variable.
2014-02-19 04:15:46 +00:00
dmiller
31a2c432e1
Final re-indent for scripts.
2014-02-02 15:33:39 +00:00
dmiller
620f9fdb34
Remove trailing whitespace in lua files
...
Whitespace is not significant, so this should not be a problem.
https://secwiki.org/w/Nmap/Code_Standards
2014-01-23 21:51:58 +00:00
patrik
217b27bace
nse_check_globals cleanup
2012-07-24 10:08:43 +00:00
dmiller
39b96782b4
Update dns-zone-transfer with more RR types
...
Updated the type table to include the latest from
http://www.bind9.net/dns-parameters (18 June 2012). Fixed a bug in WKS
parser. Added parsers for NSAP, NSAP-PTR, PX, GPOS, ATMA, KX, A6, DNAME,
SINK (partial), SSHFP, and SPF.
2012-07-09 21:15:43 +00:00
dmiller
f1a3c26b66
Fixed dns-zone-transfer support of WKS records (tested with Bind9)
2012-07-09 18:50:21 +00:00
dmiller
8a4ebef626
Add more record types to dns-zone-transfer
...
New types: MD, MF, MB, MG, MR, WKS, HINFO, MINFO, RP, AFSDB, X25, ISDN,
RT, NAPTR. Several of these are obsolete/experimental. RP, AFSDB, and
NAPTR can be tested against zonetransfer.me. WKS (Well Known Services)
is very interesting, but little used, and not tested.
2012-07-09 16:02:28 +00:00
patrik
bb359adaa1
Played a round of nse_check_globals and fixed a bunch of reported problems.
2012-06-15 19:32:36 +00:00
patrik
a0a50e9f47
Commited a patch to dns-zone-transfer by Dan Miller with a slight change.
...
Unhandled records are returned as hex strings, rather than being url escaped;
http://seclists.org/nmap-dev/2012/q2/558
2012-06-15 14:58:32 +00:00
batrick
000f6dc4d9
Lua 5.2 upgrade [1] for NSE.
...
[1] http://seclists.org/nmap-dev/2012/q2/34
2012-05-27 08:53:32 +00:00
batrick
321e0d34e0
use # length operator instead of string.len (canonicalize)
...
Used this perl command:
$ # perl -pi -e 's/string\.len\((.*?)\)/#\1/g' *.nse
2011-05-11 15:12:47 +00:00
batrick
dc909f7d77
removed usage of deprecated table.getn
2011-05-11 14:41:06 +00:00
david
3ae3339cb7
Make the set of script "default and intrusive" empty.
...
These scripts got removed from default:
dhcp-discover
dns-zone-transfer
These scripts got removed from intrusive:
dns-recursion
ftp-bounce
http-open-proxy
socks-open-proxy
Thanks to Toni for noticing these.
2011-04-30 19:21:38 +00:00
david
31935a45d4
o [NSE] Fixed some portrules that used shortport functions incorrectly
...
and always returned true in dns-zone-transfer and
ftp-proftpd-backdoor. [Jost Krieger]
2011-02-04 08:46:14 +00:00
david
a9a5869173
Normalize tab.lua usage so that a call to tab.nextrow comes after (not
...
before) each group of tab.add, and there is no tab.nextrow before or
after tab.addrow. Also remove manual indenting that was accomplished by
padding the first column with spaces; this is done by
stdnse.format_output now.
2010-12-30 21:08:25 +00:00
david
357c15a165
Remove the "cols" parameter from calls to tab.new.
2010-12-30 21:08:18 +00:00
djalal
e4edb08571
Move the script argument checks to the rule functions.
2010-10-31 22:52:46 +00:00
djalal
7b9b094ea5
Make the script able to add new discovered DNS records onto Nmap scanning queue.
2010-10-20 15:47:54 +00:00
djalal
9c132cd72f
Remove unused variable.
2010-09-30 19:00:25 +00:00
david
60636135a2
Fix whitespace in dns-zone-transfer.nse.
2010-09-30 17:05:12 +00:00
david
e7fc9c4c5f
Change " \n" to just "\n" where appropriate in NSE. Leading newlines are
...
no longer removed from script output.
2010-09-30 05:03:39 +00:00
david
ae9c5d6922
Use args of the form dns-zone-transfer.domain instead of dnszonetransfer.domain
...
in dns-zone-transfer.nse. Keep the old forms as undocumented aliases.
2010-09-29 18:57:07 +00:00
djalal
1f9b7228ee
Add a 'prerule' support to dns-zone-transfer.nse script, with this change dns-zone-transfer can run now at differenent Nmap scan phases: at the Script Pre-scanning phase and at the classic Script scanning one.
2010-08-06 16:47:11 +00:00
david
b9633ed69b
Do copyediting of NSEDoc. This is a first pass up to ms-sql-xp-cmdshell.
2010-07-09 23:32:18 +00:00
fyodor
35a28ea343
canonicalize some license text that differed in whitespace or quote character or line-ending or (in a couple cases) the slightly older wording
2010-06-11 06:54:56 +00:00
fyodor
d85c8d3603
Typo fix: reponses -> responses
2010-01-27 02:05:01 +00:00
fyodor
785126a4a9
Some minor canonicalization of the author fileds in NSE scripts
2010-01-19 08:28:30 +00:00
batrick
610bd0a55b
Merge from Dependencies branch (nmap-exp/patrick/dependencies)
...
with modifications from [2].
** Short description from [1] **
I have created a patch to NSE that replaces runlevels with a table of
dependencies that clearly outlines what other scripts the script
depends on. The table is of the form:
dependences = {"script1", script2", ...}
Runlevels become an internal representation of the order of scripts
that are generated by the dependencies. Dependencies only enforce
an execution order and not a requirement for execution.
[1] http://seclists.org/nmap-dev/2009/q4/295
[2] http://seclists.org/nmap-dev/2009/q4/446
2009-12-30 02:34:05 +00:00
fyodor
77ab5c4305
Remove email addresses from scripts as discussed in this thread: http://seclists.org/nmap-dev/2009/q4/466
2009-11-24 08:49:02 +00:00
bmenrigh
a0bf12e674
Fixed a typo where quad-A records (AAAA) were listed as AAAAA. Thanks
...
to Jeron Massar for the report.
2009-09-08 22:32:45 +00:00
joao
52bb4f7cd0
dns-zone-transfer.nse now accepts new syntax argument table
...
comments updated
2009-07-05 10:01:10 +00:00
david
62aa04c11a
In dns-zone-transfer.nse, return "<parse error>" in case domain decoding fails.
...
otherwise there is an assertion failure trying to insert a nil into an output
table in tab.lua. Increase the maximum number of message compression pointers
we will follow in dns.lua from 3 to 10, because Brandon found a server that
used 4..
2009-02-27 20:16:29 +00:00
david
2d018963ca
Use dns.decStr in dns-zone-transfer.nse instead of a custom DNS decoder. This
...
avoids an infinite recursion bug present in the old decoder. I raised the
number of compression pointers that dns.decStr will follow from 1 to 3 because
I found a server that sent 2.
2009-02-10 00:53:26 +00:00
david
590e7b7574
Fix abug in the DNS parser in dns-zone-transfer.nse: All '0' characters in
...
domain names were changed to '.', probably as a result of some code that wasn't
updated when surrounding code was. This changed the name net360.example.com to
net36..example.com.
2009-02-08 04:33:43 +00:00
david
e6d6e8d83e
Fixed a DNS decoding bug in dns-zone-transfer.nse that created
...
garbage output and could crash Zenmap by including 0x0C bytes in XML
files. The Zenmap crash looked like
SAXParseException: .../zenmap-XXXXXX.xml:39:290: not well-formed (invalid token)
2009-02-06 19:25:11 +00:00
david
8f7d2c9974
Split dns-zone-transfer usage across two lines.
2008-11-11 00:35:08 +00:00
david
cb998f9af0
Rename the script arg table owned by dns-zone-transfer.nse from zoneTrans to
...
dnszonetransfer.
2008-11-11 00:19:51 +00:00
david
d293dec977
Rename the script zone-transfer.nse to dns-zone-transfer.nse.
2008-11-11 00:11:12 +00:00