david
107e878cbc
Comment NmapOps::magic_port.
2012-08-28 13:07:30 +00:00
david
4357a97403
Make magic_port_set a bool.
2012-08-28 13:07:19 +00:00
david
676de05f7f
Provide a default {} value for script categories.
...
This is so I don't have to write
categories = {}
when writing test scripts.
2012-08-28 12:17:36 +00:00
david
fdac9750a1
No longer require the "description" field in scripts.
...
This is so I don't have to do
description = ""
when writing test scripts.
2012-08-28 12:17:27 +00:00
david
bc029f9631
Use a stack variable for the main UltraScanInfo.
2012-08-28 12:17:17 +00:00
david
c601f71fc5
More style in idle_scan.cc.
2012-08-28 08:20:31 +00:00
david
d32d538a33
Remove some dead commented code.
2012-08-28 07:50:30 +00:00
david
7baef46e3c
Style in idle_scan.{cc,h}.
...
astyle -a -p -H -s2 -m2 idle_scan.cc idle_scan.h
with manual fixup.
2012-08-28 07:50:09 +00:00
david
7a9e7c502e
Add a missing IFF_IPMP #ifdef guard.
2012-08-26 20:44:32 +00:00
kroosec
2f21e49cfb
Updated http-drupal-modules documentation.
2012-08-25 17:31:53 +00:00
kroosec
e3db186435
xml output support for http-drupal-modules.nse
2012-08-25 14:02:27 +00:00
kroosec
1f869e32df
Fix small type in CHANGELOG
2012-08-25 14:01:44 +00:00
tomsellers
5ba2007d69
Added or enhanced support for the following data types:
...
SQLTEXT = 0x23 - text
GUIDTYPE = 0x24 - uniqueidentifier
NTEXTTYPE = 0x63 - unicode text (ntext)
BITNTYPE = 0x68 - boolean
DECIMALNTYPE = 0x6A - decimal
NUMERICNTYPE = 0x6C - numeric
FLTNTYPE = 0x6D - float/real/double
MONEYNTYPE = 0x6E - money / smallmoeny
BIGBINARYTYPE = 0xAD - binary
BIGCHARTYPE = 0xAF - char
SQLNCHAR = 0xEF - unicode char (nchar)
Added detection and handling of null values when processing query responses from the server.
Added DoneProc response token support
Reordered ColumnData and ColumnInfo parsers by data type code to make updates easier.
2012-08-24 10:32:44 +00:00
aca
fd32aec639
Merged http-slowloris-check
2012-08-24 09:19:30 +00:00
dmiller
c3f88169a4
Fix NSE error: attempt to get length of a number
...
NSE: Script Engine Scan Aborted.
An error was thrown by the engine: attempt to get length of a number
value
stack traceback:
[C]: in function 'port_set_output'
/home/rt/builds/nmap/nse_main.lua:314: in function 'set_output'
/home/rt/builds/nmap/nse_main.lua:947: in function 'run'
/home/rt/builds/nmap/nse_main.lua:1330: in function
</home/rt/builds/nmap/nse_main.lua:1237>
[C]: in ?
This now allows return of anything stringifiable as second return value
without crashing (though this may not be what the script author intends,
better to not crash)
2012-08-23 18:45:42 +00:00
patrik
a49667aa02
Reverted bad commit to http-title
2012-08-22 17:11:10 +00:00
jah
0936515cd9
Restored the hyphen character, in get_ips_from_range, to a lua string pattern for ip ranges such as "10.0.0.0 - 10.1.0.0"
2012-08-21 01:16:49 +00:00
david
94959c42e2
Use the -c option in kdesu commands.
...
This bug was found by Gaetan Bisson.
http://seclists.org/nmap-dev/2012/q3/592 .
2012-08-19 20:11:06 +00:00
henri
af2f0960ab
Automatically enforce the use of the nsock select engine if we detect that stdin
...
is a regular file.
Under linux, that provides epoll(7), this allows proper behavior when
redirecting a regular file to stdin (e.g.: 'ncat localhost < file.txt').
Bug was reported by Michal Hlavinka. See
http://seclists.org/nmap-dev/2012/q3/490 for more details.
2012-08-18 16:25:50 +00:00
patrik
a18d0b2ff0
nse_check_globals cleanup
2012-08-18 07:10:27 +00:00
dmiller
a329909fdf
Update nfs-{showmount,statfs} to new rpc-grind
2012-08-18 04:07:11 +00:00
dmiller
592f31fa0f
Make nfs-ls work with new rpc-grind
...
rpc-grind script puts version information in a different place. Also
switched from using file-local variables to host-registry entries for
nfs and mount ports and versions. I'm pretty sure the old way would have
failed on scans with more than one NFS version on separate machines.
2012-08-18 03:32:52 +00:00
dmiller
4728d7437d
Fixes to rpc-grind
...
NSE: rpc-grind Connect(): RPC library does not support: nil protocol
NSE: rpc-grind Connect(): RPC library does not support: rpcbind version
81578896
These errors caused by ChkProgram and ChkVersion called from
rpc.Comm.Connect. Added a dummy program in rpc-grind and a check for
self.checkprogver in ChkVersion, and everything works great.
Also fixed portrule to only fail if the non-rpcbind service name was not
the result of table lookup. Was failing on port 2049 (in nmap-services
as "nfs") without -sV.
2012-08-18 03:32:50 +00:00
dmiller
f8335fc3f0
Update ssl-enum-ciphers to use structured output
...
This includes a minor hack to stringify a structure with sorted keys.
This should probably be moved to a formatting library when one is
committed.
2012-08-17 20:14:46 +00:00
dmiller
d59f85371c
Handle NSE-returned strings with null characters
...
This was resulting in truncated normal output. To reproduce, run a
script that returns "test\0will not appear".
2012-08-17 20:14:44 +00:00
kroosec
acea14865e
Removed unused UP_RPC UltraProbe probe type.
2012-08-17 18:49:10 +00:00
kroosec
f3e24f440b
Removed nmap_rpc imports from windows vc++ build file.
2012-08-17 18:47:23 +00:00
kroosec
b1990f2b33
Added rpc-grind.nse
2012-08-17 18:44:35 +00:00
kroosec
e7e34112db
Updated nse nmap lib to reflect old rpc grind removal.
2012-08-17 18:34:59 +00:00
kroosec
9553da2e7f
Removed old rpc grind implementation.
2012-08-17 18:34:07 +00:00
kroosec
9247295bfb
Removing pos_scan from scan engine as it is not used anymore.
2012-08-17 18:33:07 +00:00
kroosec
7f7a7a3795
Updating documentation to reflect rpc-grind change.
2012-08-17 18:32:26 +00:00
kroosec
ba9c6ea5e1
Second commit from rpc-grind branch. Removing old implementation from output and portlist.
2012-08-17 18:31:50 +00:00
kroosec
7ff385da85
First commit from rpc-grind branch.
2012-08-17 18:30:11 +00:00
patrik
4157e63c9e
nse_check_globals fixup
2012-08-17 05:37:59 +00:00
dmiller
6294398668
Update ssl-date to use structured output
2012-08-16 22:13:33 +00:00
dmiller
9fbd30f191
Use ISO8601 time for smb-os-discovery
2012-08-16 15:46:37 +00:00
dmiller
74a2168a15
Use base64-encoded key, not double-encoded type and key
2012-08-16 14:46:40 +00:00
david
147a17d2b6
Add @xmloutput to docs/scripting.xml.
2012-08-16 12:14:54 +00:00
david
8206146d2a
Put just the base64-encoded key in the ssh-hostkey "key" field.
...
Previously it had the key type prepended (already available in the
"type" field).
2012-08-16 11:59:02 +00:00
david
e96b7d55fb
Use key "type" not "algorithm" in ssh-hostkey structured output.
...
"algorithm" seems to be a mapping computed by our ssh2 library:
ssh-rsa → RSA
ssh-dss → DSA
"type" is just the string "ssh-rsa" or "ssh-dss". "Type" seems to be the
terminology used in the ssh-keygen man page.
2012-08-16 11:58:40 +00:00
david
7ebf300c0c
Use binary strings, not hex strings, as keys in ssl-known-key.
2012-08-16 10:51:51 +00:00
david
600ef58aa0
Don't check whether cert:digest succeeded.
...
The digest isn't something stored in the cert that may or may not be
present; it is calculated locally.
2012-08-16 10:51:37 +00:00
david
1ba18b4a39
Use structured key name "sha1" not "fingerprint" for uniformity with ssl-cert.
2012-08-16 10:51:24 +00:00
david
e037b3c416
Use lower case spaces for separation in ssl-known-key digests.
...
For uniformity with ssl-cert.
2012-08-16 10:37:33 +00:00
david
bd99ea17f8
Don't use colons in structured output digests.
2012-08-16 10:37:21 +00:00
david
aee57d6cdc
Kill <script></script> around @xmloutput.
2012-08-16 10:12:08 +00:00
dmiller
a61a6a5918
Add @xmloutput nsedoc to ssh-hostkey, smb-os-discovery
2012-08-16 03:00:00 +00:00
dmiller
f9ddf0fca6
Update ssl-known-key to use structured output
2012-08-16 02:59:58 +00:00
dmiller
e11a5a7b34
Update smb-os-discovery to use structured output
2012-08-15 22:22:08 +00:00