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:
14
ncat/scripts/echo.lua
Normal file
14
ncat/scripts/echo.lua
Normal 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
|
||||
Reference in New Issue
Block a user