mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +00:00
15 lines
209 B
Lua
15 lines
209 B
Lua
--Emulates the RFC 862 echo service, behaving like Unix's "cat" tool.
|
|
|
|
while true do
|
|
|
|
data = io.stdin:read(1)
|
|
|
|
if data == nil then
|
|
break
|
|
end
|
|
|
|
io.write(data:upper())
|
|
io.flush()
|
|
|
|
end
|