Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 18:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



plz help how to get socket id opening socket!!!!!

Discussion on plz help how to get socket id opening socket!!!!! within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2015
Posts: 12
Received Thanks: 1
plz help how to get socket id opening socket!!!!!

i need help
zy677777 is offline  
Old 01/11/2016, 10:14   #2


 
Jeoni's Avatar
 
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
5 of the 7 most recent threads in this section are created by you. Do you have to create a thread for each and every question? Many of them are fixed by yourself in minutes. Maybe I'm the only one, but it does annoy me.

@topic:
I guess that there are two approaches (or at least two reasonable approaches I can think of):
1) Hook send / recv or any other socket function that is used by the target. The socket (id) is simply passed to your hook function. If the function is called from different places / with different sockets, try to figure out in which context (e.g. return address) the function is called with the socket you need.
2) Reverse the target and find out where the socket is saved. It has to be saved somewhere as the target needs it to call the socket function with it. If you got the location, you can simply read it. While reversing, you may breakpoint / watch the socket function and their contexts, so the first approach might be an intermediate step to this (imo more elegant) method.

With best regards
Jeoni
Jeoni is offline  
Thanks
1 User
Old 01/11/2016, 10:18   #3
 
elite*gold: 0
Join Date: Sep 2015
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by Jeoni View Post
5 of the 7 most recent threads in this section are created by you. Do you have to create a thread for each and every question? Many of them are fixed by yourself in minutes. Maybe I'm the only one, but it does annoy me.

@topic:
I guess that there are two approaches (or at least two reasonable approaches I can think of):
1) Hook send / recv or any other socket function that is used by the target. The socket (id) is simply passed to your hook function. If the function is called from different places / with different sockets, try to figure out in which context (e.g. return address) the function is called with the socket you need.
2) Reverse the target and find out where the socket is saved. It has to be saved somewhere as the target needs it to call the socket function with it. If you got the location, you can simply read it. While reversing, you may breakpoint / watch the socket function and their contexts, so the first approach might be an intermediate step to this (imo more elegant) method.

With best regards
Jeoni
result:
thx anyway i did hooked and with Reverse it's worked!!
zy677777 is offline  
Reply




All times are GMT +1. The time now is 18:32.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.