1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 16:09:02 +00:00
Commit Graph

8232 Commits

Author SHA1 Message Date
kroosec
860d791aa1 Updated mrinfo.nse categories in script.db. 2012-08-14 18:37:03 +00:00
david
a5f2180928 CHANGELOG for structured script output. 2012-08-14 18:34:43 +00:00
kroosec
ebc9776771 Updated mrinfo.nse to default to multicast address querying and added a couple of fixes and style updates. 2012-08-14 18:33:48 +00:00
dmiller
c5d642a340 Check for nil return from scripts to avoid empty <script> elements 2012-08-14 17:25:43 +00:00
david
0c3e0fcc4d Structured script output.
Scripts may now return a key–value table, or such a table in addition to
a string. The table will be automatically formatted for normal output
and will appear as a hierarchy of elements in XML output.

Some history and discussion of this development can be found at
https://secwiki.org/w/Nmap/Structured_Script_Output.

This is a merge of r29484:29569 from /nmap-exp/david/xml-output.
2012-08-14 16:36:25 +00:00
aca
16aa7a938d Merged jdwp library, scripts and java classes into trunk 2012-08-14 11:31:08 +00:00
fyodor
10ff148495 Some updates from discussion w/David 2012-08-13 19:53:38 +00:00
batrick
b58d4c92d1 Formatter for Lua/NSE code. 2012-08-11 02:45:14 +00:00
david
1c328a01a4 Typo. 2012-08-10 10:58:01 +00:00
david
01ce96f464 Remove pre–Lua 5.2 imports from sample-script.nse. 2012-08-10 10:57:46 +00:00
dmiller
32dfcdc2e6 Fix bug in ssl-enum-ciphers: Strength not defined (broken) 2012-08-09 21:50:26 +00:00
martin
7dbabbac65 Fixed issue with url always being set to root, it now lets the httpspider library get it from the script arguments 2012-08-09 06:20:16 +00:00
fyodor
cd0b08f8b3 Add a note clarifying why the mrinfo name was chosen (because it is similar to well-known mrinfo utility 2012-08-08 20:04:49 +00:00
david
bfd5d7c2ba Remove references to obsolete stdnse.c library. 2012-08-08 19:21:44 +00:00
dmiller
346a495dd0 Squashed commit of the following:
commit 7c26e4de2ab365a30fe6e91f3a531eb38c8dfdba
Author: Daniel Miller <bonsaiviking@gmail.com>
Date:   Tue Aug 7 16:36:54 2012 -0500

    Fix indentation on netbios.lua (no code change)

commit 47dc3e32e6b47bd80620cfbc54e7590193dd0c1a
Author: Daniel Miller <bonsaiviking@gmail.com>
Date:   Tue Jul 31 16:42:27 2012 -0500

    Make smbauth.lua use host, not nmap, registry

commit 3738f8e6d551a1260463609d8cda86918843a372
Author: Daniel Miller <bonsaiviking@gmail.com>
Date:   Tue Jul 31 16:35:45 2012 -0500

    Make netbios.lua use host registry. Functions now can take host table or IP

commit 031cadb9d407ab7fd43aaddffda1a89c24cbdd45
Author: Daniel Miller <bonsaiviking@gmail.com>
Date:   Tue Jul 31 15:54:12 2012 -0500

    Remove mac-geolocation info from snmp-interfaces

commit 2218dbaf8ffd4a33de2bc028def9be7301dfb3a2
Author: Daniel Miller <bonsaiviking@gmail.com>
Date:   Tue Jul 31 15:52:36 2012 -0500

    Make path-mtu.nse use host, not nmap, registry

commit 5a3d006bdb9cd3e981a8e753c92b5ade5059a29b
Author: Daniel Miller <bonsaiviking@gmail.com>
Date:   Tue Jul 31 15:51:53 2012 -0500

    Make cvs-* scripts use host, not nmap, registry
2012-08-07 21:38:48 +00:00
batrick
cc6d7b67bf Fix r29529. Alias was wrong. 2012-08-07 17:37:10 +00:00
batrick
036d28c898 Remove nmap.sleep as we just want to have stdnse.sleep. 2012-08-07 17:25:49 +00:00
patrik
7e85545ea3 Fixed bug in return values for openssl pcall in libraries mssql and smbauth 2012-08-06 00:18:55 +00:00
kroosec
275d739cae ospf.lua: Couple of more bug fixes in how IP values are stored and packed. 2012-08-06 00:01:54 +00:00
perdo
7781d39cdf Textarea's name should not be lowercased. 2012-08-05 22:39:05 +00:00
perdo
ba049718b0 Add digest auth support to http-brute (and to http library). Also fix whitespace in sasl.lua. 2012-08-05 22:23:54 +00:00
sean
b13bd155ab Updated the resolution of the zenmap.png file so that it will look better on modern desktops. 2012-08-05 19:48:15 +00:00
patrik
fce517d4b8 add bjnp library and the scripts bjnp-discover and broadcast-bjnp-discover
commit d41a28813e4e4d26aeaab300ad30ad7c4116e37d
Merge: a45e4e2 23fc8f1
Author: Patrik Karlsson <patrik@cqure.net>
Date:   Sun Aug 5 20:53:04 2012 +0200

    Merge branch 'master' into bjnp

    Conflicts:
    	CHANGELOG

commit a45e4e2fd0c2579afc8d5b162bb5484327494b72
Author: Patrik Karlsson <patrik@cqure.net>
Date:   Sun Aug 5 20:44:19 2012 +0200

    add bjnp library and the scripts bjnp-discover and broadcast-bjnp-discover
2012-08-05 18:55:40 +00:00
kroosec
36e2449a8a ospf.lua: Removed debugging print. 2012-08-05 18:44:56 +00:00
kroosec
de920a2afc ospf.lua: Couple of bug fixes in ospf packet conversion to raw string. 2012-08-05 18:41:42 +00:00
aca
599c7bf26d Changed usage sample, previous was lacking a script argument which was mandatory 2012-08-05 18:33:43 +00:00
sean
c66ab9d37b Updated changelog 2012-08-05 18:31:28 +00:00
sean
5d541b08ca Fixed the race condition where nping would print out an error after running. I removed the call to create a time since we don't really need a timer there. 2012-08-05 18:23:10 +00:00
patrik
381865f342 nse_check_global cleanup 2012-08-05 17:59:12 +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
kroosec
7864c3cb08 ospf.lua: Corrected header tostring for null authentication packets. 2012-08-05 11:23:16 +00:00
kroosec
93a54ee8b1 ospf.lua: Fixed error in checksum calculation for hello and dbdescription packets. 2012-08-05 11:02:44 +00:00
batrick
715525f31b Throw an actual error. Do not yield. 2012-08-05 09:16:04 +00:00
aca
7f96384ec8 Merged smb-print-text script from my dev branch 2012-08-04 18:44:59 +00:00
henri
b56c25a972 Fixed memory leak. 2012-08-04 16:05:24 +00:00
sean
17f7791c02 General File cleanup. Added closing paren for the port error message 2012-08-04 01:18:40 +00:00
sean
ce2f251cd5 Added a function to check if port specification will do anything. Changed over my logic to use this new functioni. (scan_mode_uses_target_ports) 2012-08-04 01:08:31 +00:00
sean
256bffba9c Removed the requirement from is root in the error message about having a useless -p option 2012-08-04 00:52:36 +00:00
sean
a9a6c431cd Added an error message when the user runs nping in a priviliged mode and specifies a port. I choose to add an error message to keep nping's behavior inline withnmaps. 2012-08-04 00:41:02 +00:00
david
85768b98a0 Add a new Linux OS fingerprint. 2012-08-03 23:46:06 +00:00
kroosec
da5a25c097 Added mrinfo.nse script which queries a target router for multicasting information. 2012-08-03 22:58:29 +00:00
aca
c88639e5b4 Updated ssl-date to use STARTTLS for supported protocols 2012-08-03 16:12:55 +00:00
aca
d80183edab Small refactorization to sslcert.lua, split specialized functions into two, with and without calling reconnect_ssl 2012-08-03 16:11:50 +00:00
patrik
e7cb28619e fixed a bug where any url would be treated as withinhost due to a lacking
return statement in the removewww function
2012-08-03 06:13:57 +00:00
david
21ba9f7b4a Undocument nmap.sleep and undeprecate stdnse.sleep.
There are various functions in the internal nmap.socket and nmap.dnet
libraries that are there for technical reasons:
	http://seclists.org/nmap-dev/2012/q1/318
The sleep function is exposed through the stdnse namespace because it
fits that library better.

Some code comments said that names such as nmap.new_socket were
deprecated in favor of e.g. nmap.socket.new, but the old names were
never formally deprecated, so I removed those comments.
2012-08-03 02:08:44 +00:00
david
77fbcc8bc5 Get rid of ndiff.py symlink.
This existed only to allow importing the ndiff program as a module for
the ndifftest.py program. I found another way to do that.
2012-08-02 18:35:36 +00:00
david
3f415ef38a Factor out XML script result writing. 2012-08-02 06:21:01 +00:00
david
54fa9ec345 Use shortport.http in http-title. 2012-08-02 05:28:02 +00:00
david
33998a1ab9 Simplify http-title output code. 2012-08-02 05:28:01 +00:00