batrick
e94da5d874
Use em/strong tags instead of <b>.
2010-01-10 03:18:05 +00:00
david
1b6c69387a
Move the format_difftime function out of http-date.nse and into
...
stdnse.lua. It can be useful in other scripts.
2010-01-06 20:43:24 +00:00
fyodor
cccc1d5831
Adjust the example output for new format_output format
2009-11-22 08:34:15 +00:00
fyodor
48b37ff7d2
Change script output indenting from one space to two
2009-11-22 08:22:54 +00:00
ron
422b5855e5
Update the output formatting to the style that Fyodor requested. Haven't updated the @output sections yet, just in case we decide to change this again.
2009-11-20 16:12:41 +00:00
ron
08da8db7f0
Importing changes from my branch. There are two major updates:
...
1) I wrote a function that formats output from scripts in a consistent way. Although we haven't really come to a concensus on how it should look yet, it's easy to change when we do.
2) New script: smb-enum-groups.nse. Enumerate the local groups on a system and their membership.
2009-11-20 16:05:06 +00:00
batrick
2b3df5882f
[NSE] Patch to add worker threads to NSE for scripts to use. Right
...
now a script is limited in parallelism to working on one socket at any
time. A script can now create a worker thread that will be capable of
doing work on sockets in parallel with the parent script. See [1] for
more information.
This patch also comes with condition variables that are similar to
POSIX condition variables. They are used in the same fashion as
NSE's mutexes (nmap.mutex).
[1] http://seclists.org/nmap-dev/2009/q4/294
2009-11-12 01:33:52 +00:00
ron
80591c9cc6
Cleaned up output of smb-server-stats.nse
2009-03-12 14:56:23 +00:00
david
a173fe6ce1
Add the stdnse.sleep function.
2009-02-23 23:57:39 +00:00
david
d8c3cf21a5
Add missing module name prefixes to usage examples in some NSE documentation.
2009-02-17 19:53:02 +00:00
batrick
3016193c11
Improvements to the nmap library. See [1] for discussion and a full listing of
...
the changes.
[1] http://seclists.org/nmap-dev/2008/q4/0663.html
2008-12-29 21:59:08 +00:00
ron
86de493a3e
Changed smb-enum-shares to detect a host that returns the incorrect value for unknown shares (happened against what appears to be a EMC SANS). Also added a check to stdnse.strjoin() to ensure that the first parameter is either nil or a string, I got the parameters wrong and spent awhile trying to figure otu why.
2008-12-08 03:33:25 +00:00
ron
ea42f39faa
Merged in significant changes to Microsoft RPC calls
2008-12-07 16:16:11 +00:00
david
5f166e19ec
Don't use empty parentheses when referring to functions by name in NSE
...
documentation.
2008-11-07 22:49:49 +00:00
david
df2ac77764
Small nselib proofreading changes.
2008-10-25 03:35:00 +00:00
david
efed9cf1a8
Update the documentation for some scripts and modules that I used in the NSEDoc
...
section of scripting.xml.
2008-10-24 00:23:46 +00:00
david
2762f91169
Reformat docs in stdnse.lua.
2008-10-23 18:31:00 +00:00
jah
eacb951209
Fixed typos for some nsedoc tag names:
...
INFO processing file `nselib/datafiles.lua'
ERROR undefined handler for tag `type'
INFO processing file `nselib/dns.lua'
ERROR undefined handler for tag `result'
ERROR undefined handler for tag `result'
INFO processing file `nselib/netbios.lua'
ERROR undefined handler for tag `returns'
INFO processing file `nselib/snmp.lua'
ERROR undefined handler for tag `result'
INFO processing file `scripts/SSLv2-support.nse'
ERROR undefined handler for tag `ouput'
Removed a @see tag which refers to Lua's string.format rather than to NSE docs:
INFO generating file `docs/modules/stdnse.html'
ERROR unresolved reference to symbol `string.format'
2008-10-18 20:49:00 +00:00
david
f58f559b81
Reformat and merge documentation for stdnse, shortport, strbuf, snmp, ssh1,
...
ssh2, smb, pop3, and msrpc.
2008-10-16 00:38:53 +00:00
sven
5d12eb7a3d
add missing local reference to error() to stdnse
2008-10-12 18:39:00 +00:00
sven
8f83450228
revert tonumber() conversion in stdnse.tohex() because tonumber() discards whitespace
2008-10-07 07:28:10 +00:00
batrick
2c6554a435
Updated stdnse.tohex() to coerce strings to numbers if possible for the first
...
argument. That is, the first argument is interpretted as a number if possible.
2008-10-07 02:24:31 +00:00
batrick
f71135f796
Changed stdnse.tohex to no longer create tables unnecessarily if options
...
are ommitted.
2008-10-07 02:22:17 +00:00
sven
6057449ae0
add comments to stdnse.tohex()
2008-10-06 09:52:55 +00:00
sven
2dd98df5b9
don't split and concat hex string in stdnse.tohex() if no separator is given
2008-10-06 09:29:27 +00:00
sven
565a5ee3ed
o Enhanced the tohex() function in the NSE stdnse library to support strings
...
and added options to control the formatting. [Sven]
2008-10-03 19:55:58 +00:00
batrick
670792a4a6
Updated all libraries documentation.
...
packet and url both need more work.
2008-08-18 04:03:45 +00:00
batrick
404c0848bf
Fixed a incorrect arguments being passed to string.format
2008-06-21 21:08:38 +00:00
batrick
1d82523af0
Removed unnecessary print local from stdnse.lua
2008-06-21 21:02:42 +00:00
batrick
0bc91f9db2
Improved and changed the make_buffer function.
...
It now returns the line as its first argument always, otherwise nil, errmsg
I updated scripts that use make_buffer.
When Lua 5.2 comes out, we may be able to use a function I've added
called stdnse.lines (commented for now). It cannot be used yet because
we cannot yield inside generic for loop. The function is built for
generic for loops. It will work as such:
for line in stdnse.lines(socket) do
...
end
2008-06-20 13:50:50 +00:00
batrick
dffb1d9423
Updated stdnse library (optimizations).
2008-06-20 12:05:18 +00:00
batrick
46ce09a994
Minor optimizations to stdnse.lua
...
Fixed stdnse.lua to use a default name for module()
2008-06-09 02:23:22 +00:00
batrick
742ff67100
Removed nse_auxiliar. Updated Script Argument parsing. Fixed typos in
...
documentation. Improved MySQLinfo.nse. Nsock/dnet metatabels are now
protected.
2008-05-31 02:19:24 +00:00
batrick
21a2e7aea6
Updated to Lua 5.1.3 (Bug fix release)
...
Updated stdnse to include tobinary, toocal, and tohex functions.
Minor optimizations to listop.lua
2008-05-31 01:43:43 +00:00
fyodor
454e4e3b17
I hope this will recover nselib history
2007-11-27 22:50:00 +00:00
fyodor
bbb0744761
now move nselib to recover history
2007-11-27 22:42:39 +00:00
diman
c0f07c99ac
adding nselib nselib-bin second (should work on unix now)
2007-11-27 22:18:59 +00:00
diman
335ec2868f
adding nselib and nselib-bin the first
2007-11-27 22:17:30 +00:00
fyodor
5579ac94d3
merge soc07 r5317:5322 - DNS zone transfer script.
2007-08-11 06:07:31 +00:00
fyodor
ed6a634ebc
merge soc07 r5144 - added a seperate strbuf-module (code mainly taken from eddies implementation in stdnse.lua
2007-08-11 05:45:11 +00:00
fyodor
475393bc2c
merge soc07 r5049:5063 - added string split/join methods; Bruteforce telnet script; fixed a few typos; updated to escape some common url constructs; refactored shorport library; Added a family of string buffer functions to nselib as concatenation is not efficient; Updated a couple of scripts to use string buffers; resolved a couple of naming conflicts
2007-08-11 04:58:05 +00:00
fyodor
80ade54171
merge soc07 r5016:5022 - Added support for C-modules; converted the nse_bitlib to such a module; adapted dns-test-open-recursion.nse to use the new module; Moved make_buffer to stdnse and updated the documentation
2007-08-11 04:49:25 +00:00
fyodor
1ffa6fd8c0
merge soc07 r4990 - fixed tiny oversight in nselib debug function
2007-08-11 04:39:39 +00:00
fyodor
e988f4878d
merge soc07 r4989 - applied mathew boyle's patch for print_debug
2007-08-11 04:39:17 +00:00