OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/17/2024 05:55:22 PM
rwxr-xr-x
📁
Babel-2.9.1-py3.7.egg-info
-
05/14/2024 03:09:28 PM
rwxr-xr-x
📁
Jinja2-3.0.3-py3.7.egg-info
-
05/14/2024 03:09:53 PM
rwxr-xr-x
📁
PyJWT-2.1.0-py3.7.egg-info
-
05/14/2024 03:09:57 PM
rwxr-xr-x
📄
PySocks-1.5.7-py3.7.egg-info
322 bytes
11/14/2023 02:18:47 PM
rw-r--r--
📁
__pycache__
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
_distutils_hack
-
05/14/2024 03:09:02 PM
rwxr-xr-x
📁
attr
-
05/14/2024 03:09:23 PM
rwxr-xr-x
📁
attrs-21.2.0-py3.7.egg-info
-
05/14/2024 03:09:23 PM
rwxr-xr-x
📁
babel
-
05/14/2024 03:09:28 PM
rwxr-xr-x
📁
certifi
-
05/14/2024 03:09:24 PM
rwxr-xr-x
📁
certifi-2018.4.16-py3.7.egg-info
-
05/14/2024 03:09:24 PM
rwxr-xr-x
📁
chardet
-
05/14/2024 03:09:24 PM
rwxr-xr-x
📁
chardet-3.0.4-py3.7.egg-info
-
05/14/2024 03:09:24 PM
rwxr-xr-x
📁
cl_dom_collector
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
clcommon
-
07/01/2024 09:52:30 AM
rwxr-xr-x
📁
clconfig
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
clconfigure
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
cldashboard
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
clevents
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
cllimits_validator
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
cllimitslib_v2
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
clsentry
-
07/01/2024 09:52:30 AM
rwxr-xr-x
📁
clsummary
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
clveconfig
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
clwizard
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📄
distutils-precedence.pth
152 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📁
docopt-0.6.2-py3.7.egg-info
-
05/14/2024 03:09:55 PM
rwxr-xr-x
📄
docopt.py
19.48 KB
06/16/2014 11:14:32 AM
rw-r--r--
📁
future
-
05/14/2024 03:09:55 PM
rwxr-xr-x
📁
future-0.17.0-py3.7.egg-info
-
05/14/2024 03:09:55 PM
rwxr-xr-x
📁
idna
-
05/14/2024 03:09:25 PM
rwxr-xr-x
📁
idna-2.5-py3.7.egg-info
-
05/14/2024 03:09:25 PM
rwxr-xr-x
📁
importlib_metadata
-
05/14/2024 03:09:30 PM
rwxr-xr-x
📁
importlib_metadata-0.0.0-py3.7.egg-info
-
05/14/2024 03:09:30 PM
rwxr-xr-x
📁
jinja2
-
05/14/2024 03:09:53 PM
rwxr-xr-x
📁
jsonschema
-
05/14/2024 03:09:52 PM
rwxr-xr-x
📁
jsonschema-3.2.0-py3.7.egg-info
-
05/14/2024 03:09:52 PM
rwxr-xr-x
📁
jwt
-
05/14/2024 03:09:57 PM
rwxr-xr-x
📁
libfuturize
-
05/14/2024 03:09:55 PM
rwxr-xr-x
📁
libpasteurize
-
05/14/2024 03:09:55 PM
rwxr-xr-x
📁
lve_utils
-
02/13/2025 09:39:25 PM
rwxr-xr-x
📁
past
-
05/14/2024 03:09:55 PM
rwxr-xr-x
📁
pkg_resources
-
05/14/2024 03:09:02 PM
rwxr-xr-x
📁
pytz
-
05/14/2024 03:09:28 PM
rwxr-xr-x
📁
pytz-2017.2-py3.7.egg-info
-
05/14/2024 03:09:28 PM
rwxr-xr-x
📁
raven
-
05/14/2024 03:09:57 PM
rwxr-xr-x
📁
raven-6.3.0-py3.7.egg-info
-
05/14/2024 03:09:57 PM
rwxr-xr-x
📁
requests
-
05/14/2024 03:09:54 PM
rwxr-xr-x
📁
requests-2.26.0-py3.7.egg-info
-
05/14/2024 03:09:54 PM
rwxr-xr-x
📁
schema-0.7.1-py3.7.egg-info
-
05/14/2024 03:09:58 PM
rwxr-xr-x
📄
schema.py
28.51 KB
09/09/2019 05:39:33 PM
rw-r--r--
📁
setuptools
-
05/14/2024 03:09:02 PM
rwxr-xr-x
📁
setuptools-58.3.0.dist-info
-
05/14/2024 03:09:02 PM
rwxr-xr-x
📁
six-1.15.0-py3.7.egg-info
-
05/14/2024 03:09:11 PM
rwxr-xr-x
📄
six.py
33.36 KB
05/21/2020 03:25:33 PM
rw-r--r--
📄
socks.py
29.25 KB
05/21/2016 09:54:42 PM
rw-r--r--
📄
sockshandler.py
2.84 KB
05/21/2016 09:54:42 PM
rw-r--r--
📁
typing_extensions-3.7.4.3-py3.7.egg-info
-
05/14/2024 03:09:26 PM
rwxr-xr-x
📄
typing_extensions.py
81.76 KB
07/07/2020 10:29:25 PM
rw-r--r--
📁
urllib3
-
05/14/2024 03:09:27 PM
rwxr-xr-x
📁
urllib3-1.26.6-py3.7.egg-info
-
05/14/2024 03:09:27 PM
rwxr-xr-x
📁
vendors_api
-
07/01/2024 09:52:30 AM
rwxr-xr-x
📁
zipp-0.0.0-py3.7.egg-info
-
05/14/2024 03:09:29 PM
rwxr-xr-x
📄
zipp.py
8.23 KB
12/31/2021 12:01:49 AM
rw-r--r--
Editing: sockshandler.py
Close
#!/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())