hook - C# How would I intercept all packets and find out the IPs through hooking? -


actually have 3 questions:

1- according nazar grynko answer, intercepting 3 functions(send , recv,and connect) me anticipate packet in machine?

2- if hooked 3 functions, how intptr points sockaddr structure p/invoked native function?

3- send, , recv not having sockaddr, how figure out addresses?

thank in advance.

  1. the functions described part of posix standard. means when use these functions on windows, you're calling wrapper translates system call. can send packets without use of function (e.g, using windows api).

  2. see answer number one. won't you. you'd have provide hook processes.

  3. the functions describe use file descriptor posix construct, , user-mode simulated on other systems.

to inspect traffic must use driver you. might want @ pcap.net c# project aimed @ problem, , provides driver , api necessary.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -