Solved

How to intercept winsock function like send,sendto, recv ,etc.

Posted on 2002-06-29
2
488 Views
Last Modified: 2007-12-19
hi all,

i wrote a dll to intercept windows API, for other APIs that is in user32.dll or advapi32.dll, it works well, but when i want to intercept api in wsock32.dll or w2_32.dll, it doesn't work well, i mean i can only intercept some application which is using these function like send, but for others which are using "send", it can't intercept.

how to?

BTW, what i use is to change the IAT of every executable file images.
0
Comment
Question by:greensleeve
2 Comments
 
LVL 32

Expert Comment

by:jhance
Comment Utility
Are you sure that these "other" applications are using send from these DLLs?  I think you'll find that there is more than one way to "network" in a Windows application.
0
 
LVL 30

Accepted Solution

by:
Axter earned 50 total points
Comment Utility
There's more then one Send API function.
You need to capture the following API calls:

WSASend
WSASendTo

WSPSend
WSPSendTo

send
sendto
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now