wtfmyip.py - Test proxy or grab local IP


SUBMITTED BY: Guest

DATE: Oct. 8, 2014, 7:01 a.m.

FORMAT: Text only

SIZE: 509 Bytes

HITS: 1204

  1. #!/usr/bin/env python
  2. #install python-tk on n00buntu
  3. #apt-get install python-nltk
  4. #Really fucking simple script for obtaining your external IP,
  5. #or testing tor through proxychains or torify!
  6. #http://scaredkid.org/
  7. #I can't keep coding without BTC: 1JmS81r4n11WmfUUKJfKUfp7Weym6p7iqN
  8. import nltk
  9. from urllib import urlopen
  10. url = "http://ip.42.pl/raw"
  11. html = urlopen(url).read()
  12. raw = nltk.clean_html(html)
  13. print 'External IP Address: ' + (raw)
  14. #EOF

comments powered by Disqus