Linux business57.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
Server IP : 199.188.201.191 & Your IP : 3.14.128.23
Domains :
Cant Read [ /etc/named.conf ]
User : derozboy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python38 /
lib /
python3.8 /
site-packages /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-04-04 09:00
_distutils_hack
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
certifi
[ DIR ]
drwxr-xr-x
2024-03-21 16:08
certifi-2018.4.16-py3.8.egg-info
[ DIR ]
drwxr-xr-x
2024-03-21 16:08
pip
[ DIR ]
drwxr-xr-x
2024-03-03 22:49
pip-22.2.1.dist-info
[ DIR ]
drwxr-xr-x
2024-03-03 22:49
pkg_resources
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
sentry_sdk
[ DIR ]
drwxr-xr-x
2024-03-21 16:08
sentry_sdk-0.7.10-py3.8.egg-info
[ DIR ]
drwxr-xr-x
2024-03-21 16:08
setuptools
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
setuptools-58.3.0.dist-info
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
six-1.12.0-py3.8.egg-info
[ DIR ]
drwxr-xr-x
2024-03-21 16:08
urllib3
[ DIR ]
drwxr-xr-x
2024-08-13 08:31
urllib3-1.26.6-py3.8.egg-info
[ DIR ]
drwxr-xr-x
2024-08-13 08:31
.sentry.conf
101
B
-rw-------
2025-04-04 08:07
NCSentry.py
1.49
KB
-rw-r--r--
2025-03-26 11:05
PySocks-1.5.7-py3.8.egg-info
322
B
-rw-r--r--
2020-07-10 11:16
distutils-precedence.pth
152
B
-rw-r--r--
2023-11-13 21:45
six.py
31.69
KB
-rw-r--r--
2018-12-10 00:59
socks.py
29.25
KB
-rw-r--r--
2016-05-21 21:54
sockshandler.py
2.84
KB
-rw-r--r--
2016-05-21 21:54
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())