1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00
Commit Graph

6864 Commits

Author SHA1 Message Date
batrick
e86d713be2 fixed bad global 2012-04-02 07:10:52 +00:00
patrik
65f689deec Applied patch from David http://seclists.org/nmap-dev/2012/q2/5 2012-04-02 05:00:03 +00:00
patrik
0825fa24c9 Added Kumofs probe and matches for kumo-server and kumo-manager 2012-04-01 21:14:37 +00:00
patrik
162762e2d1 added missing @args 2012-04-01 18:59:22 +00:00
david
e41914ed20 Fix @usage in dns-ip6-arpa-scan.nse. 2012-04-01 17:22:37 +00:00
patrik
7659c47a0e o [NSE] Added the script dns-ip6-arpa-scan which uses a very efficient
technique to scan the ip6.arpa zone for PTR records. [Patrik Karlsson]
2012-04-01 13:04:23 +00:00
david
508f4e6155 Add .hgignore while we're at it. 2012-04-01 07:01:21 +00:00
david
30cfbef89c Add "bzr --revert" backup pattern to http-backup-finder.nse. 2012-04-01 04:41:20 +00:00
david
b45b64af0d Add .gitignore and .bzrignore to http-fingerprints. 2012-04-01 04:39:19 +00:00
david
3741b5a4fa Show the "service" XML element whenever a tunnel is detected.
Previously this would be omitted if the service was not otherwise
discovered, and the port it was on was not in nmap-services. (There was
not problem if the port was present in nmap-services with a name of
"unknown".)
2012-03-31 03:21:27 +00:00
david
01f5d05159 Comment typo. 2012-03-31 03:21:22 +00:00
david
0c52330285 Strip blank lines from the output of targets-asn.nse.
Patch by John Bond.
2012-03-31 03:00:25 +00:00
david
be2e413914 Don't crash in the profile editor when script.db is missing. 2012-03-30 07:17:50 +00:00
david
9c8ff6b3d2 Fix the "Copy" button on the crash report dialog.
This was noticed by Daniel Miller.
2012-03-30 07:13:39 +00:00
david
ce11ecb708 Deduplicate scan names in the diff window.
This is based on an idea from jah in
http://seclists.org/nmap-dev/2012/q1/655. Make ScanChooser and
DiffWindow take a flat list of scans, not a dict of names → scans, and
centralize the deduplication in ScanChooser.add_scan.
2012-03-30 06:54:17 +00:00
batrick
b2f3139284 remove unnecessary escape 2012-03-30 03:14:31 +00:00
patrik
49c3b4e84e Adjusted link patterns to exclude leading and trailing whitespace in
the link extractor parsing function
2012-03-29 20:45:04 +00:00
david
b1583a66e6 Centralize nsock_tod updates in msevent_new.
This was being done manually for various types of events, and not doing
it in every case was causing hard-to-find bugs. See the log messages for
r19970 in /nsock and r28292 in /nmap.
2012-03-29 17:43:35 +00:00
david
c6e7647f57 NSEDoc in rdp-vuln-ms12-020.nse. 2012-03-29 17:04:58 +00:00
david
9baf78e24a Don't mark vulns as NOT_VULN if we don't find RDP.
Patch by Djalal.
2012-03-29 17:03:39 +00:00
david
e2c5ccb597 rdp-vuln-ms12-020 docs. 2012-03-29 05:35:02 +00:00
david
924731d9fb Add rdp-vuln-ms12-020.nse. 2012-03-29 05:35:01 +00:00
david
cf160d7af5 Add an as workaround I had to do on AIX 6.1. 2012-03-27 23:25:55 +00:00
david
d56f0c7bfd Tested binutils AIX instructions with 2.22. 2012-03-27 23:25:53 +00:00
fyodor
440278fa62 In the previous checkin, I forgot to add the renamed asn-to-prefix to the makefile OLD_SCRIPT_NAMES 2012-03-27 23:14:29 +00:00
patrik
9b9aceac92 Fix to allow cpe port table entry to be nil when calling set_port_version 2012-03-27 21:55:32 +00:00
fyodor
9a67069869 Rename asn-to-prefix script to targets-asn 2012-03-27 21:51:54 +00:00
david
652fb94405 Make -e assign IPv6 scope ids for everything, not only route_dst.
You could use "-e en0" to automatically add scope ids to your IPv6
addresses, so you didn't need the write "fe80::1234%en0". But this only
happened for the route_dst calculation, and could lead to later failures
in sendmsg when the address didn't have a scope id.
2012-03-27 21:48:53 +00:00
david
e362a434f3 Doc typo. 2012-03-27 21:03:05 +00:00
fyodor
a799d2714d add possibility of making nmap version for mac app store 2012-03-27 20:44:44 +00:00
david
6666c7ceaf Add PS_ICMPV6 to probespec2ascii and pspectype2ascii. 2012-03-27 20:33:53 +00:00
david
aa4800d76c Expand a FreeSWITCH service fingerprint.
Allow '+' for a time zone offset.
2012-03-27 19:40:25 +00:00
fyodor
099a4c3f5b latest changes from chat w/David 2012-03-27 19:20:06 +00:00
fyodor
26776364e1 Note a small change idea for targets-ipv6-multicast-slaac 2012-03-27 03:48:47 +00:00
david
fc6492c9cb Don't add install_lib to sys.path in setup.py.
Remove the code from setup.py which augments the module search path with
install directories such as /usr/local/lib/python2.7/dist-packages/
because doing so is unnecessary, and can also be a potential security
risk if distributors do the initial install in world writeable
directories such as /tmp and then copy the resultant zenmap to
non-writeable dirs for installation on other systems.
2012-03-27 02:14:22 +00:00
david
a1857581e9 CHANGELOG for route-bsd same-subnet fix. 2012-03-26 22:24:56 +00:00
david
b5c1e83471 Substitute on-link routes' gateways with an all-zero address.
On OS X, the code in route_loop in route-bsd.c can get a gateway
sockaddr_dl that looks like this:

$1 = {
  sdl_len = 20 '\024',
  sdl_family = 18 '\022',
  sdl_index = 4,
  sdl_type = 6 '\006',
  sdl_nlen = 0 '\0',
  sdl_alen = 0 '\0',
  sdl_slen = 0 '\0',
  sdl_data = '\0' <repeats 11 times>
}

route_loop would throw these out because there's no hardward address
there. This is a routing table entry that indicates that there is no
gateway, and that packets for this particular destination need to go on
interface #4. It corresponds to this type of line from netstat output:

Destination        Gateway            Flags        Refs      Use   Netif Expire
192.168.0          link#4             UCS             2        0     en0

I've changed it so that instead of throwing out the entry, it creates an
all-zero address of the same type as the destination address, which is a
convention used (by Nmap at least) to indicate an on-link route.
2012-03-26 22:24:55 +00:00
david
d7af8ff3d0 Better factoring and comments in route-bsd.c route_loop. 2012-03-26 22:24:54 +00:00
david
aadc34efa3 Remove dumb offensive comments. 2012-03-26 21:58:15 +00:00
david
e4816cea05 Whitespace.
astyle -a -p -H -s2 -m2 tcpip.cc
2012-03-26 21:58:14 +00:00
patrik
4e5d7b4233 removed duplicate require for stdnse 2012-03-26 18:09:00 +00:00
david
9958ed8ebe Protect pcap_selectable_fd_valid from platforms that don't have it.
Thanks jah for catching this.
2012-03-24 01:52:43 +00:00
patrik
e10d1bad27 o [NSE] Added new script http-chrono, which measures min, max and average
response times of web servers. [Ange Gutek]
2012-03-23 19:29:44 +00:00
patrik
3bfb56bbb1 bugfix for withindomain and withinhost checks. 2012-03-23 19:23:25 +00:00
fyodor
ee0b31be46 split a CPE-related entry into two, and move one of them up in the priority list 2012-03-22 04:59:49 +00:00
david
9b28395cd8 Don't allow matching probes that haven't been sent.
This is a reversion of r26232 and r26230, which were themselves
reversions of r26201 and r26202 respectively, in
https://svn.nmap.org/nmap-exp/luis/nmap-os6@26232.

This code has gone back and forth a few times. Looking at it again, I
still think this way is more correct. At any rate, the other way
demonstrably leads to rare assertion failures (which are protecting
against a nonsensical subtraction with an all-zero timeval).
2012-03-22 01:30:47 +00:00
david
7c63fb3236 CHANGELOG for pcap workaround. 2012-03-22 01:02:11 +00:00
david
b4cb468b1d Apply the nonblocking pcap read trick in readip_pcap too. 2012-03-22 00:47:24 +00:00
david
cdcc9da0d8 Fix a bug in the last commit: need another level of indirection on packet pointer. 2012-03-22 00:32:31 +00:00
david
5008078dac Add a non-blocking workaround for pcaps that buffer packets.
This is designed to solve the following problem: On Solaris 10 (maybe other
platforms), doing a select on a pcap fd works, in that it returns true when
there are frames available to be read. However, after finding the fd selectable
and calling pcap_dispatch (or pcap_next, etc.), libpcap may read more than one
frame and buffer them internally. This means that later calls to select will
return false. So there may be a frame to be read, but you can't know without
calling pcap_dispatch to check, and that blocks indefinitely (on Solaris) if
you're wrong.

The way this works is that we do a non-blocking read on the pcap fd to see if
there is anything available. If not, we do a select with a timeout as usual.
(The select is to enforce the timeout and prevent spinning CPU by repeatedly
trying non-blocking reads.)

I don't know if this phenomenon affects other platforms than Solaris 10
(more specifically, platforms using DLPI for libpcap). This same thing may be
safe or necessary on other platforms. But I have limited it to Solaris for now.
Solaris 11 uses BPF, not DLPI, for libpcap, but we can unconditionally follow
this code path on Solaris because BPF pcap fds can't be selected on.
2012-03-22 00:29:30 +00:00