david
502339c92c
Revert to r32212.
...
My recent changes are causing problems when I try to integrate them into
the ncat-sa-take2 branch.
2013-09-06 06:16:13 +00:00
david
4fdde97639
Factor out lua_call_traceback.
...
This does a lua_pcall with the standard traceback error handler.
2013-09-05 22:10:15 +00:00
david
3ada0d56c3
Don't use global o.cmdexec in lua_setup.
...
Pass the name of the file to read as a parameter.
2013-09-05 20:35:50 +00:00
david
a16dd65503
Get rid of static lua-exec state.
...
Have lua_setup return the state it creates. Store the state created from
--lua-exec in the global options table. Use a temporary local for
--lua-exec-internal.
2013-09-05 20:35:49 +00:00
david
7ab4da3581
Get rid of the global traceback index.
...
Just push the traceback function before lua_pcall. The now has to be
less meticulously maintained between lua_setup and lua_run.
2013-09-05 20:35:48 +00:00
david
c38367b8c8
Remove obsolete comment.
2013-09-05 20:35:46 +00:00
d33tah
ca3ceecbf3
Fix echo.lua bug related to how io.stdin:read(n) works.
2013-09-04 15:40:51 +00:00
d33tah
fad24ba53e
Fix a typo.
2013-09-04 15:40:47 +00:00
d33tah
143a8acc8a
Don't consider "\r" an end of line.
2013-09-04 15:40:41 +00:00
d33tah
4b07187873
Make conditional.lua use read_line too.
2013-09-04 14:33:39 +00:00
d33tah
e718536eaf
Send 414 if the first line is longer than 8096 bytes.
2013-09-04 14:25:53 +00:00
d33tah
6f472f154c
Replace io.stdin:read("*line") with a custom read_line function.
2013-09-04 14:04:55 +00:00
d33tah
bbadf79933
Copy httpd.lua from lua-exec-examples branch.
2013-09-03 18:44:46 +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
d33tah
d68d608d7d
Fix coding style of all scripts with Lunadry.
2013-08-29 13:34:23 +00:00
d33tah
02b7b0ac8e
Mention the HTTP server in --lua-exec section.
2013-08-29 12:26:28 +00:00
d33tah
520e1a4fc5
Add some more --lua-exec documentation.
2013-08-29 12:18:14 +00:00
d33tah
fde17a7db5
Mention the SSH built-in proxy.
2013-08-26 17:26:20 +00:00
d33tah
fe202d25f2
Add <command> tags to the Ncat Users' Guide.
2013-08-26 17:20:14 +00:00
d33tah
8c063aad3c
Add a section on HTTP servers to Ncat Users' Guide.
2013-08-26 15:53:37 +00:00
fyodor
b490777101
Add the source code for the Ncat Guide ( http://nmap.org/ncat/guide/index.html ) to the Ncat docs directory
2013-08-24 06:08:21 +00:00
fyodor
85e74c4075
Regen man pages
2013-08-17 20:09:25 +00:00
david
1c0e86596e
Split Windows/POSIX implementations of ncat_openlog.
...
O_BINARY doesn't exist on POSIX.
2013-08-16 21:33:41 +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
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