Register for your free account! | Forgot your password?

You last visited: Today at 01:40

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

Advertisement



Bot detection

Discussion on Bot detection within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
vietnguyen09's Avatar
 
elite*gold: 290
Join Date: Oct 2013
Posts: 266
Received Thanks: 191
Bot detection

Hi guys,

How do you detect players log in to your server is using bot (such as mBot etc...) or not? I have done about catching locate flag but they easily bypass then.

I'm thinking about injecting a DLL into silkroad.exe and send a special packet but when players hit Start game button, that SOCKET session will be disconnect to open sro_client.exe.

Any idea?
vietnguyen09 is offline  
Old 06/26/2020, 06:45   #2
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
You can check if client socket was redirected or not. (since any bot has to redirect the client to itself)
#HB is offline  
Thanks
1 User
Old 06/26/2020, 07:20   #3
 
vietnguyen09's Avatar
 
elite*gold: 290
Join Date: Oct 2013
Posts: 266
Received Thanks: 191
Quote:
Originally Posted by #HB View Post
You can check if client socket was redirected or not. (since any bot has to redirect the client to itself)
Thanks for your hint, can I check that from my filter? I read all the packet that login by bot but see nothing different from the player who enter in game by silkroad.exe.
vietnguyen09 is offline  
Old 06/26/2020, 08:23   #4
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
Quote:
Originally Posted by vietnguyen09 View Post
Thanks for your hint, can I check that from my filter? I read all the packet that login by bot but see nothing different from the player who enter in game by silkroad.exe.
Well, yes you can.

You just need to hook client socket after connecting to server and check its ip like and maybe then inform your filter.
#HB is offline  
Thanks
1 User
Old 06/26/2020, 09:39   #5
 
vietnguyen09's Avatar
 
elite*gold: 290
Join Date: Oct 2013
Posts: 266
Received Thanks: 191
Quote:
Originally Posted by #HB View Post
Well, yes you can.

You just need to hook client socket after connecting to server and check its ip like and maybe then inform your filter.
I'm doing it, but it always shows the client's WAN IP I'm testing with mBot

Can I use DLL to hook sro_client.exe and know that connection is redirected or not?
vietnguyen09 is offline  
Old 06/26/2020, 18:15   #6
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
Quote:
Originally Posted by vietnguyen09 View Post
Can I use DLL to hook sro_client.exe and know that connection is redirected or not?
Yes, you can. You can hook WSA's connect func, then check right after its execution.
#HB is offline  
Old 06/26/2020, 18:19   #7
 
vietnguyen09's Avatar
 
elite*gold: 290
Join Date: Oct 2013
Posts: 266
Received Thanks: 191
Quote:
Originally Posted by #HB View Post
Yes, you can.
I'm kind of stuck right know after over 14 hours of working with this dll, I can't get the socket IP with my DLL hook.

Can you give me a hint? I'm using hwid dll trying to get the socket IP after run mBot but not quite easy to do.

Code:
char buf[INET_ADDRSTRLEN] = "";
struct sockaddr_in name;
socklen_t len = sizeof(name);

//sock_fd here is not exist in anywhere, where can I get that?
if (getpeername(sock_fd, (struct sockaddr *)&name, &len) != 0) {
    perror("getpeername");
} else {
    inet_ntop(AF_INET, &name.sin_addr, buf, sizeof buf);
}
vietnguyen09 is offline  
Old 06/26/2020, 18:27   #8
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
sock_fd is the actual socket that is used on WSA's connect, so you have to hook to get it.

Something like:

Code:
OnWSAConnect(SOCKET s, const sockaddr* name, int len)
{
	connect(s, name, len);

	sockaddr_in addr;
	socklen_t addrsize = sizeof(addr);
	getpeername(s, (sockaddr*)&addr, &addrsize);

	//...
}
#HB is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Detection Alert | BlackCipher Detection Check!
03/08/2013 - Combat Arms - 0 Replies
This is a check that has been implemented by Nexon into their BlackCipher system for a few patches now. I think its time attention towards it is brought towards the hack users. BlackCipher performs a check to see if you have certain web pages open when you are running Combat Arms. It is strongly advised to simply close your web browser while running the game. This should resolve many detection issues. If you have M*GH open when you start the game, in under 5 minutes (Average) the game...
MiniGame Bot - Detection possible?
07/17/2009 - Nostale - 3 Replies
Hihoo, i'm from Fr nostale community. I have a question about detection of minigame bot. I heard, watched ban list and had to conclude that a few weeks ago a wave of ban for Bug using, principally cause to minigame cheats. I know a lot of noobs used speedhack, i suppose it's now patched but what's about minigame bot? They're safe yet? I assume that they can't detect AutoIt bot without a programe like Warden, calls to collect data on open programs. Can anoyne confirm my point of vue?
BOT detection How to?
06/18/2008 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 1 Replies
how do they detect bot players? i would like to know and for everybody to know to prevent further accounts being banned. do's and don'ts while botting. some of us are bot users but we are just plain users and being careless and getting your account 1,2,3 poof and become coco crunch(BANNED)
new bot detection?
08/27/2006 - Conquer Online 2 - 1 Replies
Uh oh, someone just warned me that TQ has developed some new bot detection software, and that they are currently testing it on some servers. just a heads up, could be TQ trying to scare us, or could be the real deal. hope its not like 4312 (that was a pain).
Pixel detection bot(oder so)
05/24/2006 - Silkroad Online - 2 Replies
Gibts den nicht wenigstens so einen bot? Also einen der auf die farben der monster etc reagiert halt wie bei guildwars .. was ganz primitives. Wär villeicht wer inna lage sowas zu basteln? das müsste doch nicht von Nprotect detected werden oder? Wär villeicht was für die übergangsphase bis zum neuen sro bot ... Ich selber kan sowas leider nicht .. Mfg Auron99



All times are GMT +1. The time now is 01:40.


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.