1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00
Commit Graph

8487 Commits

Author SHA1 Message Date
david
2cda8ca150 Make it a non-fatal error when one of two listeners can't be opened.
Unless given a specific listen address, we open two separate listening
sockets, one for IPv4 and one for IPv6. It was previously a fatal error if we
failed to create either socket. Now it is fatal only when all potential
listening addresses fail.

David Millis discovered that the IPv6 listener failed on Windows XP without
IPv6 configured.
Ncat: socket: An address incompatible with the requested protocol was used.  QUITTING.
http://seclists.org/nmap-dev/2013/q3/96
2013-08-06 03:49:35 +00:00
david
bd64bba0e0 Fix an indexing error in Ncat datagram listen mode. 2013-08-06 02:24:16 +00:00
david
573cd469ab Allow do_listen to return an error. 2013-08-06 02:09:15 +00:00
david
4f2f09d502 Make failure to resolve "::" non-fatal.
David Millis noticed this error on Windows XP with IPv6 disabled:
Ncat: Failed to resolve default IPv6 address: No such host is known. . QUITTING.
http://seclists.org/nmap-dev/2013/q3/96
2013-08-06 01:59:39 +00:00
david
61bbe88307 Include "nbase.h" for __attribute__ define on Windows.
I needed this on Visual C++ 2010 on Windows XP.
2013-08-06 01:35:33 +00:00
david
e3595a627d New URL for Visual C++ 2010 now that 2012 is released. 2013-08-06 01:21:45 +00:00
david
de460c242e Fix the test for an unmatched service in skypev2-version.nse.
Marin Maržić noticed that port.service is set even for unmatched
services. We want this script to run especially for ports 80 and 443.
http://seclists.org/nmap-dev/2012/q4/490
2013-08-05 23:52:57 +00:00
david
eb74e27faf TeamSpeak 3 version probe and UDP payload.
Submitted by Marin Maržić.
http://seclists.org/nmap-dev/2012/q4/490
http://seclists.org/nmap-dev/2013/q3/72
2013-08-05 23:52:55 +00:00
david
064430b084 Match specific TeamSpeak 2 versions.
The version number is in the protocol, but not as a string. This will
require a match line for each version but allows us to be more specific.
2013-08-05 23:52:52 +00:00
david
52bb4806f7 CPE for TeamSpeak 2 match lines. 2013-08-05 23:52:50 +00:00
david
fd1cd2a287 More permissive TeamSpeak 2 match lines. 2013-08-05 23:52:48 +00:00
david
27b9dbdb14 Add sequence number to TeamSpeak 2 match lines. 2013-08-05 23:52:45 +00:00
david
9241339b17 Add key to TeamSpeak 2 responses from Marin Maržić.
http://seclists.org/nmap-dev/2013/q3/72
2013-08-05 23:52:43 +00:00
d33tah
3add365154 Fix the order of libraries for test programs in
Ncat's Makefile, as reported by v4hn here:
http://seclists.org/nmap-dev/2013/q3/216
2013-08-05 18:15:30 +00:00
sophron
b6435bd19b Fixed an argument's name. 2013-08-03 16:10:21 +00:00
david
85b6312590 Use fetchfile to look for GeoLiteCity.dat.
Apparently it only worked before when you were running from an Nmap
source directory, where nselib was in the current directory.

Roy Woods reported the problem.
http://seclists.org/nmap-dev/2013/q3/48
2013-08-01 02:01:09 +00:00
david
3e1334b5de Allow the file open error message to propagate upward.
The error message from io.open includes the file name and strerror.
2013-08-01 01:36:01 +00:00
david
4035012050 Remove the "" entry from search_keywords.
Having this entry made it appear as if there was a search criterion
named for the empty string; i.e., a string like ":foobar" would be
parsed as an operator "" with an argument "foobar". There was no match
function defined for the empty string, which led to this crash:

Version: 6.25
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/zenmapGUI/ScanInterface.py", line 247, in filter_hosts
    self.inventory.apply_filter(filter_string)
  File "/usr/lib/python2.7/dist-packages/zenmapCore/NetworkInventory.py", line 502, in apply_filter
    if not self._match_all_args(host, operator, args):
  File "/usr/lib/python2.7/dist-packages/zenmapCore/NetworkInventory.py", line 452, in _match_all_args
    if positive != self.__getattribute__("match_%s" % operator)(host, arg):
AttributeError: 'FilteredNetworkInventory' object has no attribute 'match_'

I did some quick tests and plain keyword searching (with no colon) seems
to still work. I'm not sure why the "" entry was ever present.

Reported by Kris Paernell.
http://seclists.org/nmap-dev/2013/q3/38
2013-07-31 21:12:51 +00:00
henri
ec55767734 Removed dead code 2013-07-31 19:11:21 +00:00
henri
694a8fe825 Nsock-pcap cleanup
Make the API follow the general nsock style. Report errors properly using the
nsock logging facilities.
2013-07-31 19:11:16 +00:00
henri
8352b28e55 Rewrapped and rephrased comments. 2013-07-31 19:11:09 +00:00
henri
23a58a1bc8 Minor style fixes. 2013-07-31 19:01:25 +00:00
henri
76a5565519 Spacing. 2013-07-31 19:01:21 +00:00
henri
105ea877b2 Update error message.
Report errors to dev@nmap.org.
2013-07-31 19:01:17 +00:00
henri
5d8fdc74a6 Cleanup conditionally compiled expressions. 2013-07-31 19:01:12 +00:00
henri
098c64a1de Removed occurences of `assert(0);'
Replaced them with `fatal()' so that nsock can compile w/ NDEBUG.
2013-07-31 18:46:57 +00:00
sophron
8572c85d0b Correctly handle cases where the tested fingerprint path does not end with "/". Patch by nnposter. 2013-07-30 00:03:04 +00:00
fyodor
6e01ecd452 Update an email address, fix a typo, and slightly reword a sentence. 2013-07-30 00:02:00 +00:00
fyodor
fa6db96c73 Update the man page to use the latest text from COPYING file and regenerate 2013-07-29 23:57:40 +00:00
sophron
d3cb3dfa37 Fixed category's name in the description of http-default-accounts.nse. 2013-07-29 22:19:59 +00:00
sophron
40220702d0 Added Linksys WAP200 to http-default-accounts-fingerprints. 2013-07-29 22:17:52 +00:00
sophron
91858c55d4 Handle 404 responses. Patch by nnposter. 2013-07-29 15:57:34 +00:00
fyodor
d6a013dc51 Note that the 6.40 changelog is still incomplete. I hope to finish it today before leaving for Las Vegas tomorrow. 2013-07-29 09:10:34 +00:00
fyodor
f79a11aeeb o [NSE] Oops, there was a vulnerability in one of our 437 NSE scripts.
If you ran the (fortunately non-default) http-domino-enum-passwords
  script with the (fortunately also non-default)
  domino-enum-passwords.idpath parameter against a malicious server,
  it could cause an arbitrarily named file to to be written to the
  client system.  Thanks to Trustwave researcher Piotr Duszynski for
  discovering and reporting the problem.  We've fixed that script, and
  also updated several other scripts to use a new
  stdnse.filename_escape function for extra safety.  This breaks our
  record of never having a vulnerability in the 16 years that Nmap has
  existed, but that's still a fairly good run. [David, Fyodor]
2013-07-29 06:19:24 +00:00
sophron
93accf0619 Handle cases where the HTTP response fails. Patch by nnposter. 2013-07-29 06:14:04 +00:00
fyodor
b01fd55cb6 Change version number to 6.41SVN and regenerate auto-generated files such as man page, script.db, etc. 2013-07-29 06:00:07 +00:00
david
d7f795cd98 Expand a couple of fingerprints to match current scanme. 2013-07-29 00:01:53 +00:00
fyodor
83fb10ec56 Update the Nmap copyright/license files. This isn't the new Nmap Public Source License we've been discussing on the list, but rather just a 'quick patch' to hopefully prevent some of the abuse we've been seeing from companies lately. More details on the changes will be posted to the dev list. Also, the copyright year was updated to 2013 (which is the only change to Nsock license statements). 2013-07-28 22:05:05 +00:00
fyodor
30bb6ab191 Note a done task 2013-07-28 19:44:49 +00:00
david
5db8c41f9c Put ru.po Plural-Forms on a single line.
Having this on two lines apparently uncovers a bug in some versions of
Python gettext. A Zenmap crash was reported by Дмитрий Никитич.

http://seclists.org/nmap-dev/2013/q2/525

http://bugs.python.org/issue1448060
https://bugzilla.redhat.com/show_bug.cgi?id=252136
2013-07-27 01:59:21 +00:00
sophron
7e0ac25756 Added documentation and comments. 2013-07-25 15:42:16 +00:00
sophron
1fb88abed9 Corrected arguments name on the documentation of the script. 2013-07-25 01:59:07 +00:00
sophron
1f6467d8b6 [NSE] Added whois-domain.nse and renamed whois.nse to whois-ip.nse 2013-07-25 00:57:28 +00:00
d33tah
5ff69d478f Mention adding the environment variables in nmap's CHANGELOG. 2013-07-24 18:07:58 +00:00
d33tah
8f84863a23 add NCAT_LOCAL_ADDR, NCAT_LOCAL_PORT, NCAT_REMOTE_ADDR, NCAR_REMOTE_PORT,
NCAT_REMOTE_ADDR environment variables set in all --*-exec child processes.
(this is a merge of ncat-env-conninfo as of r31516)
2013-07-24 13:58:15 +00:00
d33tah
f5a142b0d4 make --lua-exec-internal switch STDOUT to binary mode. (this was merged from nmap-exp/d33tah/lua-exec-examples/ncat, r31481) 2013-07-23 12:36:09 +00:00
d33tah
aa1b31450b reverting the last commit, will put the script in a separate branch. 2013-07-20 15:39:38 +00:00
d33tah
7c526d7a75 commit the first version of my httpd.lua demo - probably most advanced one so far. 2013-07-20 15:12:04 +00:00
henri
63aa6d83fb Improved error handling in socket_block/unblock. 2013-07-18 20:29:29 +00:00
sophron
42942a3331 [NSE] Added http-referer-checker that informs about cross-domain include of scripts. 2013-07-18 14:55:16 +00:00