1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00
Commit Graph

7705 Commits

Author SHA1 Message Date
david
1441aea655 Reduce the number of names tried by http-vhosts by default.
Vlatko reported that this script was taking an inordinate amount of time
even in typical scans. This patch reduces the number of domains tried by
default. The new http-vhosts.filelist script argument allows
substituting the original list or another of your choosing.

Patch by Vlatko.
http://seclists.org/nmap-dev/2012/q3/432
2012-07-29 03:39:11 +00:00
dmiller
b868e7f3ce Move caching code to datafiles lib
Scripts no longer need to implement caching of datafiles tables in the
registry, since the datafiles.lua library keeps its own cache in the
registry. A side-effect is that scripts should not change the tables
returned by datafiles.parse_{protocols,rpc,services,mac_prefixes}(), as
doing so will affect all other scripts that use those functions.
2012-07-27 20:07:38 +00:00
ron
959d9a67d3 Adding a new script - http-exif-spider.nse. It spiders a Web site looking for .jpeg images, and displays the image metadata (camera information, date, and geotag data). 2012-07-27 19:38:51 +00:00
henri
d1d1c7a6f4 Re-enabled connection attempts to RPC services when running in non-privileged
mode. This also fixes a bug in the privileged port binding loop, don't always try to
bind() to port 1000 but use the current resvport instead.
2012-07-27 17:23:03 +00:00
patrik
4b77d989e2 added newtarget support to snmp-netstat script, allowing it to identify and
add new targets to the scan queue.
2012-07-26 13:49:03 +00:00
patrik
6dc6b95377 fixed a bug in whitelisting code 2012-07-26 13:37:04 +00:00
david
5e588b53da More direct printing of remotes in http-git.
Show the uninterpreted remote URLs in every case. When matching specific
services, show the guesses about where the source might be hosted, but
remove verbose interpretation like "accessed over SSH".

Before:
|   Remote: git@github.com:skullspace/breachdb.git
|   GitHub remote: skullspace/breachdb (accessed over SSH)
|_   -> Source might be at https://github.com/skullspace/breachdb

After:
|   Remote: git@github.com:skullspace/breachdb.git
|_   -> Source might be at https://github.com/skullspace/breachdb
2012-07-26 06:00:48 +00:00
david
c367d03916 Extract raw remote URLs in http-git. 2012-07-26 06:00:47 +00:00
david
8f907ae853 Local variable. 2012-07-26 06:00:45 +00:00
ron
ea5e4e07ae Updated http-git - bugfixes, and also handles multiple roots with script-args 2012-07-25 01:47:43 +00:00
patrik
d397ac4076 Fixed bug that would result in the stun-version script incorrectly reporting
the stun port as open when the stun service would not respond to the service
probe and the port was reported as open|filtered.
2012-07-24 18:41:42 +00:00
kroosec
f536b34805 Added missing service name for Inter-Language Unification in nmap-rpc. 2012-07-24 12:32:31 +00:00
patrik
7880043ee2 minor fix in stun-version to remove a warning from ipOps.fromdword
indentation fix in stun-version
2012-07-24 12:05:57 +00:00
patrik
be858f4a7d further improoved http-google-malware.nse malware detection by adding response
code checks.
2012-07-24 10:33:39 +00:00
patrik
b0c8a758a0 fixed bug where script would return "Host is safe to browse.", when an invalid
API key was being used.
2012-07-24 10:11:09 +00:00
patrik
217b27bace nse_check_globals cleanup 2012-07-24 10:08:43 +00:00
david
f4e06ca3d7 Ignore RTN_UNREACHABLE routes in route_dst_netlink.
According to rtnetlink(7), such routes are "an unreachable destination."
I get such a route when I ifdown my he-ipv6 interface:

$ /sbin/route -n -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::/0                           ::                         !n   -1  1 26122 lo

The problem with not ignoring such routes is that Nmap will think that
the interface to use is lo, and consequently that all the targets are
localhost addresses. Ping scan will succeed with a localhost-response,
but trying to send any packets will fail with "destination unreachable."

Maybe we should do the same thing for these additional values of
rtm_type?

              RTN_BLACKHOLE     a packet dropping route
              RTN_PROHIBIT      a packet rejection route
2012-07-24 00:24:11 +00:00
david
df55d1380a Comment typo. 2012-07-24 00:23:58 +00:00
perdo
8025ba5a5a Added some checks for http response's body being nil. 2012-07-23 22:47:11 +00:00
jah
a1abb40d50 Removed extraneous newline from a couple of print_debug strings. 2012-07-23 22:25:51 +00:00
perdo
612ca59323 Modify pipelining implementation a bit, allow a user to specify size of the pipeline, fix some debugging messages. 2012-07-23 21:58:40 +00:00
perdo
09f7b93949 Modify http-enum and http-fingerprints file so they work with http pipeline better. 2012-07-23 21:55:13 +00:00
kroosec
a32589f06f fixed small typo in the changelog. 2012-07-23 14:39:39 +00:00
kroosec
4aebcc973b Small typo fix in rpc.lua. 2012-07-23 09:58:30 +00:00
aca
6fec00655d Added smb-ms10-054 vuln check script to trunk 2012-07-23 09:52:38 +00:00
fyodor
c6560edae5 Add a minor task idea 2012-07-23 09:39:58 +00:00
patrik
977996e5fa o [NSE] Added rdp library and the script rdp-enum-encryption that enumerates
both the Security Layer and Encryption level of the RDP service. [Patrik
  Karlsson]
2012-07-21 21:24:14 +00:00
aca
096e40d470 Added different message in case we determine that DoS is not due to slowloris and fixed an issue with try_ssl 2012-07-21 16:33:44 +00:00
perdo
e4a6ea70b6 Applied a patch provided by jah that solves a problem with includes on windows. 2012-07-21 13:08:34 +00:00
david
3f7db8b9d3 Add flume-master-info.nse by John Bond. 2012-07-21 08:07:49 +00:00
david
48ff61a710 Handle ARPHRD_VOID in addr_ston.
This type is used by OpenVZ venet interfaces. We "handle" such an
address type just by blanking the MAC address field.

Lack of support for this type of interface was preventing Nmap from
working on certain systems.

http://seclists.org/nmap-dev/2012/q2/763

An earlier message about this same type of interface is

http://seclists.org/nmap-dev/2009/q3/303
2012-07-21 07:35:41 +00:00
david
3c805ed8c1 Use the secwiki page about structured script output. 2012-07-21 01:28:40 +00:00
sean
36d3dbba66 Fixed the compile time warning of warning: deleting object of polymorphic class type ‘FPHost6’ which has non-virtual destructor might cause undefined behaviour by making the destructor virtual. 2012-07-21 00:56:13 +00:00
dmiller
5b5ca64126 Add reason_ttl attribute for host/status output 2012-07-20 21:44:57 +00:00
aca
4eb88d2cde Added ssl support to http-slowloris 2012-07-20 15:49:23 +00:00
perdo
1471b7eead Add includes from the original lfs.c code, fix formatting (spaces instead of tabs). 2012-07-20 11:15:55 +00:00
ron
8b42180f31 Removed an errant call to ap(config) that ended up in the committed version of the script 2012-07-20 04:43:55 +00:00
david
20742bdde0 Ignore failure of locale.getdefaultlocale.
This was reported to be a problem with the en_NG (Nigerian English)
locale by Kayode Adesina and Olisemeka Omo.

http://seclists.org/nmap-dev/2012/q2/965
http://seclists.org/nmap-dev/2012/q3/270

The underlying Python bug is this:

http://bugs.python.org/issue6895
2012-07-20 01:55:25 +00:00
fyodor
f78b11d50e Give an example license line for folks who want to use a BSD-style license for their scripts 2012-07-19 23:22:24 +00:00
david
72b0056fb5 Add http-get.nse by Alex Weber.
http://seclists.org/nmap-dev/2012/q2/935
2012-07-19 18:15:02 +00:00
david
89e93d6836 --script-updatedb. 2012-07-19 18:14:21 +00:00
jah
1c783a920e Fixed some problems which caused snmp-interfaces to always fail after obtaining info from the IF-MIB tree walk (invalid use of the percent escape char in the replacement param to gsub and other minor errors).
Fixed a problem which caused snmp-interfaces to always fail in the pre-scanning phase (attempt to index the undefined host table).
2012-07-19 17:21:55 +00:00
henri
972eae8bbb Fixed CHANGELOG category tag for the r29148 entry. 2012-07-19 16:02:19 +00:00
batrick
1054c3abc7 RC4 cipher for work Ron is doing. 2012-07-19 02:47:01 +00:00
david
b4b374ce17 Be more clear about interpreting -print-prog-name=as output on AIX. 2012-07-19 00:53:22 +00:00
batrick
f404c78546 alphabetize includes 2012-07-18 22:46:38 +00:00
dmiller
1aeec5790e Add more ssl-ciphers strength ratings
Ratings generated with this perl script:
https://gist.github.com/3130353
2012-07-18 22:14:30 +00:00
paulino
baab50f5a6 Updates documentation about importing NSE libraries after upgrade to LUA 5.2 2012-07-18 19:11:16 +00:00
kroosec
ab2caee812 Updated lltd-discovery for parsing hostnames and outputing the network card manufacturer. 2012-07-18 12:50:11 +00:00
kroosec
6023e253dc Changed sip-enum-users which now uses brute.lua for extensions enumeration and supports iteration over custom lists and numeric ranges. 2012-07-18 12:06:33 +00:00