Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 17:07

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

Advertisement



[Release]System antibot

Discussion on [Release]System antibot within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2017
Posts: 380
Received Thanks: 60
[Release]System antibot

There may be some flaws in the code but the system is functional. Do not hesitate to improve it if it is in your skills. (code create by Worldie)

1: Opennos.GameObject.Packet.CommandPacket

Code:
using OpenNos.Core;
using OpenNos.Domain;

namespace OpenNos.GameObject.CommandPackets
{
    [PacketHeader("$Bot", PassNonParseablePacket = true, Authorities = new AuthorityType[]{ AuthorityType.User })]
    public class BotPacket : PacketDefinition
    {
        [PacketIndex(0)] public short Identificator { get; set; }

        #region Methods

        public static string ReturnHelp()
        {
            return "$Bot";
        }

        #endregion
    }

}
2:Opennos.Handler.CommandPacketHandler
Code:
        public void BotPacket(BotPacket packet)
        {
            if (Session.Character.AntiBotIdentificator == -1)
            {
                return;
            }

            if (packet.Identificator != Session.Character.AntiBotIdentificator && Session.Character.AntiBotCount > 0)
            {
                Session.Character.AntiBotCount--;

                if (Session.Character.AntiBotCount == 0)
                {
                    LogHelper.Instance.InsertAntiBotLog(Session, false);
                    Session?.Disconnect();
                    CommunicationServiceClient.Instance.KickSession(Session.Account.AccountId, Session.SessionId);
                    return;
                }

                Session.SendPacket(Session.Character.GenerateSay($"Les codes d'identification ne correspondent pas ! {Session.Character.AntiBotCount} essais restants !", 11));
                return;
            }

            Session.SendPacket($"evnt 3 1 1800 1800");
            Session.SendPacket(Session.Character.GenerateSay($"Vous pouvez continuer à jouer normalement", 12));
            Session.Character.AntiBotIdentificator = -1;
            Session.Character.AntiBotCount = ServerManager.Instance.MaxCodeAttempts;
            Session.Character.AntiBotMessageInterval?.Dispose();
            Session.Character.AntiBotObservable?.Dispose();
        }
3: Opennos.Handler.BasicPacketHandler
Code:
            if (Session.Account.Authority < AuthorityType.Administrator && ServerManager.Instance.Configuration.AntiBotEnabled)
            {
                Session.Character.AntiBotCount = ServerManager.Instance.Configuration.MaxCodeAttempts;
                Observable.Interval(TimeSpan.FromHours(ServerManager.Instance.Configuration.AutoKickInterval)).Subscribe(s =>
                {
                    Session.Character.AntiBotIdentificator = (short)ServerManager.RandomNumber(1000, 10000);
                    Session.SendPacket($"evnt 3 0 {ServerManager.Instance.Configuration.TimeBeforeAutoKick * 600} {ServerManager.Instance.Configuration.TimeBeforeAutoKick * 600}");
                    Session.SendPacket($"say 1 0 10 Entrez $Bot {Session.Character.AntiBotIdentificator} pour continuer à jouer.");
                    Session.SendPacket($"msg 2 Entrez $Bot {Session.Character.AntiBotIdentificator} pour continuer à jouer.");

                    Session.Character.AntiBotMessageInterval = Observable.Interval(TimeSpan.FromHours(1)).Subscribe(token =>
                    {
                        Session.SendPacket($"say 1 0 10 Entrez $Bot pour continuer à jouer.");
                        Session.SendPacket($"msg 2 Entrez $Bot pour continuer à jouer.");
                    });



                    Session.Character.AntiBotObservable = Observable.Timer(TimeSpan.FromMinutes(ServerManager.Instance.Configuration.TimeBeforeAutoKick)).Subscribe(ValueTuple =>
                    {
                        Session.Character.AntiBotMessageInterval?.Dispose();
                        Session?.Disconnect();
                        CommunicationServiceClient.Instance.KickSession(Session.Account.AccountId, Session.SessionId);
                    });
                });

            }
4:Opennos.Master.Server
Code:
    <!-- maximum de tentative antibot -->
    <add key="MaxCodeAttempts" value="5" />
    <!-- Intervalles d'apparition antibot -->
    <add key="AutoKickInterval" value="1" />
    <!-- Temps avant d'être kick antibot -->
    <add key="TimeBeforeAutoKick" value="10" />
    <!-- activé ou désactivé antibot -->
    <add key="AntiBotEnabled" value="true" />
5:Opennos.Master.Server.MsManager
Code:
                TimeBeforeAutoKick = byte.Parse(ConfigurationManager.AppSettings["TimeBeforeAutoKick"]),
                AutoKickInterval = byte.Parse(ConfigurationManager.AppSettings["AutoKickInterval"]),
                MaxCodeAttempts = byte.Parse(ConfigurationManager.AppSettings["MaxCodeAttempts"]),
                AntiBotEnabled = bool.Parse(ConfigurationManager.AppSettings["AntiBotEnabled"])
redbull2905 is offline  
Old 11/22/2019, 02:19   #2
 
Worldie's Avatar
 
elite*gold: 0
Join Date: Jul 2018
Posts: 79
Received Thanks: 91
Copy pasted by Worldie dev by Elendan *
Worldie is offline  
Thanks
1 User
Old 11/22/2019, 02:21   #3
 
MANUEL PERES's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 297
Received Thanks: 74
Here :
MANUEL PERES is offline  
Old 11/22/2019, 02:25   #4
 
elite*gold: 0
Join Date: Jul 2017
Posts: 380
Received Thanks: 60
oh yeah I did not know
redbull2905 is offline  
Old 11/22/2019, 22:33   #5
 
Limoo's Avatar
 
elite*gold: 0
Join Date: Jan 2017
Posts: 465
Received Thanks: 185
What happens if I keep sending $bot with packetlogger?
Limoo is offline  
Old 11/23/2019, 07:24   #6
 
elite*gold: 0
Join Date: Dec 2018
Posts: 70
Received Thanks: 28
=>
<add key="MaxCodeAttempts" value="5" />

The problem is that it can only block public bot, but since you are coding one by yourself, it is really simple to bypass it
Nortank is offline  
Old 11/23/2019, 12:43   #7
 
erixor's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 374
Received Thanks: 1,024
Quote:
Originally Posted by Limoo View Post
What happens if I keep sending $bot with packetlogger?
Nothing, a random value is generated each time, so you have to enter $Bot [RandomNumber]

It can easily be countered by any not public bot, just by reading the msg packet
erixor is offline  
Thanks
1 User
Old 11/26/2019, 11:52   #8
 
elite*gold: 0
Join Date: Jul 2019
Posts: 29
Received Thanks: 0
Quote:
Originally Posted by erixor View Post
Nothing, a random value is generated each time, so you have to enter $Bot [RandomNumber]

It can easily be countered by any not public bot, just by reading the msg packet
Yes but is easy to do xd
Nagisa Shiota is offline  
Old 11/26/2019, 12:37   #9
 
erixor's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 374
Received Thanks: 1,024
Quote:
Originally Posted by Nagisa Shiota View Post
Yes but is easy to do xd


And then you're saying it's easy to do a bot that counters this ? ._.
erixor is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
New AntiBot System maybe will release! Now bot most as you can!!!
09/25/2012 - DarkOrbit - 24 Replies
Edit: Be happy --> They answered that they won't do it, i think because they would loose too much people :D :)
New AntiBot System working! Neues Bot System Funktioniert!
02/25/2011 - DarkOrbit - 7 Replies
Peace. Tage lang war der Bot nicht mehr auf meinem Account an da ich immer andere Sachen zu tun hatte. Heute habe ich den iBot einmal wieder angemacht und zack! Gesperrt. Bei 5 Milliarden EPs bisschen schade aber man hat ja 3 "Gutscheine" erwischt zu werden! Ich empfehle euch keine Bots mehr anzumachen! Anscheinend funktioniert das System nun sehr gut, immerhin wurde ich ein Jahr lang nicht gesperrt :D Today i have been blocked after using iBot! I didn't use it for 3 or more days....
L2Liona antibot system
07/18/2009 - Lineage 2 - 0 Replies
Somebody know how to make l2walker or l2net work in this server HERE! who has antibot system?
Antibot system - Euro
08/07/2006 - Ragnarok Online - 14 Replies
Schaut so aus als ob Euro endlich was gegen die Bots tut zumindest gegen Trial Account botter. Lest selbst: http://forums.openkore.com/viewtopic.php?t=23084 Quelle: Openkore forum Da is auch noch nen Link im Post zum Euro Forum wo sogar ein GM ein Kommentar darüber abgibt. Naja wichtiges steht eig. nur auf der zweiten Seite, Rest is imo unwichtiges Gequatsche.



All times are GMT +2. The time now is 17:07.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.