You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
416 B
Python
18 lines
416 B
Python
#!/usr/bin/env python3
|
|
# panxy, a random proxy connector
|
|
|
|
from urllib import request
|
|
import sys
|
|
target = "http://theresno.cloud/ip"
|
|
|
|
prx = sys.argv[1]
|
|
print("Using proxy " + prx + " ...")
|
|
proxy_handler = request.ProxyHandler({'https': 'http://' + prx + '/', 'http': 'http://' + prx + '/' })
|
|
|
|
opener = request.build_opener(proxy_handler)
|
|
result = opener.open(target)
|
|
content = result.read().decode()
|
|
|
|
print(content)
|
|
|