1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-27 16:49:01 +00:00
Commit Graph

135 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
d33tah
713641fb2f fix the Lua tests. 2013-07-17 21:41:22 +00:00
d33tah
2521c7c692 now that SIGPIPE is not a problem, finally add the chargen script. 2013-07-10 15:17:20 +00:00
d33tah
8520c1359e restore default SIGPIPE handler in netexec child process. 2013-07-10 15:10:35 +00:00
d33tah
6a98174f5d reverting r31265 - kept breaking the build on FreeBSD. 2013-07-08 16:58:42 +00:00
dmiller
1d8353f17b Fix linking error with Ncat by adding -ldl 2013-07-05 16:25:33 +00:00
d33tah
5ebd15fb91 coding style fix 2013-07-04 20:07:04 +00:00
d33tah
b62709eb20 merging in the --lua-exec feature for ncat. 2013-07-02 16:56:03 +00:00
david
73d4b0f0a0 Ncat: Add tests for idle timeout in listen mode
This patch adds tests for idle timeout in listen mode
for all supported protocols. It also modifies existing
test for idle time in connection mode to test the option
for all supported protocols.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2013-06-30 06:08:45 +00:00
david
5c4207f009 Ncat: Implement idle timeout option for listen mode
This patch implements "-i" (idle timeout) option for listen mode.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2013-06-30 06:08:43 +00:00
david
9e82bb6c4e Support chained certificate files with --ssl-cert.
Use the recommended SSL_CTX_use_certificate_chain_file over
SSL_CTX_use_certificate_file.
https://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html#NOTES

Patch by Greg Bailey.
http://seclists.org/nmap-dev/2013/q2/399
2013-06-29 22:33:56 +00:00
david
851676e407 Remove obsolete ncat.sln and nping.sln files. 2013-06-28 03:31:44 +00:00
henri
7f9f75f6b1 Updated ncat documentation so that it doesn't prevent users from using -v
more than three times.

The current rules are:
  -v      --> verbose mode
  -vv...  --> debug mode

Debug can be higher than two (use debug>=6 for full nsock logs for instance).
2013-06-24 21:06:19 +00:00
david
d1eae0196a Tabs to spaces. 2013-06-19 15:19:09 +00:00
david
42f3bcfdea fixing one typo in original ncat_core.c (atleast=>at least)
Originally by d33tah in r30940 in /nmap-exp/d33tag/ncat-lua.
2013-06-18 00:26:21 +00:00
d33tah
e9c6e5b925 revert the previous commit, git-svn pushed it to the wrong directory. 2013-06-13 15:10:07 +00:00
d33tah
3e3e87f462 * create d33tah directory at nmap-exp
* create a branch ncat-lua in nmap-exp/d33tah based on current nmap trunk
* merge in patches from github into ncat-lua branch
2013-06-13 15:04:23 +00:00
david
b30aba076a Set the default --max-conns to 60 on Windows.
Suggested by Andrey Olkhin.
http://seclists.org/nmap-dev/2013/q1/390
2013-06-02 09:03:44 +00:00
david
fc80b4573c Track proxy socklen and pass it on to targetlen.
Patch by Joachim Henke.
http://seclists.org/nmap-dev/2013/q1/413
2013-05-05 10:43:53 +00:00
david
21a8af6c08 Fix Ncat IPv6 HTTP CONNECT proxy syntax.
Patch by Joachim Henke.
http://seclists.org/nmap-dev/2013/q1/413
2013-05-05 10:21:46 +00:00
david
e408faae10 Fix signed/unsigned confusion in subprocess_thread_func.
Andrey Olkhin found that a test was always true because of the
signedness of a type.
http://seclists.org/nmap-dev/2013/q1/210
2013-03-02 08:32:28 +00:00
david
c3d079a584 Namespace subprocess pipes by PID.
Patch by Andrey Olkhin.
http://seclists.org/nmap-dev/2013/q1/210
2013-03-02 07:34:49 +00:00
david
0fceb95b5a Whitespace. 2013-02-24 02:50:02 +00:00
david
ee4d1e126b Remove a close that made a test unreliable. 2013-02-23 06:54:31 +00:00
david
c60b72f7a0 XFAIL some tests having to do with EOF handling.
http://seclists.org/nmap-dev/2013/q1/227
2013-02-23 06:54:30 +00:00
david
811d6096e1 Quit on EOF in non-TCP mode.
Apparently SCTP can't have the same kind of half-open sockets that TCP
has. When one direction is closed, we can't do anything further with the
socket.
http://seclists.org/nmap-dev/2013/q1/227
2013-02-23 06:54:29 +00:00
david
a9cb84f189 Break out separate SCTP tests for half-open sockets.
These should have different behavior than TCP.
http://seclists.org/nmap-dev/2013/q1/227
2013-02-23 06:54:28 +00:00
david
84773c74a5 Switch to an o.proto option instead of o.udp and o.sctp.
This eliminates the ambiguity that could exist when, say, both o.udp and
o.sctp were both set. The code would use whichever it happened to test
first. This also makes TCP mode explicit with IPPROTO_TCP.
2013-02-23 05:56:00 +00:00
david
ce51d8c4da Use the default value of MultiThreadedDLL where possible. 2013-02-09 20:30:01 +00:00
david
6b095f42d2 Use MultiThreadedDebugDLL (/MDd) in place of MultiThreadedDebug (/MTd).
This is to match r8507, which did the analogous thing for the Release
configuration.
http://seclists.org/nmap-dev/2013/q1/120
2013-02-09 20:29:55 +00:00