nmap/ncat/scripts/whatismyip.lua

4 lines
192 B
Lua

--A "what is my IP" service code. Since most web browsers put up with servers
--not sending proper HTTP headers, you can simply query the service with it.
print(os.getenv "NCAT_REMOTE_ADDR")