I've recently toyed around with some SQL injection and buffer overflow writing and found it very interesting. My next goal, however, is network programming. I've designed a task for myself to do this:
I currently have an application that connects to the internet on a given port, and logs in. What I'm trying to do, is intercept the outgoing connection, and write a program that responds to the queries. I am going to analyze the outgoing connection with Wireshark, to see what it "sends" and receives from the server, so I can craft a server program to mimic the behaviour of the real one, thus making it possible to use the program to authenticate to my own server.. However, I have no idea how I can intercept that outgoing connection, and redirect it to my own server. Can anyone point me in the right direction?
Thanks













