Hey guys,
I'm trying to make some kind of MITM monitor. I want to control all incoming and outgoing traffic on port 30000.
Let's say I have an incoming data packet "00 00 0D 01 81 0C 00 00 01 CB BF 51 00 00". I'd like to filter out this packet and send another one instead.
So basicly, I have a client, a "firewall" and a server.
My client connect to the server on port 20000(random port). It's possible to change the client port within the settings.
So, we get the following:
CLIENT(20001)<-------------->(20001)MITM(20000)<-------------->SERVER(20000)
My question here is what's the logic behind this?
I've done the following:
Making a 'bridge':
The method is by acception connections and using GetData & SendData, however that failed, might have done something wrong.
Thanks in advance!
PS: This a webgame(swf).
I'm trying to make some kind of MITM monitor. I want to control all incoming and outgoing traffic on port 30000.
Let's say I have an incoming data packet "00 00 0D 01 81 0C 00 00 01 CB BF 51 00 00". I'd like to filter out this packet and send another one instead.
So basicly, I have a client, a "firewall" and a server.
My client connect to the server on port 20000(random port). It's possible to change the client port within the settings.
So, we get the following:
CLIENT(20001)<-------------->(20001)MITM(20000)<-------------->SERVER(20000)
My question here is what's the logic behind this?
I've done the following:
Making a 'bridge':
Code:
Winsock1.Close
Winsock1.RemotePort = 20000
Winsock1.RemoteHost = "serverip/name"
Winsock1.Bind 20001
Winsock2.Close
Winsock2.RemotePort = 20001
Winsock2.RemoteHost = "127.0.0.1"
Winsock2.Bind 20000 'listen on 6222
The method is by acception connections and using GetData & SendData, however that failed, might have done something wrong.
Thanks in advance!
PS: This a webgame(swf).