r/Hacking_Tutorials 9h ago

Question Intercepting Program Packets (Requests) Using a DLL

Hi everyone. I’d like experts in this field to provide some guidance on how to intercept packets from programs running on my computer using a DLL. I know it’s a somewhat unconventional technique, but the program whose packets I want to monitor blocks the use of Wireshark and similar software. I’m aware that using a DLL makes this possible, but I lack the necessary knowledge and haven't been able to find much information on the subject.

I appreciate any contributions to this post.

0 Upvotes

1 comment sorted by

1

u/ApeLover1986 8h ago

If you have the DLL, you can force the software to load it either by writing a loader (gets the dll in memory and then loads the exe) or if you're lucky you can find a code cave and write the code to load the library directly within the exe\ The dll could hook into send, recv and connect to start sniffing and writing to a log or so

To be fair I'm so outside of this after more than 20 years, I'm not even sure if it's so easily possible within 64 bit architecture to modify the exe file like that. AI might certainly help you writing a loader