⚠ Authorized Use Only — Educational & Penetration Testing Purposes

The techniques, scripts, and tools described in this post are shared strictly for cybersecurity education, CTF practice, and authorized penetration testing. They are intended to be run only against:

Using these techniques against systems, networks, or accounts without the owner's consent is illegal in most jurisdictions and is not endorsed by this blog. If you're learning, practice in an isolated lab (e.g. your own VMs, Kali + Metasploitable, or a CTF platform) rather than on live third-party targets.

Skip to main content

Posts

Showing posts with the label tcp proxy server

TCP proxy

Benifits of Tcp proxy we can forward the traffic from host to host as well as useful when assessing network based software. So in this code we will continually read from local ,process and send to remote ,read from remote ,process and send to local until there is no more data detected. ## we will firstly take the command line arguements and then fire up a server loop that listens that listens for connections. once any connection request comes in ,we hand it off to 'proxy_handler' ,which does all the sending and recieving of bits to either side of the data stream. ## we will make sure that we should not be initiating a connection to the remote side and request data before going into our main loop. Then we will use the 'recieve_from' function which we reuse for both side of the communication ,it simply takes in a connected socket object and performs a recieve. Then we will dump the contents of packets so that we can inspect it for anything interesting .then we pa...