Register for your free account! | Forgot your password?

You last visited: Today at 03:44

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

Advertisement



Bot Detection in C#

Discussion on Bot Detection in C# within the SRO PServer Questions & Answers forum part of the SRO Private Server category.

Reply
 
Old   #1
 
Coded by Alfa's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 113
Received Thanks: 69
Bot Detection in C#

Hello guys, I would like to get your opinion. Can you give me a hint on how I can prevent a player from entering a bot?
PS: Can you give an example with C#?
Coded by Alfa is offline  
Thanks
1 User
Old 02/03/2023, 21:06   #2
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,840
Received Thanks: 4,672
Do you already have a try in C#? We can work on yours and help you with it. The best way to hire someone is to pay money in the Silkroad Trading section.
Devsome is offline  
Thanks
1 User
Old 02/04/2023, 21:11   #3
 
Coded by Alfa's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 113
Received Thanks: 69
Thank you for your return.
Of course, I have my own files that I am working on, and I am developing them day by day, I am stuck because I do not have advanced knowledge. so i need some hint or example



currently my current bot blocking method is old and can be overcome, i know there is a better and insurmountable way but i couldn't find any idea how to proceed
Coded by Alfa is offline  
Thanks
1 User
Old 02/05/2023, 07:36   #4
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 943
You'll have to analyze the client itself, from server side only wouldn't be an option actually secure.

You can start by taking the ip and port the client is connected. Then check if there is something unusual (like values are not the same public ip/port your server use) then it is actually using an altered connection aka proxy/vpn/bot.

You can take a quick look at what I've done in the past:

Such check can be done client or server side, however, at both options you'll have to consider to protect the client/dll code doing such process to avoid any bypass same like the HWID stuff where you'll have to make sure nobody is gonna be able to alter the code.
JellyBitz is offline  
Thanks
2 Users
Old 02/05/2023, 20:52   #5
 
elite*gold: 11
Join Date: May 2009
Posts: 617
Received Thanks: 589
Quote:
Originally Posted by JellyBitz View Post
You'll have to analyze the client itself, from server side only wouldn't be an option actually secure.

You can start by taking the ip and port the client is connected. Then check if there is something unusual (like values are not the same public ip/port your server use) then it is actually using an altered connection aka proxy/vpn/bot.

You can take a quick look at what I've done in the past:

Such check can be done client or server side, however, at both options you'll have to consider to protect the client/dll code doing such process to avoid any bypass same like the HWID stuff where you'll have to make sure nobody is gonna be able to alter the code.
this method is better then anti bot, it also works as anti VPN / proxy method to prevent IP / PC limit spoofing. I was using this method (but calling ioctl not winapi) on f8filter.
qoaway is offline  
Thanks
1 User
Old 02/06/2023, 10:29   #6
 
bimbum*'s Avatar
 
elite*gold: 47
Join Date: Oct 2017
Posts: 574
Received Thanks: 967
it can be simple as , knowing a little about networking, all our routers are considered to be class c ipv4 classification and some little are a.

so getting the gateway ip which client connected to and comparing it with the private possible ips in the class c you would prevent it super easily.



most likely its 127.0.0.1 at most proxies/bots
bimbum* is offline  
Thanks
2 Users
Old 02/08/2023, 20:26   #7
 
painmaker_'s Avatar
 
elite*gold: 0
Join Date: Dec 2021
Posts: 85
Received Thanks: 74
A prepared fancy code would be something like this.

Code:
if (connections.size() > 0)
        {
            // Read the first one only
            MIB_TCPROW_OWNER_PID* info = connections[0];

            // Address buffer
            in_addr IpAddr;
            char remoteAddr[128];   
            // Convert long to address
            IpAddr.S_un.S_addr = (u_long)info->dwRemoteAddr;
            strcpy_s(remoteAddr, sizeof(remoteAddr), inet_ntoa(IpAddr));
            result << remoteAddr << ":" << ntohs(info->dwRemotePort);
            std::string b = result.str();
            std::string token;
            std::getline(result, token, ':'); // extract the ip before : 
            if (acp_decode(token).compare(L"111.111.111.111") == 0)
            {
                g_pCGInterface->ShowMessage_Global(L"Normal Client");
            }
            else {
                g_pCGInterface->ShowMessage_Global(L"Logged in with bot");

            }
        }
painmaker_ 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 03:45.


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.