python3 honey_proxy.py Then point your browser or tool to localhost:8888 – all traffic gets logged. Try checking its help or man page:
def handle_client(client_socket, target_host, target_port): remote = socket.socket(socket.AF_INET, socket.SOCK_STREAM) remote.connect((target_host, target_port))
Run it:
# honey_proxy.py import socket import threading import logging logging.basicConfig(filename='honey_access.log', level=logging.INFO)