d33tah
c46f8f0ca4
Fix coding style in my code.
2013-08-13 19:54:09 +00:00
henri
61f6696ae3
Wrong inclusion path.
2013-08-13 17:55:36 +00:00
henri
456430c676
Windows compatibility fix.
...
Initialize winsock before starting nsock test suite.
Initial patch from Gisle Vanem.
2013-08-13 12:36:28 +00:00
henri
0054b3ff4f
Windows compatibility fix.
...
Initialize winsock in ncat addrset test.
Initial patch from Gisle Vanem.
2013-08-13 12:36:19 +00:00
henri
64c706c260
Proper code alignment.
2013-08-13 12:36:08 +00:00
d33tah
6805376faf
Fix an nsock build error under MSVC.
2013-08-11 20:52:15 +00:00
henri
b0abceec37
Make nsock test suite listeners listen on IPv4
...
Do everything explicitely to avoid unexpected behaviors. IPv6 will be added
separately at some point.
2013-08-11 08:31:39 +00:00
david
1154495aa3
Add a "key" element to the result of ssh1.fetch_host_key.
...
ssh-hostkey.nse wanted this element to be present, but it was missing
from SSH1 keys. This caused a crash that was reported by Dan Farmer and
Florian Pelgrim.
http://seclists.org/nmap-dev/2013/q3/151
http://seclists.org/nmap-dev/2013/q3/155
2013-08-11 05:36:48 +00:00
david
82df82b5fd
Do base64-encoding of the SSH key before returning, not after.
...
Not all SSH key formats use base64 encoding, for example SSH1 keys looks
different. So we can't blindly base64-encode the raw strings that we
receive. Attempt to return keys in the same format as is used by the
known_hosts file.
2013-08-11 05:36:45 +00:00
henri
ea8995ebf7
Use a parameter to invoke `ncat' in run_tests.sh
...
Run: `NCAT=/opt/something/ncat ./run_tests.sh' to invoke a specific binary.
2013-08-11 00:11:21 +00:00
henri
853aaff586
Manage expiration times via a heap queue.
...
This prevents nsock from iterating over the whole list of events at
each runloop, thus improving performance.
It made it necessary to have pointers from the msevents to the event
lists they belong to. The patch therefore also changes gh_list from
autonomous containers to embedded structures.
Added unit tests accordingly and cosmetic changes to make things look
more consistent.
2013-08-10 23:59:30 +00:00
sophron
23457a77c0
Modifies the cookie header assembling logic to make it more compliant with RFC 6265, Section 4.2.1, which does not allow the trailing semicolon. Patch by nnposter.
2013-08-10 23:09:16 +00:00
sophron
4b8ed158cf
Modifies interpretation of the cookie path in nselib/http.lua to make it more compliant with RFC 6265, Section 5.1.4. Patch by nnposter.
2013-08-10 23:02:40 +00:00
henri
170a85f677
Don't use ANSI color sequences on windows.
...
Pointed out by Gisle Vanem. Fixed it in a way that makes it easy to disable on
other systems as well.
2013-08-10 20:19:38 +00:00
henri
822d3e1da2
Fixed non-portable perror() statement.
...
Replaced perror() by printf + socket_strerror(socket_errno()).
Reported by Gisle Vanem.
2013-08-10 20:19:09 +00:00
sophron
623991eb82
Updated script.db.
2013-08-10 20:07:29 +00:00
sophron
cd23b07f9f
[NSE] Removed facebook's domain name as an example.
2013-08-10 19:47:56 +00:00
sophron
1907693c35
[NSE] Added http-useragent-tester.nse.
2013-08-10 19:36:12 +00:00
sophron
b01bbdf733
[NSE] Added http-mobileversion-checker.nse.
2013-08-10 19:32:05 +00:00
sophron
fa64f0bc50
[NSE] Added http-dombased-xss.nse.
2013-08-10 19:30:56 +00:00
sophron
4fcbacc49d
Added a fingerprint for Cisco/Linksys WAP55AG accesspoint.
2013-08-09 17:51:07 +00:00
d33tah
384b9a1f8e
Fix the syntax error from the previous commit (tried to compile under Linux).
2013-08-09 17:16:48 +00:00
d33tah
ece95926cb
Fix the silly mistake that happened when copying code (using wrong variables).
2013-08-09 17:07:12 +00:00
d33tah
c68114f9bc
Change the usleep call to match the other one.
2013-08-09 16:59:30 +00:00
d33tah
9f335c6bdb
Merge in the fix for fselect Windows bug causing a CPU-intensive loop when we only select on stdin.
2013-08-09 13:02:43 +00:00
fyodor
71033d2812
o [NSE] Update dns-cache-snoop script to use a new list of top 50
...
domains rather than a 2010 list. [Nicolle Neulist]
2013-08-09 04:02:41 +00:00
david
4773f745d8
Add qconn-exec script by Brendan Coles.
...
http://seclists.org/nmap-dev/2013/q3/153
2013-08-09 03:23:40 +00:00
d33tah
b2187f6749
Remove most tabs in nbase. This probably needs some fixes, but the tabs really confused my vim.
2013-08-09 00:16:52 +00:00
david
627dbb2848
svn:ignore libpcre/*.o.
2013-08-08 01:09:43 +00:00
david
c3bb98e014
Regen ncat.1.
2013-08-06 22:24:40 +00:00
david
c822b17772
indexterms for environment variables.
2013-08-06 22:24:37 +00:00
david
acb9538b8e
Copyediting of environment variables.
2013-08-06 22:24:33 +00:00
david
375e70c7e4
Don't need this para.
...
The contents of these variables will *always* be numeric IP addresses.
Nobody expects IPv6 addresses to be expanded.
2013-08-06 22:24:15 +00:00
david
95855e25a5
Formatting of Ncat environment vars.
2013-08-06 22:24:10 +00:00
david
6df37710e3
Move exec env vars so they're not all under --exec.
2013-08-06 22:23:56 +00:00
batrick
0132721232
formatting
2013-08-06 21:41:09 +00:00
henri
23ad881d6b
Removed superfluous includes.
...
Report and patch by Gisle Vanem.
2013-08-06 20:10:57 +00:00
henri
40b11064e4
Use socket_strerror() for error reporting.
...
Report and patch by Gisle Vanem.
2013-08-06 20:10:49 +00:00
henri
3a8607d65c
Restore headers in nsock error.h
...
These includes seem useless and nsock and nmap happily compile w/o them but the
nsock test suite doesn't. Temporarily restore them to their pre-r36100 state
until I can clean and streamline the inclusion tree.
2013-08-06 19:39:39 +00:00
henri
3b6a09954b
Build fix [brown-paper-bag bug]
...
Space inserted between the 'i' and the 'f' in a 'if'.
Reported and fixed by Robert Snyder.
2013-08-06 17:37:16 +00:00
d33tah
13fe1aa08e
Backport the new setenv_portable from ncat-env-ncatins branch.
2013-08-06 17:34:57 +00:00
david
fef7fc0e6d
Hide new logdebug messages unless o.debug.
2013-08-06 03:59:00 +00:00
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