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.
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).see answer number one. won't you. you'd have provide hook processes.
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
Post a Comment