batrick
a19c9eb461
stdnse.print_verbose -> stdnse.verbose1
...
$ sed -i 's/stdnse.print_verbose( *\([0-9]*\) *, *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.verbose\1("\2"/' *.nse
$ sed -i 's/stdnse.print_verbose( *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.verbose1("\1"/' *.nse
and some manual corrections.
2014-08-02 18:32:26 +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
2a8c81c4f6
stdnse.print_debug -> stdnse.debug1
...
$ sed -i 's/stdnse.print_debug("%s \([^"]*\)", SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
2014-08-01 21:35:56 +00:00
dmiller
c6d4febb46
Let lltd-discovery use unicode.lua
2014-03-06 20:29:23 +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
197f28265f
New function stdnse.format_mac
...
This function will format a MAC address as colon-separated hex bytes.
It's really very simple: stdnse.tohex(mac, {separator=":"})
This commit updates all the instances I could find of the varying
convoluted attempts at performing this conversion.
2014-01-16 21:50:30 +00:00
dmiller
fdb0f775e2
Update timeout script-args to use standard timespec
...
Many scripts were documented as using timespecs (10s, 5000ms, etc) for
timeout script-args, but one 1 or 2 actually did. Now all timeout
script-args will accept timespecs, except those which took a number of
milliseconds, which remain unchanged.
Also fixed some documentation issues (missing script name in arg
description, missing nsedoc for args, etc)
2013-03-05 21:34:25 +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
dmiller
b868e7f3ce
Move caching code to datafiles lib
...
Scripts no longer need to implement caching of datafiles tables in the
registry, since the datafiles.lua library keeps its own cache in the
registry. A side-effect is that scripts should not change the tables
returned by datafiles.parse_{protocols,rpc,services,mac_prefixes}(), as
doing so will affect all other scripts that use those functions.
2012-07-27 20:07:38 +00:00
kroosec
ab2caee812
Updated lltd-discovery for parsing hostnames and outputing the network card manufacturer.
2012-07-18 12:50:11 +00:00
kroosec
61a40609ce
Reversed commit to lltd-discovery that went with one to tls-nextprotoneg.
2012-07-08 19:49:09 +00:00
kroosec
bc2b9a99b5
Added http1.1 to the list of known protocols. (Checked by Chromium)
2012-07-08 19:00:34 +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
patrik
4e5d7b4233
removed duplicate require for stdnse
2012-03-26 18:09:00 +00:00
david
515dbe7f2f
Use stdnse.silent_require where needed.
...
This is required for scripts that require "openssl", but also
transitively for script that require a library that requires "openssl".
2012-03-09 18:06:49 +00:00
tomsellers
78b99eec3c
Removed svn:execute property from certain .NSE scripts. This was enabling the execute bit on files when they were checked out.
2012-02-08 04:11:10 +00:00
gorjan
506a0029dd
lltd-discovery bug fix
2011-10-04 00:07:10 +00:00
gorjan
1afd9691b0
Updating the lltd-discovery with suggested patches and added to the broadcast category
2011-10-03 21:06:04 +00:00
fyodor
131dccc5d2
Some (mostly minor rewording) NSEDoc updates
2011-09-29 22:06:23 +00:00
gorjan
d5b0b9bf43
Adding the lltd-discovery script, which enables the user to discover hosts on local networks using the Microsoft LLTD protocol.
2011-09-26 22:20:08 +00:00