1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00
Files
nmap/ncat/scripts/whatismyip.lua
2013-08-29 13:34:23 +00:00

5 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")