I know you can monitor packets inbound and outbound using socket.bind but what about getting the packet but stopping it from going outbound or inbound? Is there anyway to do this without hooking programs send/receive functions?
Printable View
I know you can monitor packets inbound and outbound using socket.bind but what about getting the packet but stopping it from going outbound or inbound? Is there anyway to do this without hooking programs send/receive functions?
Now is there a way to redirect all traffic to localhost?
:ehh: You can redirect any DNS initiated traffic by using the hosts file -
C:\windows\system32\drivers\etc
Open hosts with notepad
Put an entry in on a new line like below and hit save:
vbforums.com 127.0.0.1
That only works for DNS resolution. Most software probably uses DNS. Otherwise, you will have to use your router to redirect traffic from your box, back to your box on a different port - if you have a router and if it supports it.
It would probably help if you described what you needed to intercept.
Need to intercept all outbound traffic like a firewall.Quote:
Originally Posted by nemaroller
I was looking at socket and it seems like to do this I would use bind and iocontrol but anyone know how?