dmiller
453f9a7e25
Use stdnse.get_script_interfaces() for all relevant scripts
2024-05-24 19:01:16 +00:00
dmiller
f4619edece
Update http urls for nmap.org to https
2015-11-05 20:41:05 +00:00
dmiller
7852fa3c18
Remove many ERROR outputs from non-debug NSE output
2015-08-27 20:43:55 +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
d47acf9f5e
more stdnse.print_debug -> stdnse.debug
...
$ sed -i 's/stdnse.print_debug( *\([0-9]*\) *, *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug\1("\2"/' *.nse
$ sed -i 's/stdnse.print_debug( *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
2014-08-02 02:08:12 +00:00
dmiller
ac5a89a8e1
Remove unused NSE library requires
...
for lib in nselib/*.lua*; do l=${lib#*/}; l=${l%.lua*}; find . -name \
\*.lua -o -name \*.nse | xargs grep -l "require .$l\>" | xargs grep \
-c "\<$l\." | grep ':0$' | awk -F: '{print "'$l'", $1}'; done
Did not remove calls to stdnse.silent_require since these can be used to
abort script execution if OpenSSL is not included, even if the script
does not directly call openssl.* (perhaps it uses comm.tryssl instead,
for instance).
Also did not remove require "strict", since that library is special and
modifies the environment.
2014-02-13 16:39:17 +00:00
dmiller
d36c08dcf5
Re-indent some scripts. Whitespace-only commit
...
https://secwiki.org/w/Nmap/Code_Standards
2014-01-31 13:02:29 +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
david
e77a084790
Restore original docs for ip-forwarding.target.
...
It was hidden as a @param isntead of an @args.
2013-01-24 18:11:06 +00:00
david
67aa5516f4
Fix various NSEDoc problems.
...
Found by David Matousek.
http://seclists.org/nmap-dev/2013/q1/88
2013-01-24 18:04:42 +00:00
david
31b628f994
ipOps capitalization.
...
http://seclists.org/nmap-dev/2012/q2/602
2012-06-05 21:16:23 +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
cec2dd7816
Fixed a bug reported by Josh Greenwood that would incorrectly detect a host having IP
...
forwarding enabled if the scanned host was the same as the probe target.
2012-05-05 19:44:46 +00:00
patrik
2b2f42200e
Applied patch to ip-forwarding.nse from Daniel Miller that fixes bug that would
...
incorrectly detect hosts as having IP forwarding enabled, allthough they did
not. [Daniel Miller]
2012-05-01 19:09:58 +00:00
patrik
b4079e90ff
o [NSE] Added the script ip-forwarding that detects devices that have IP
...
forwarding enabled (acting as routers). [Patrik Karlsson]
2012-05-01 14:21:00 +00:00