dmiller
ea58c6bebb
Replace chained concatenation reassignment with simple concatenation
...
Example:
x = y
x = x .. z
Fixed:
x = y
.. z
This simple fix would save 1 string creation/deletion. Most changes
involve many more than this.
2015-03-02 13:47:42 +00:00
dmiller
0e74dd7a35
Replace some string.char and bin.pack calls with literals
2015-02-27 19:42:56 +00:00
dmiller
4f0518bd93
Replace concat-loop padding with string.rep
2015-02-27 14:55:42 +00:00
dmiller
ec9074f718
Correct "it's" to "its" where necessary
...
it's = it is
its = belonging to it
2014-06-19 04:58:46 +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
961ea25225
Re-indent some NSE libraries.
...
https://secwiki.org/w/Nmap/Code_Standards
2014-02-03 19:47:34 +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
patrik
be92f68cad
Fixed a bug in afp-brute and the afp library related to missing SSL.
2012-08-05 14:25:53 +00:00
patrik
6f43ac38b2
SSL overhaul fixing OpenSSL related problems when SSL has not been compiled in
...
* replace require function calls with stndse.silent_require
* fixed a bug in nse_main that would fail creating scripts.db when a script
fails to load
* reworked some code to provide limited functionality even though SSL is not
present
2012-08-05 12:05:07 +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
0ee33e4cb7
o Moved afp.username and afp.password arguments to afp-library.
...
o Add support for getting file-dates, acls and sizes
[Patrik]
2011-04-03 12:53:12 +00:00
david
3c89e089fc
Change calls in these forms:
...
socket:connect(host.ip, port.number)
socket:connect(host.ip, port.number, port.protocol)
to this:
socket:connect(host, port)
connect can take host and port tables now, and the default protocol is
taken from the port table if possible.
2010-08-16 18:59:30 +00:00
david
7d0c08a097
Brief copyediting of NSEDoc for modules.
2010-07-12 19:42:43 +00:00
patrik
a783565970
o [NSE] Correct global access errors in afp.lua reported by Patrick Donnelly
...
[Patrik]
2010-04-08 20:55:20 +00:00
david
5fa554266b
Fix NSEDoc.
2010-03-31 20:28:14 +00:00
david
7009f54778
Fix a silly error I made in afp.lua. Use (pos + 1) % 2 instead of
...
pos % 2 + 1.
2010-03-30 19:54:13 +00:00
david
6bf9b360a6
Add fp_get_server_info to afp.lua. This is from a patch originally by
...
Andrew Orr, reworked by Patrik Karlsson and David Fifield.
Among other things, this function gets the servers hostname, IPv4 and
IPv6 addresses, and potentially hardware type.
2010-03-30 19:19:26 +00:00
patrik
b1e64b3161
o [NSE] Updated the AFP library to support several new AFP functions and added
...
authentication support. Updated the afp-showmount script and added two new
scripts:
- afp-brute attempts to guess passwords against the AFP service
- afp-path-vuln detects the AFP directory traversal vulnerability
CVE-2010-0533
[Patrik]
2010-03-29 17:41:00 +00:00
batrick
9ac3c5057a
Added dummy locals '_' to be saved to rather than global '_'.
2010-02-08 02:36:11 +00:00
david
a105f13975
afp script updates from Patrik Karlsson.
2010-01-20 23:47:04 +00:00
david
69000c63f0
Add afp.lua and afp-showmount.nse from Patrik Karlsson. See
...
http://seclists.org/nmap-dev/2010/q1/97 .
2010-01-20 21:49:30 +00:00