Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
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
Raw
Download
Tweet
HITS:
1228
Go to comments
Report
#!/usr/bin/env python
#install python-tk on n00buntu
#apt-get install python-nltk
#Really fucking simple script for obtaining your external IP,
#or testing tor through proxychains or torify!
#
http://scaredkid.org/
#I can't keep coding without BTC: 1JmS81r4n11WmfUUKJfKUfp7Weym6p7iqN
import nltk
from urllib import urlopen
url = "
http://ip.42.pl/raw"
html = urlopen(url).read()
raw = nltk.clean_html(html)
print 'External IP Address: ' + (raw)
#EOF
Please enable JavaScript to view the
comments powered by Disqus.