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

4136 Commits

Author SHA1 Message Date
david
38019ded5c o [libpcap] Added a --disable-packet-ring option to force the use of
an older, slower packet capture mechanism on Linux. Before Linux
  2.6.27, the packet ring mechanism uses different-sized kernel
  structures on 32- and 64-bit architectures, so a 32-bit program will
  not run correctly on a 64-bit kernel. The older mechanism does not
  have this flaw.
2010-05-26 20:43:09 +00:00
fyodor
1fe9546cfc Some updates from chat w/David 2010-05-26 17:16:39 +00:00
david
aae22b340e Update the description of UDP payloads to point to a new section on
nmap-payloads instead of referring to payload.cc.
2010-05-26 05:20:12 +00:00
djalal
75e6d4d5e1 C modules added to NSE must be included in the list of standard libraries in nse_main.cc 2010-05-26 01:43:23 +00:00
david
44d29adaa9 Add a serialnumberd match line that contains a host name, contributed by
Samuel Benson.
2010-05-25 19:00:31 +00:00
david
7b1a1d46f8 Add nmap-payloads to the Windows build. 2010-05-25 18:51:44 +00:00
david
0760591a8f Remove <netinet/in.h> include from payload.cc. It doesn't seem to be required
and it was breaking Windows compilation.
2010-05-25 18:39:50 +00:00
david
4118427819 Fix two discrepancies in the nmap-payloads compared to old payload.cc:
Remove port 222 from the RIP probe and add 44400 to the Quake 3.
2010-05-25 18:35:48 +00:00
david
79a66bf313 Normalize formatting in nmap-payloads. 2010-05-25 18:32:17 +00:00
david
fe8a7cf991 Add copyright header to nmap-payloads, expand on the format
documentation. Set the "Id" keyword on the file.
2010-05-25 18:13:30 +00:00
david
acba4356c4 Make it a warning, not a fatal error, when nmap-payloads can't be found. 2010-05-25 17:58:28 +00:00
david
ed8a04b5a7 Adjust whitespace, order, scoping in payload.cc. 2010-05-25 17:51:03 +00:00
david
4a9558288d Re-add the serialnumberd probe to the new nmap-payloads file. 2010-05-25 17:44:15 +00:00
david
994da96f9c Merge Jay Fink's patch that puts UDP payloads in an external data file
instead of being hard-coded in payloads.cc. This is the patch from
http://seclists.org/nmap-dev/2010/q2/497.
2010-05-25 17:38:23 +00:00
fyodor
32e6b837cb Small updates to copyright headers in some files which don't have the headers automatically replaced 2010-05-24 23:52:34 +00:00
david
27c0be76d7 Add a UDP payload corresponding to the serialnumberd probe. Document
serialnumberd stuff in CHANGELOG.
2010-05-24 19:21:33 +00:00
david
6a0bba72e1 Add a probe and matchline for Mac OS X Server serialnumberd, submitted
by Patrik Karlsson.
2010-05-24 19:15:53 +00:00
david
d863e73c36 Document the new XML output processing merged in r17300 in CHANGELOG. 2010-05-24 19:02:47 +00:00
david
238e0107f5 Fix the XML stylesheet processing instruction. It read "test/xsl"
instead of "text/xsl". This was reported by Grant Bartlett.
2010-05-24 18:56:39 +00:00
david
25c56e7fa0 Fix a couple of errors in nmap-os-db caused by erroneous string
replacement. This patch is from James Cook.
2010-05-24 16:36:31 +00:00
fyodor
fb943a04f6 Move some script description text out of the script output section and into the user summary 2010-05-24 03:21:49 +00:00
fyodor
4eceddebb3 Add script idea for vulnscan based on detected os/versions 2010-05-23 21:47:07 +00:00
fyodor
d5de7d8f1b Add a small portability feature to the libpcap which comes with Nmap 2010-05-23 21:24:53 +00:00
luis
826d193bcb Fixed a couple of trivial errors 2010-05-23 17:42:44 +00:00
kris
15ae5ba5b2 Update the comment for ip_is_reserved(). An old comment (ca 2001, r1152)
says that the function could be outdated if IANA keeps assigning IP ranges,
but I update this function many times per year (usually consisting of more
than one IP block per update).  So in case I somehow slack on my unofficial
job of updating this function, I note that it needs frequent attention.
2010-05-21 16:42:54 +00:00
luis
cf2cdea42c Rewritten the TODO item added in r17620. The problem must be that I was using nping through a VPN connection. It still crashes when sport==dport, but that does not happen when using it through a regular inet connection 2010-05-21 10:59:00 +00:00
luis
4a4051ee2c Added note to investigate a bug I've just discovered, running one of the tests designed by David 2010-05-21 09:46:08 +00:00
david
90b59ef14b o [Nsock, Ncat] Nsock has a new function, nsp_setbroadcast, that
allows setting the SO_BROADCAST option on sockets. Ncat now sets
  this option unconditionally in connect mode to allow connections to
  broadcast addresses (useful in UDP mode). This code was written by
  Daniel Miller.
2010-05-21 01:54:06 +00:00
david
be0714006f Add to todo/nping.txt:
* Replace this pattern:
	if ( isNumber_u32(optarg) ){
		u32 aux32 = strtoul( optarg, NULL, 10);
		...
	}
  with a function that checks for syntax and returns the value (i.e., a wrapper
  around strtoul). There is nowhere that isNumber_u* is called without it being
  immediately followed by a strtoul, outside of utils.cc.
2010-05-21 00:29:21 +00:00
jah
e307ee691e IANA have moved the IPv4 and IPv6 assignments tables and slightly altered their
content.
2010-05-20 19:17:43 +00:00
patrik
b830a036ad o [NSE] Add new DB2 library and two scripts
- db2-brute.nse uses the unpwdb library to guess credentials for DB2
  - db2-info.nse re-write of Tom Sellers script to use the new library
  [Patrik]
2010-05-18 21:11:38 +00:00
david
940bdfc689 Move my TODO from /status. 2010-05-18 18:29:24 +00:00
luis
d2a85aa013 Added entry to change the info about TODO file in http://nmap.org/nping web page. 2010-05-18 09:25:26 +00:00
djalal
951667ffb4 [NSE] Cache the Portmapper list into the NSE registry 2010-05-18 01:09:21 +00:00
david
1cbce9030e Update todo/ncat.txt. Remove some items that look outdated or unlikely
to be implemented. Copy remaining items from my own TODO.
2010-05-17 21:15:43 +00:00
david
c41b6285a0 Move /ncat/docs/WISHLIST to /nmap/todo/ncat.txt. 2010-05-17 21:11:18 +00:00
david
8cfd9dd084 Regenerate man pages. 2010-05-17 20:05:31 +00:00
david
709ac1131a o [Ncat] In listen mode, the --exec and --sh-exec options now accept a
single connection and then exit, just like in normal listen mode.
  Use the --keep-open option to get the old default inetd-like
  behavior. This was suggested by David Millis. [David]
2010-05-17 19:17:18 +00:00
luis
94d412c688 Removed a few things that either have been solved already or don't make sense anymore. Added a note about sharing UDP payload code between nping and nmap. 2010-05-17 17:59:15 +00:00
luis
ac860ca961 Corrected trivial typo 2010-05-17 17:56:29 +00:00
david
5c60064871 Fix some accidental duplicate template specifiers in
nmap-service-probes.
2010-05-17 16:21:56 +00:00
fyodor
f9613a11be Add an idea from Luis to the Nping TODO 2010-05-16 02:24:03 +00:00
ron
50b9af97b6 Added extra 'overrides' calls all over smb.lua. They're required for some modifications to smb-check-vulns.nse I'm planning. 2010-05-15 15:57:01 +00:00
fyodor
e75799b11e a couple new items for the todo list 2010-05-14 23:43:32 +00:00
fyodor
e2d9a5d7ad some changes from chat w/David 2010-05-14 23:03:55 +00:00
david
b0e4a020b5 Add to CHANGELOG:
o Nmap now works with "teamed" network interfaces on Windows. In order
  to distinguish the interfaces, their textual descriptions are now
  compared in addition to their MAC addresses. Without this, Nmap
  would send on the wrong interface and not receive any replies. A
  symptom of this problem was all scans failing except when
  --unprivileged was used. Norris Carden reported this bug. [David]
2010-05-14 16:56:50 +00:00
david
7b956b8099 Document r17542 in NMAP_MODIFICATIONS.
o Made eth_get_pcap_devname compare interface descriptions as well as
  MAC addresses when assigning interface names like eth0 on Windows.
  Only comparing MAC addresses failed in the case of "teamed"
  interfaces, when three interfaces (two physical, one virtual) could
  have the same hardware address.
2010-05-14 16:53:46 +00:00
tomsellers
66714334dc Including information in the nmap-service-probes file for
the Promise Array Manager matchline I just removed just in
case it is submitted again.
2010-05-14 01:18:15 +00:00
tomsellers
3d061b6ccf Removing a matchline for the Promise Array Management Software
that was triggering false matches against TLS protected services.

See http://seclists.org/nmap-dev/2010/q2/465
2010-05-13 23:34:01 +00:00
david
48c6e7b820 Move the body of eth_get_pcap_devname back into intf_get_pcap_devname, leaving
eth_get_pcap_devname as a wrapper.

In addition to the hardware address check, add a check of the textual interface
descriptions in order better to distinguish interfaces. It appears to me that
the pcap description (pdev->description) is the same as what is returned by a
call to PacketRequest with an OID of OID_GEN_FRIENDLY_NAME, so that's what I'm
comparing. That differs from OID_GEN_VENDOR_NAME, which is what you get in
ifrow.bDescr from GetIfTable.

We've found that simply comparing hardware addresses is not enough when using
Windows "teamed" (link-aggregated) interfaces. In a simple example, two NICs
are teamed together, leading to three interfaces visible to libdnet: the two
physical NICs and the virtual teamed interface. All three of these have the
same MAC address. What was happening was the eth0 interface was being assigned
to one of the physical NICs, packets were sent over it, but the replies were
not necessarily coming back to the same physical NIC.
2010-05-13 04:06:53 +00:00