Commit Graph

15 Commits

Author SHA1 Message Date
dmiller 3e3f600b8a Update default-category scripts to use bitwise operators instead of bit.lua 2017-03-13 14:58:56 +00:00
dmiller fa2527fd34 Add NSEdoc signal '---' to some scripts 2015-11-17 19:12:03 +00:00
dmiller f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +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 fb67a6717e Re-indent some libs and scripts, change 4 to 2-space indent
Mostly found with:

    for i in nselib/*.lua scripts/*.nse; do
      echo $(perl -lne 'BEGIN{$a=$p=0}next unless $_;/^(\s*)/;' \
        -e '$l=length$1;next if$l==$p;$a+=(abs($l-$p)-$a)/$.;' \
        -e '$p=$l;END{print$a}' $i) $i
    done | sort -nr

And indented with: https://gist.github.com/bonsaiviking/8845871

whois-ip.nse was particularly mangled (probably my fault due to using
vim's built-in indentation script, but it could be structured better)
2014-02-06 23:25:28 +00:00
dmiller db1d82ad1f Fixed global assignments with nse_check_globals
All fixes made by hand. A couple real bugs/errors fixed, due to
copy-paste of code from other scripts without changing variable names.
2014-01-22 17:45:00 +00:00
fyodor 796c90ee0e Minor updates to the descriptions of some new scripts 2013-08-17 00:38:27 +00:00
david 118ee645b1 Run ventrilo-info only once for TCP and UDP.
Patch by Marin Maržić. http://seclists.org/nmap-dev/2013/q2/413.
2013-07-01 09:07:06 +00:00
david 201a5130a2 Fix nsedoc issues (missing ---, mostly)
Originally committed by dmiller but recommitted by david after recovery
from backup.
2013-04-12 17:29:16 +00:00
patrik d79e431e7a nse_check_globals cleanup 2013-01-28 04:28:38 +00:00
david 42b6489312 Limit ventrilo-info to port 3784 (TCP or UDP).
Cf. r30460. We may want to run on more port numbers than just this one,
because the server can be configured to run on other ports. But we don't
want it to run for every open|filtered UDP port by default. We don't
ahve a good way to express anything in between.
2013-01-16 00:29:08 +00:00
david 0a5677085d Some doc changes in ventrilo-info. 2013-01-16 00:29:07 +00:00
david b1ad58d68d Add ventrilo-info script from Marin Maržić.
http://seclists.org/nmap-dev/2012/q4/478
2013-01-16 00:29:05 +00:00