Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 20:29

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

Advertisement
Bitcoin Dice Game


[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: 292
Received Thanks: 44
[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
 
elite*gold: 0
Join Date: Jul 2018
Posts: 48
Received Thanks: 59
Copy pasted by Worldie dev by Elendan *


Worldie is offline  
Thanks
1 User
Old 11/22/2019, 02:21   #3
 
elite*gold: 0
Join Date: May 2012
Posts: 251
Received Thanks: 69
Here :
MANUEL PERES is offline  
Old 11/22/2019, 02:25   #4
 
elite*gold: 0
Join Date: Jul 2017
Posts: 292
Received Thanks: 44
oh yeah I did not know


redbull2905 is offline  
Old 11/22/2019, 22:33   #5
 
elite*gold: 0
Join Date: Jan 2017
Posts: 221
Received Thanks: 61
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: 66
Received Thanks: 20
=>
<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
 
elite*gold: 0
Join Date: Jul 2013
Posts: 219
Received Thanks: 296
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
 
elite*gold: 0
Join Date: Jul 2013
Posts: 219
Received Thanks: 296
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



« Opennos friends connect | Search good pserver »

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 20:29.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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