Skip to main content

A class for capturing network requests in a browser and converting them to a pandas DataFrame - Windows only

Project description

Creates Proxies and binds them to a NIC - Windows only

pip install nic2proxy

Tested against Windows / Python 3.11 / Anaconda

MultiProxyServer class for managing and starting multiple proxy servers on Windows.

This class provides functionality to configure, start, and manage proxy servers.
It binds each proxy to a specific network interface.
It also includes methods for generating YAML configuration files,
retrieving the public IPv4 address of the host, and handling console events for controlling
server processes. It uses https://github.com/hang666/s5light under the hood

Usage:
1. Create an instance of MultiProxyServer with the desired interfaces and log folder.
2. Write the YAML configuration file with the write_yaml_config() method.
3. Start the proxy servers with the start_proxy() method. (Uses powershell - might need elevated rights)
4. Get information about the running servers with the __str__() method.

Example:
from nic2proxy import MultiProxyServer
interfaces = {
	0: {
		"bind_address": "0.0.0.0",
		"bind_port": None, # None -> finds a free one 
		"out_address": "192.168.9.100", # Address of the NIC you want to use
		"tcp_timeout": 60,
		"udp_timeout": 60,
		"whitelist": (),
	},
	1: {
		"bind_address": "0.0.0.0",
		"bind_port": None,
		"out_address": "192.168.10.100", # Address of the NIC you want to use
		"tcp_timeout": 60,
		"udp_timeout": 60,
		"whitelist": (),
	},
}

prox = MultiProxyServer(interfaces=interfaces, logfolder="c:\\proxylogs")
prox.write_yaml_config().start_proxy()
print(prox)
#  prox.kill_proxy() to kill 'em all!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browser2requests-0.10.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

browser2requests-0.10-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file browser2requests-0.10.tar.gz.

File metadata

  • Download URL: browser2requests-0.10.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for browser2requests-0.10.tar.gz
Algorithm Hash digest
SHA256 2cf23c8998d7da96dbe2a8504198795b0642020c94b6e90df8be51b3664af929
MD5 bddc52b0c395e342126bbf06ae601f92
BLAKE2b-256 05bda7d03a9aa65db9cc9f3e4cd0eb97f7da80b11ee08d66189f8185c7a9c3ef

See more details on using hashes here.

File details

Details for the file browser2requests-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for browser2requests-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 393932481739f65d9b2fac09005cf3c79ecf6cdc252db7ac32b3c5ddd521996a
MD5 16bb87cb170055e0a8d9b08abc8f2d86
BLAKE2b-256 7c5c4b01e906f7ee59ce63a7b4497417eb8ffb1c001b83e98a8a9d5de2f7826e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page