1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

merging in the --lua-exec feature for ncat.

This commit is contained in:
d33tah
2013-07-02 16:56:03 +00:00
parent 085d4ccfb2
commit b62709eb20
25 changed files with 1594 additions and 31 deletions

14
ncat/scripts/echo.lua Normal file
View File

@@ -0,0 +1,14 @@
--Emulates the RFC 862 echo service, behaving like Unix's "cat" tool.
while true do
data = io.stdin:read(512)
if data == nil then
break
end
io.stdout:write(data)
io.stdout:flush()
end