mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
15 lines
217 B
Lua
15 lines
217 B
Lua
--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
|