I doubt i'll get an answer to this...but here goes.
How would i intercept ALL packets being transmited and be able to edit them and send then on their way?
D!m
Printable View
I doubt i'll get an answer to this...but here goes.
How would i intercept ALL packets being transmited and be able to edit them and send then on their way?
D!m
Please Explain ! :-)
Like a firewall? You'd need to hook into the networking subsystem at a very low level.
I remember you asked this question before Dim, I had an idea, but it didn't work :(.
But, as parksie said, a firewall catches events. Here is www.planet-source-code.com's results: Firewall
I can't seem to find any examples of a firewall that actually does what it's supposed to. Has anyone seen any good examples that they can reffer me too.
If not, then an idea of how to get started on creating one that will capture ALL packets being transmited on ALL ports.
Would simply listening on all ports with winsock do it?
and then have the data that arives/leaves enter a textbox. But how would i be able to pause the packet, edit it, and then allow it to continue on it way.Code:Dim i As Integer
For i = 1 To 65500 'not sure what the exact number is
Winsock1.LocalPort = i
Winsock1.Listen
Next i
Thank you,
D!m
You cant monitor packets and edit them and resend using simple winsock. You will need to go low level as stated before, dont even bother trying to do it with visual basic or any windows program for that matter. If you really wanna do so, learn unix/linux and install a firewall and run a packet sniffer on your lan, even then, you still CANT edit packets and resend them.
I'm aware of the way to do it under unix...editing headers. But i was thinking that it would be possible to do it in windows. I guess i was wrong...thanx for all you help people.
D!m