Skip to main content

Python Proxy

Multi Purpose UDP, TCP, TCP/SSL Proxy for python

Python Proxy is a proxy library made for python for security minded individuals, or just people wanting to proxy their traffic, This proxy has implementation for different protocols such as UDP, TCP, and TCP/SSL.

Installation

Python Proxy can be installed from pip with pip install Python_Proxy

Usage

To use the library, import it in your python script. Udp:

from Python_Proxy import UdpProxy

proxy = UdpProxy('127.0.0.1', 4444, '192.168.18.218', 4444)
proxy.run()

TCP:

from Python_Proxy import TcpProxy

proxy = TcpProxy('127.0.0.1', 4444, '192.168.18.218', 4444)
proxy.run()

SSL: For ssl, you have to generate your own certificate files first. This certificate file will be used by the proxy server, and you also have to install the generated certificate as trusted root ca in your computer. For the generation of certificate files, i created a script named GenerateCertificates.py. Create the Certificate files python -m Python_Proxy.GenerateCertificates -H host.com -I 127.0.0.1 -o certs

from Python_Proxy import TcpSslProxy

proxy = TcpSslProxy('127.0.0.1', 443, '<REMOTE_IP>', 443, 'host.com', '.\certs\server.crt', '.\certs\server.key')
proxy.run()

You can also add a custom callback on all the proxies, that allow you to read and modify the data being sent/recieve. Callbacks functions should accept 2 parameters, data, which is the data sent/recieved and toServer which indiciates where the data is going

from Python_Proxy import UdpProxy

def customCallback(data, toServer):
    if(toServer):
        data = b"MODIFIED"
    return data
    
proxy = UdpProxy('127.0.0.1', 4444, '192.168.18.218', 4444, callback=customCallback)
proxy.run()

"Buy Me A Coffee"

Metadata

Release files for Python-Proxy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Python-Proxy 0.0.1
File Size Uploaded Provenance
Python_Proxy-0.0.1.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for Python-Proxy 0.0.1
File Interpreter ABI Platform
Python_Proxy-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / Python_Proxy-0.0.1.tar.gz

Download URL Python_Proxy-0.0.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a84f31782377dabd1c47a737830d93d8a784e5f92d8884b5b6c5d4c36276f37
BLAKE2b-256 checksum
How to use checksums
84d72412ac0b82fdbe37d0142a9b764c20d1430b85b1d07eb233e4cfeed93ba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / Python_Proxy-0.0.1-py3-none-any.whl

Download URL Python_Proxy-0.0.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dc17875f7ebd4527c55a72ce4c214784f80677fce6ca0c9f2145b54369205b1
BLAKE2b-256 checksum
How to use checksums
b92b896e75b6c5b61a8c1c1b84c86636a7c17c49848b6e45ea75cc3fe3e24298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Security for Python-Proxy 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page