Jump to content
Tuts 4 You

Help|some help


DMichael

Recommended Posts

Posted

1.well i know c++ now i want to code something that will block Packets

i thinked about dll that i will attach to my application that will filter packets for it

so any one can show me simple Packet Block\Filter c++ source?

2.also i have seen some pepole make process hide i heard you need to code adriver for it

some one can show me simple c++ source?

Posted

1) http://pastebin.com/i5v32fed (not made by me)

This sample uses the MS Detours Library (http://research.microsoft.com/en-us/projects/detours) to intercept windows socket API calls. Once inside the recv()/send() functions, you can let or block the packet being handled.

Important to remember that the target application may use socket functions from mswinsock.dll or winsock2.dll. So you may wanna check its Import Address Table (IAT) to see which DLL is being used.

2) On WinXP/9x you don't need a driver to hide the process from the user (Not sure if user mode hooks work on new Windows versions though)

Hope this helps!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...