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

4571 Commits

Author SHA1 Message Date
fyodor
85ec3660aa note more explicitly which versions of Windows are supported 2009-10-19 20:45:38 +00:00
david
18fb4bdf64 Tiny whitespace changes. 2009-10-14 16:07:47 +00:00
fyodor
f30b2217f6 A few more changes during discussion w/David 2009-10-13 21:39:16 +00:00
fyodor
c0697a5f68 Some changes from chat w/David 2009-10-13 21:26:24 +00:00
tomsellers
c5d1fe5590 Minor change to ssl-cert.nse to bring display of certificate
fingerprints (MD5/SHA) in line with documentation which indicates
that they are not displayed unless verbose output is requested.
2009-10-13 03:01:51 +00:00
tomsellers
3b4fa34257 [NSE] Modified NSE script ssl-cert.nse to support TLS negotiation
against SMTP ports that support it. Depends on Patrick's addition the
  of the reconnect_ssl method.  [Tom Sellers, David]
2009-10-13 01:19:33 +00:00
david
4dca11125f [Zenmap] Fixed a crash that could occur when entering certain
characters in the target entry (those whose UTF-8 encoding contains
a byte that counts as whitespace in the Windows locale):
  File "zenmapGUI\ScanNotebook.pyo", line 184, in _target_entry_changed
  File "zenmapCore\NmapOptions.pyo", line 719, in render_string
  UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 1:
    unexpected end of data
One such character is a with grave accent, U+00E0, which in UTF-8 is
C0 A0, where the A0 is interpreted as a no-break space when the
string is interpreted byte by byte. [David]
2009-10-12 03:25:54 +00:00
david
a8821f3cf4 Add the NSE function nmap.bind, which sets the source address of a
socket.
2009-10-11 23:08:43 +00:00
david
3fd8f0a0c5 Remove the allocation and freeing of a fixed-size dynamic buffer and
replace it with a static buffer.
2009-10-11 21:54:39 +00:00
david
dd6eb63b36 Fix NSE trace printing of IPv6 addresses. The code was using a plain
sockaddr instead of sockaddr_storage so it got only a fraction of the
address and the inet_ntop function would look outside of the structure
into adjacent memory. A scan of localhost would look like this:

NSE: TCP ::a00:0:600:0:1234 > ::a00:4d2:0:0:25 | CONNECT

Here, for example, that 4d2 is the port number 1234 from the other
structure. Now it prints correctly:

NSE: TCP ::1:1234 > ::1:25 | CONNECT
2009-10-11 21:51:51 +00:00
david
cca80f0304 Fix a typo in smtp-open-relay.nse. 2009-10-11 21:10:27 +00:00
david
d7f6706df3 [Nsock] Made it a fatal error instead of silent memory corruption
when an attempt is made to use a file descriptor whose number is not
less than FD_SETSIZE. This applies only on non-Windows platforms
where FD_SETSIZE is a limit on the value of file descriptors as well
as a limit on the number of descriptors in the set. The error will
look like
  nsock_core.c:186: Attempt to FD_SET fd 1024, which is not less
  than FD_SETSIZE (1024). Try using a lower parallelism.
Thanks to Brandon Enright for discovering the problem and much help
debugging it, and to Jay Fink for submitting an initial patch. [David]
2009-10-11 19:23:39 +00:00
david
a681119026 Add to CHANGELOG:
o [Ncat] Fixed proxy connections in connect mode on Windows. Because
  the dup function does not work on Windows, an assertion failure
  would be raised reading
    (fh >= 0 && (unsigned)fd < (unsigned)_nhandle)
  [David]
2009-10-10 03:22:35 +00:00
fyodor
1b767b9cbc Add Oracle Enterprise Manager Agent version detection signature (and added it to the ports list). Patch by Matt Selsky 2009-10-10 00:27:14 +00:00
david
020fcc0b62 Add to CHANGELOG:
o [Ncat] Fixed the combination of --max-conns and --exec on Windows.
  The count of connected clients was not decreased when the program
  spawned by --exec finished. With --max-conns 5, for example, no more
  connections would be allowed after the fifth, even if some of the
  earlier ones had ended. Jon Greaves reported the problem and Venkat
  contributed a patch.

o [Ncat] The code that manages the count of connected clients has been
  made robust with respect to signals. The code was contributed by
  Solar Designer.
2009-10-09 18:45:10 +00:00
fyodor
4467a32059 Reordered some items for prioritization. Also, one of the items added during this meeting was finished by David before the meeting was even over :) 2009-10-06 21:46:55 +00:00
fyodor
fd314f948b TODO improvements from chat w/David 2009-10-06 21:38:59 +00:00
daniel
d965b42e6f Update the SCTP TODO list. 2009-10-06 19:31:52 +00:00
batrick
afa84d2320 [NSE] Added the reconnect_ssl method for sockets. We sometimes need
to reconnect a socket with SSL because the initial communication on the socket
is done without SSL. See this thread [1] for more details.

[1] http://seclists.org/nmap-dev/2009/q4/3
2009-10-06 13:02:12 +00:00
batrick
b356ce2580 Added smb-check-vulns.nse to the vuln category. 2009-10-06 12:04:35 +00:00
david
e7afd943f0 Remove the ununsed UltraProbe::internalProbe member. 2009-10-02 22:52:10 +00:00
fyodor
8cfe264522 regenerate script.db after the updates to the safe/intrusive categories 2009-10-01 19:08:33 +00:00
fyodor
fea1ab7c39 Moved a bunch of scripts to the "safe" category, and some others to "intrusive" after
discussion on nmap-dev about how best to handle these.  I also updated the docs and
am about to regenerate script.db.  See this thread for more info:
http://seclists.org/nmap-dev/2009/q3/1008.html
2009-10-01 19:07:16 +00:00
joao
8dfb8af45e Removing outdated params from tryssl description 2009-10-01 03:20:37 +00:00
david
361f10fc90 Update NSEDoc to say that nmap.get_port_state can return nil if you pass
it a port that was not scanned.
2009-09-29 14:58:44 +00:00
fyodor
3836a8205d Add a new item related to better usage of the 'safe' category 2009-09-29 04:21:04 +00:00
david
fa40ea3c58 Add to CHANGELOG:
o The files read by the -iL (input from file) and --excludefile
  options now support comments that start with # and go to the end of
  the line. This was implemented by Tom Sellers.
2009-09-29 02:11:13 +00:00
david
ab8fcad92d Document the possibility of having comments in -iL and --excludefile in
refguide.xml.
2009-09-29 02:08:36 +00:00
david
89019cb221 Split the load_exclude function into load_exclude_file and
load_exclude_string. Use read_host_from_file in load_exclude_file to
support comments like in -iL files.
2009-09-29 02:06:56 +00:00
david
0e2d5af0f9 Factor out the function that reads a host specification from an input
file.
2009-09-29 01:15:17 +00:00
david
a3df140563 Allow # comments in input files from -iL. The patch is from Tom Sellers. 2009-09-29 00:33:41 +00:00
david
adcbd54e19 Close the -iL input file after reading. 2009-09-28 23:15:55 +00:00
david
2e3b86618b Use a STARTF_USESHOWWINDOW technique to allow running the nmap process without
using the Windows shell. The only reason for using the shell was to inhibit the
ceration of a terminal window, and this does the same thing. This solves
problems related to running through a shell: cancelling a scan wouldn't kill
the nmap process, and running from directories with names containing shell
metacharacters wouldn't work.
2009-09-28 22:02:57 +00:00
david
084ba69efe Remove special-case code for doing a traceroute without a port scan, and
just handle it in the normal program flow. A problem with having two
pieces of code doing the same thing was that they varied a bit; if you
ran -sP --traceroute you wouldn't get the "Final times for host" output
because that was left out of one of the output loops. Another problem
was that the special-case logic assumed that traceroute was the only
thing that could happen after a port scan, which is not true because
script scanning can happen too. Running -sP --traceroute --script=all
would not run any scripts. Now it run asn-query and whois as expected.
2009-09-28 20:34:23 +00:00
david
1637c05fe2 Make the times element optional as a child of host. There are cases when
there are no times to record because no packets were sent, as when using
-sL or -sP -PN --traceroute --send-ip against a directly connected host.
2009-09-28 20:21:46 +00:00
david
925d2a1693 Make the port and proto attributes optional on the trace element in
nmap.dtd. With a protocol trace or an ICMP trace, there's no port
number.
2009-09-28 20:19:30 +00:00
david
d0a1bd3001 Print the proto attribute ("tcp", "udp", etc.) along with the port
number in the XML output for traceroute.
2009-09-28 20:12:46 +00:00
david
31d2c497fa Give Probe a virtual destructor because it is deleted through pointers
that point to instances of subclasses (TCPProbe etc.).
2009-09-27 18:29:20 +00:00
david
67ab4c0208 Fix the initialization of sockaddr_in structures in traceroute name
resolution. The initialization
    struct sockaddr_in sin = { AF_INET };
didn't set sin.sin_family correctly, leading to a later assertion
failure:
Failed to convert target address to presentation format!?! Error: Address family not supported by protocol family
2009-09-27 18:08:42 +00:00
david
8fd7a0a46b Always begin with a TTL of at least 1 in traceroute, even if OS
detection calculated 0 (erroneous if not localhost). This caused an
assertion failure reported by Chris Clements in
http://seclists.org/nmap-dev/2009/q3/1054.html.
2009-09-27 18:05:16 +00:00
david
a99b8e5e6b Update Zenmap French translation by Henri Doreau. 2009-09-27 16:00:48 +00:00
fyodor
f6fd7d5fc4 Update refguide license from Creative Commons Attribution License version 2.5 to 3.0. 2009-09-25 21:34:16 +00:00
fyodor
a8d6ba3ce9 Add a note to fix the Ncat Windows --max-conns bug 2009-09-23 10:03:41 +00:00
fyodor
aee2d3825a Add some extra debug information related to the Windows version detected
by the installer.  Also notes that we recommend starting the WinPcap service at system startup for Windows 7 as well as vista.  The patch is from Rob Nicholls.
2009-09-23 00:31:17 +00:00
david
556a59791f Regenerate man pages. The current versions were broken. 2009-09-22 21:48:00 +00:00
fyodor
f1456b9b4a Changes from chat w/David 2009-09-22 20:37:20 +00:00
ron
390ce42616 Removed the default limit of usernames/passwords, and updated the comments accordingly. Users can still limit by passing script-args. 2009-09-19 05:42:07 +00:00
ron
88d5050fd1 Totally overhaulted the ftp-brute.nse script. I opened this script to see about certain changes, and discovered that it was only actually checking a single account (xampp/default). So I hooked it into unpwdb, but discovered that, at least against my test server, it was _extremely_ slow. For that reason, I limited it to the first 10 usernames/passwords for now. 2009-09-18 19:48:45 +00:00
kris
0ab7d34c88 updating ip_is_reserved(): 02/8 and 46/8 allocated yesterday 2009-09-18 19:03:33 +00:00
david
275a346804 Add a BPF filter to traceroute so we only get packets sent to our own
source address; i.e., not the packets we send.
2009-09-17 22:50:09 +00:00