File: whatismyip.lua

package info (click to toggle)
nmap 7.98%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,872 kB
  • sloc: cpp: 61,855; ansic: 31,545; python: 17,238; sh: 15,622; xml: 11,564; perl: 2,650; makefile: 966; java: 45; objc: 45
file content (4 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (10)
1
2
3
4
--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")