dmiller
0500811f5a
Move string utility functions to stringaux.lua
2018-10-18 01:08:19 +00:00
rewanth
d9504537e6
Removes unused dependencies from all files in scripts folder.
2017-08-15 07:26:00 +00:00
dmiller
0e7f11673c
Change more bin lib to string packing/fromhex. Closes #755 . Closes #769
2017-03-25 13:39:44 +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
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
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
david
874bbe28cd
Pass the dst argument to existing calls to nmap.ip_send.
2012-09-15 17:56:21 +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
david
1c9c9cc8c7
NSEDoc revision in firewalk.
2012-04-13 04:23:42 +00:00
henri
1f431b953f
Consistent naming of the address fields between IPv4 and IPv6.
...
All IP packet objects now have the following attributes:
- ip_bin_src (binary src address)
- ip_bin_dst (binary dst address)
- ip_src (decimal-dotted string src address)
- ip_dst (decimal-dotted string dst address)
The ip6_src and ip6_dst attributes have therefore been renamed (ip_bin_src and
ip_bin_dst).
This patch also updates the scripts accordingly.
2012-01-21 14:46:00 +00:00
henri
c55253db44
Expanded documentation.
2012-01-09 16:06:12 +00:00
henri
ed2fc828ac
Added IPv6 support to firewalk.nse.
2012-01-08 15:13:35 +00:00
henri
cc4310b6d0
Cosmetic fix: consistently return 'false' in the hostrule
2011-09-14 10:03:41 +00:00
henri
a8f9bd8d35
trailing whitespace
2011-06-20 21:09:42 +00:00
henri
b2d1ac7580
Avoid bloating the registry by using variables to transfer information from
...
the hostrule to the action function.
2011-06-20 21:06:14 +00:00
henri
c04e5a4eb1
Minor typo fixes
2011-06-03 09:24:51 +00:00
henri
0706dc1b98
Removed trailing semicolons to keep style consistent
2011-05-16 08:44:29 +00:00
batrick
7f66646636
Patch to make require errors silent and removed evil workarounds.
...
Added new stdnse function stdnse.print_verbose (similar to print_debug).
2011-05-04 21:06:53 +00:00
henri
ef68defe0a
Replaced firewalk scan states by a simpler boolean for readability reasons.
2011-04-29 16:40:45 +00:00
david
ec4db04494
Add checks for nmap.address_family == "inet" to scripts that require
...
that. Patch by Henri Doreau.
2011-04-19 18:09:15 +00:00
david
46c29d3f60
Use stdnse.print_debug instead of log_write. Patch by Henri Doreau.
2011-04-19 18:09:13 +00:00
david
53d71389da
Patch to firewalk.nse from Henri Doreau; avoids an error when giving a
...
timespec.
2011-02-23 02:34:47 +00:00
david
73e80d1a0a
Whitespace, typos.
2011-02-22 02:51:09 +00:00
david
cd4833f2a8
Rename firewalk-path to firewalk.
2011-02-22 02:51:08 +00:00
david
db50d964d4
Update firewalk.nse: add max-probed-ports argument and use
...
stdnse.get_timespec to parse time specifications.
2011-02-22 02:51:06 +00:00
david
da4a064291
Update firewalk.nse by Henri Doreau. (firewalk-path version from
...
http://seclists.org/nmap-dev/2011/q1/63 .)
2011-02-22 02:51:04 +00:00
fyodor
b2598bc73d
remove an email address so that Henri's author line for firewalk is the same as for his other new script (targets-traceroute). If he wants the email address there, we can add it to both.
2011-01-14 10:26:14 +00:00
fyodor
a84c2e4498
Did some NSEDoc cleanup on many of the 45 NSE scripts which are new since the 5.35DC1 Nmap release. Emphasis was on the first paragraph of the description, since that is shown on the front page of http://nmap.org/nsedoc and I'm planning to use that description verbatim (except for removing tags like <code>) for the CHANGELOG
2011-01-14 10:20:51 +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
david
77a4235fc4
Fixes to firewalk.nse from Henri Doreau: "The first one was due to my
...
ignorance that the first index of lua arrays is 1 (and not 0). Because
of that, I was setting a too high ttl value when retrieving it from
traceroute results. The second one was a syntax error on a
nmap.log_write() call."
2010-11-29 19:16:49 +00:00
david
a92f1cb8a4
Update to firewalk.nse from Henri Doreau to use a more polymorphic style
...
of supporting multiple protocols.
2010-11-06 01:54:30 +00:00
david
80605e3e09
In firewalk.nse, bail out if we have neither of the scripts args
...
firewalk.ttl and firewalk.gateway. Otherwise we would get a nil
dereference when running with
--script=firewalk --traceroute
Ron reported this.
2010-11-02 19:03:35 +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
956688774a
Add the ability to send UDP probes to firewalk.nse. Patch by Henri Doreau.
2010-09-28 03:25:22 +00:00
kris
fa858e041b
Remove unused and newly unrequired arguments to the pcap check functions (which
...
replace the old callbacks) in scripts
2010-09-19 02:15:19 +00:00
batrick
de4ba536de
Merge from /nmap-exp/patrick/nse-nsock-maintenance.
...
This is a maintenance fix for the NSE Nsock library binding. The patch focuses
on code correctness and simplicity. The patch also brings some initial updates
with an eye towards the upcoming Lua 5.2 release. See [1] for a post concerning
this branch.
[1] http://seclists.org/nmap-dev/2010/q3/710
2010-09-18 20:35:09 +00:00
david
902b39517f
Copyedit NSEDoc in firewalk.nse.
2010-08-31 04:05:31 +00:00
david
7026f5fdbd
o [NSE] Added the firewalk script, which tries to find whether a
...
firewall blocks or forwards ports like the firewall tool does. [Henri
Doreau]
2010-08-28 16:03:20 +00:00
david
5731d55219
Revert r19993, the addition of firewalk.nse. This depends on an nselib
...
change that isn't committed yet.
2010-08-27 20:03:21 +00:00
david
79da626772
o [NSE] Added the firewalk script, which maps firewall rules in a way
...
similar to the firewalk tool. [Henri Doreau]
2010-08-27 20:01:09 +00:00