Commit graph

61 commits

Author SHA1 Message Date
dmiller
d5645bf76d ncat-test.pl: make reading stderr easier
Some checks failed
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-07-31 20:57:28 +00:00
dmiller
8ce9f04570 Use cross-platform-safe quoting for perl commands 2026-03-10 20:23:17 +00:00
dmiller
edc7c4b492 ncat-test.pl: Also test that server is still running 2026-03-10 20:23:16 +00:00
dmiller
fd8957052a Alter sleeps for slower Windows reconnect behavior 2026-03-10 20:23:16 +00:00
dmiller
2f9c3065fa Fix tests on Windows under MSYS2 2026-03-10 20:23:15 +00:00
dmiller
ceccf5b237 ncat-test.pl: indicate timedout reads directly 2026-03-10 18:32:52 +00:00
dmiller
62206c623a ncat-test.pl: regen cert correctly 2026-03-10 18:32:51 +00:00
dmiller
c5a05402d0 Consolidate Ncat EOF tests and add -k option where needed 2024-11-25 22:09:11 +00:00
dmiller
179786b2ce Add UDP SSL (DTLS) to Ncat tests 2024-11-25 22:09:09 +00:00
dmiller
498e92539f Use usleep in ncat-test.pl. Use 3-arg open 2024-11-18 17:11:43 +00:00
dmiller
d2280e0911 Ncat can proxy IPv6 to IPv4 and back. Update tests. 2022-09-22 01:35:20 +00:00
dmiller
bf14c06d4c Some useful print statements for testing 2022-09-22 01:35:20 +00:00
dmiller
aa0500e9a4 Generate cert for Ncat tests automatically 2022-09-22 01:35:19 +00:00
dmiller
2f9fde995c Remove xfail from some tests that were fixed in r36651 2022-09-21 19:17:22 +00:00
dmiller
478c5d4f19 Avoid a duplicate -l option in test 2022-09-21 19:17:21 +00:00
dmiller
689ea0e05d Spelling corrections. Fixes #1160 2018-03-26 14:59:41 +00:00
dmiller
7aeb2ada62 Avoid false FAIL due to ncat not starting quickly enough 2017-10-03 22:43:38 +00:00
dmiller
ae59c8dafd Fix syntax error in ncat-test.pl 2017-10-03 22:43:37 +00:00
dmiller
09db4e48bf Fix paths and escape {} when running tests under Cygwin 2017-10-02 20:02:39 +00:00
dmiller
8488dae884 Expect failure with --sctp if no sctp support is available. 2017-10-02 16:55:18 +00:00
dmiller
bf54157855 Fix some timing-related test failures 2017-07-29 05:55:28 +00:00
dmiller
4629f6d836 Ncat supports DNS failover, including fallback to IPv4 from IPv6 2017-03-16 21:54:26 +00:00
abhishek
d04046ae48 Adds test for -z option in ncat, closes #444 2016-07-19 10:08:02 +00:00
david
d5d8cd3033 Add tests for 0-length POSTs.
The non-chunked one fails for me.
FAIL HTTP POST Content-Length: 0
     Read timeout at ./ncat-test.pl line 2087.
2014-03-07 05:54:48 +00:00
henri
21b7e3818d [Ncat] Added support for socks5 and corresponding regression tests.
[Marek Lucaszuk, Petr Stodulka]
2014-02-09 14:10:04 +00:00
d33tah
ad2b15b88f Make ncat-test.pl work on both Windows and *nix without modification;
feel free to revert it if you believe it needs some discussion first.
(I find it useful when working from both VM and Linux on a shared
directory)
2013-09-03 01:01:38 +00:00
d33tah
695be03e60 Fix a copy-paste mistake in Ncat test suite. 2013-08-30 10:23:22 +00:00
david
f43781f3d9 XFAIL Unix domain socket tests on Windows. 2013-08-16 17:09:06 +00:00
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
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
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
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
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
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