1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Commit Graph

36 Commits

Author SHA1 Message Date
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
1d5da8bccb Get rid of redundant/useless tonumber()s in script arg processing 2014-09-20 06:03:25 +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
batrick
5161b8642a stdnse.print_debug -> stdnse.debug1
$ sed -i 's/stdnse.print_debug(1, "%s: \([^"]*\)", SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
2014-08-01 21:29:42 +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
dmiller
86c8703486 Let dns-brute read candidate SRV records from dns-srv-names instead of hard-coded list 2013-11-01 22:10:37 +00:00
dmiller
40e9fe4746 Refactor dns-brute for readability 2013-11-01 21:48:54 +00:00
dmiller
85a86ecf8e Let dns-brute read candidates from vhosts-default.lst instead of hard-coded list 2013-11-01 21:48:53 +00:00
dmiller
9f1d2c472d Replace print() calls with stdnse.print_debug()
NSE scripts should not send data to stdout with print(). One exception
was not altered: url-snarf states in its documentation that urls are
sent to stdout by default, with a script-arg option to save to a file
instead.
2013-11-01 17:01:18 +00:00
dmiller
84c944fb71 Add xmloutput for dns-brute 2013-11-01 17:01:16 +00:00
dmiller
a606766d88 Allow dns-brute.hostlist to be a relative path 2013-04-26 12:14:40 +00:00
patrik
448bb5a71b fixed a bug in a loop where the script would wait for a condition that was
supposed to be signalled by other threads which were no longer running.
2012-08-29 05:37:56 +00:00
perdo
5ac6c7d64a Fixed errors found by nse_check_globals. 2012-06-06 22:23:02 +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
djalal
8a175d127d o [NSE] added a debug message in the prerule to show that some arguments are missing. 2011-11-09 12:39:01 +00:00
david
aceb760703 Change CRLF line endings back to LF in dns-brute.nse. 2011-11-02 16:50:37 +00:00
paulino
ea31c702ad Minor modification to add the entry "direct" to the default host list. This is a common dns entry found in hosts protected by Cloudflare (www.cloudflare.com) It is Cloudflare's default dns name for the entry pointing to the real host ip. 2011-11-02 10:16:30 +00:00
paulino
26dc09ad43 Gets arguments with stdnse.get_script_args instead of reading them from nmap.registry 2011-07-27 03:28:13 +00:00
fyodor
536e00ea42 Went through all the new (since 5.51) scripts and improved (I hope) the nsedoc descriptions a bit and made some other very minor cleanups 2011-06-29 01:29:14 +00:00
david
4fc1ea786b Remove redundant "Result:" label from dns-brute.nse output. Use the
"name" feature of format_output instead of inserting putative data rows
for labels.
2011-03-15 17:12:45 +00:00
fyodor
0b7b41d05f Trivial reword to fix a little grammar/typo problem 2011-03-06 09:34:57 +00:00
david
eacb827eee Don't require the dns-brute.domain argument to be given to add new
targets.
2011-03-05 21:16:18 +00:00
david
66a7e95105 Simple portrule: trust whatever the user gives us. 2011-03-05 21:16:16 +00:00
david
da79e0aaa2 Use a rewritten guess_domain function and bail out if the domain isn't
known.

Previously it would solider on even if given only an IP address, trying
names like ftp.168.0.1 and www.168.0.1.
2011-03-05 21:16:13 +00:00
david
cc4019aedd Make domainname local rather than global. I expect this would cause
problems more tha one instance of this script were run at once.
2011-03-05 21:16:12 +00:00
david
4e43fff90a Signal the condvars when threads are finished. 2011-03-05 21:16:11 +00:00
david
6399fe23c3 Look up IPv6 records unconditionally. 2011-03-05 21:16:08 +00:00
david
10ae05791c Localize functions. 2011-03-05 21:16:07 +00:00
david
c2ca0ded54 Pass an interator instead of separate arguments to thread functions. 2011-03-05 21:16:06 +00:00
david
4225147e6c Use stdnse.print_debug. 2011-03-05 21:16:04 +00:00
david
bdbf332562 Use a unified resolve function. 2011-03-05 21:16:03 +00:00
david
3626dacbca Put the lists of host names and srv names at the file level. 2011-03-05 21:16:01 +00:00
david
3f7649b4ec Remove the dns-brute.cclass reverse name resolution. It's probably
better to use Nmap's existing fast reverse resolver.
2011-03-05 21:16:00 +00:00
david
3fe40dd995 Add dns-brute.nse. 2011-03-05 21:15:58 +00:00