1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-11 02:09:03 +00:00
Files
nmap/ncat/test/toupper.lua
2013-07-17 21:41:22 +00:00

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