david
b01285b8f3
Automatically XFAIL SCTP tests on Windows.
2013-08-16 17:09:03 +00:00
david
a6dafe881c
Put test filehandles into binary mode.
2013-08-16 17:08:55 +00:00
david
ec311d78c5
Open log files in binary mode.
...
This avoids CRLF translation on Windows.
2013-08-16 17:08:46 +00:00
david
343e09c2fa
Push c_ins so that they aren't automatically closed.
2013-08-16 08:03:22 +00:00
david
48058be247
Typo.
2013-08-16 08:03:20 +00:00
david
e373fd5a5c
Must connect to "localhost" to match server cert.
2013-08-16 08:03:18 +00:00
david
91cce4c3d2
Connect to ::1 when -6 appears in the options.
2013-08-16 08:03:16 +00:00
david
623b3b9ae4
Close some sockets that ncat-test.pl open itself.
...
I was getting intermittent "address already in use" errors.
2013-08-16 08:03:14 +00:00
david
43f364de1a
Typos.
2013-08-16 08:03:12 +00:00
david
70e96fb8ee
Use 127.0.0.1 or ::1 where it counts.
2013-08-16 08:03:10 +00:00
david
b76967c325
Don't use a listen address by default.
2013-08-16 08:03:08 +00:00
david
1baf716fd0
Don't wait on server that doesn't listen.
2013-08-16 08:03:06 +00:00
david
02a7dc917f
Clear up some more localhost/127.0.0.1 confusion.
2013-08-16 08:02:58 +00:00
david
f9f8937057
Remove hardcoded delay in favor of waiting for a LISTEN message.
2013-08-16 08:02:57 +00:00
david
f1cfaba9e2
Output a LISTEN test message when do_listen is successful.
2013-08-16 08:02:55 +00:00
david
e2f4833fd1
Add logtest function.
2013-08-16 08:02:52 +00:00
david
68dc04479d
Add --test option.
...
This will be used to control the printing of test messages that say when
a connection is ready to use, to reduce delays in ncat-test.
2013-08-16 08:02:50 +00:00
david
70b7203d3f
Listen on IPv4 by default explicitly.
2013-08-16 08:02:49 +00:00
david
929ade0b11
Autoflush ncat-test.pl output.
2013-08-16 01:34:39 +00:00
david
bbde6ff4b2
Consistency.
2013-08-16 01:34:37 +00:00
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
0054b3ff4f
Windows compatibility fix.
...
Initialize winsock in ncat addrset test.
Initial patch from Gisle Vanem.
2013-08-13 12:36:19 +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
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