def handle_client(client_socket, target_host, target_port): remote = socket.socket(socket.AF_INET, socket.SOCK_STREAM) remote.connect((target_host, target_port))
def start_proxy(proxy_host='0.0.0.0', proxy_port=8888, target_host='example.com', target_port=80): server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((proxy_host, proxy_port)) server.listen(5) print(f"Honey proxy listening on proxy_host:proxy_port") while True: client_socket, addr = server.accept() print(f"Connection from addr") threading.Thread(target=handle_client, args=(client_socket, target_host, target_port)).start() hon3yhd proxy
# honey_proxy.py import socket import threading import logging logging.basicConfig(filename='honey_access.log', level=logging.INFO) target_port): remote = socket.socket(socket.AF_INET
hon3yhd --help hon3yhd -h Or if it's a binary, inspect it: target_port)) def start_proxy(proxy_host='0.0.0.0'