Anti-Ddos Holograph Emulator

Page 1 of 2 12 LastLast
Results 1 to 25 of 42
  1. #1
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Anti-Ddos Holograph Emulator

    Well I skimmed through Zak's XZ edit or whatever, and I noticed a small patch used to stop unwanted connections and traffic against the server, so I thought for the users who didn't notice it, I'll just release it as a separate snippet.

    Go to Source > Socket Servers > Game Socket Server

    Then add this snippet anywhere you wish.

    Code:
    #region Anti-ddos 
    
            // Prevents DDOS Attacks against the server.
            internal static bool ConnectionAllowed(string IP, int ID)
            {
                if (SecurityManagement.ConnectionBanned(IP))
                    return false;
    
                int conncout = mConnectionCounter.Count(a => (a == IP));
                if (conncout >= 10 || ID > mMaxConnections) //Reached connection limit
                {
                    SecurityManagement.BanAddress(IP);
                    return false;
                }
    
                mConnectionCounter[ID] = IP;
                Out.WriteLine("Anti-Ddos Protection: On!");
                return true;
            }
            #endregion
    It's not making it impossible to be ddosed, but it works better than nothing. :)

    Credits to Martin for making
    Credits to me for releasing


    Press the "Like" button if you liked this release.
    Last edited by RockStar7; 04-03-11 at 01:17 AM.


  2. #2
    Banned DylanGFX is offline
    BannedRank
    Oct 2010 Join Date
    Elm, New YorkLocation
    75Posts

    Re: Anti-Ddos Holograph Emulator

    Nice work Bro.

  3. #3
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: Anti-Ddos Holograph Emulator

    I love you, needed this, thanks!

  4. #4
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Anti-Ddos Holograph Emulator

    You cannot stop a DDoS attack indefinately. Just saying. A proper DDoS (which retros do not generally get) would go at ~10gbps which would completely fuck your server as soon as the attack commences. This little snippet'll block one ip and then it'll die.

    Soz bout it.

  5. #5
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    Re: Anti-Ddos Holograph Emulator

    Jonty, your a Cat, read the bottom of the thread.

    ---------- Post added at 12:18 AM ---------- Previous post was at 12:17 AM ----------

    and by the way I freakin love your sig

  6. #6
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: Anti-Ddos Holograph Emulator

    Thank you, anyway are you talking about my signature?

    ---------- Post added at 07:51 PM ---------- Previous post was at 07:48 PM ----------

    Quote Originally Posted by Jontycat View Post
    You cannot stop a DDoS attack indefinately. Just saying. A proper DDoS (which retros do not generally get) would go at ~10gbps which would completely fuck your server as soon as the attack commences. This little snippet'll block one ip and then it'll die.

    Soz bout it.
    1 is better than none.

  7. #7
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: Anti-Ddos Holograph Emulator

    Zak didn't code this, got it from a emu I sent him.

    2nd time you got a code from Zak.

    Code your own stuff lol.

    js.
    Last edited by Makarov; 21-02-11 at 01:54 AM.

  8. #8
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Tr0ll.™ View Post
    Zak didn't code this, got it from a emu I sent him.

    2nd time you got a code from Zak.

    Code your own stuff lol.
    Your point?

  9. #9
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by RockStar7 View Post
    Your point?
    You've given false credits twice in a row.

    js

    lol

  10. #10
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: Anti-Ddos Holograph Emulator

    Zak told me he created this, hence I placed him in the credits, if you feel that the credits deserved is given' to the wrongful owner, confront the wrongful owner about it, rather than flam threads with annoyance spam. That can resolve a problem, complaining to me does NOT resolve it. If you can provide me the creator and have him/her approve it, I would be more they glad to add them into the credits, otherwise do not bother.

  11. #11
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: Anti-Ddos Holograph Emulator

    i recreated the banning manager so this snippet works better ,

  12. #12
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: Anti-Ddos Holograph Emulator

    Mind sharing? ;3

  13. #13
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: Anti-Ddos Holograph Emulator

    nah if i find it i will

  14. #14
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: Anti-Ddos Holograph Emulator

    yet more shitting coding being added to a shitty coded emulator.

  15. #15
    Proficient Member Alexx. is offline
    MemberRank
    Feb 2011 Join Date
    160Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Matthew View Post
    yet more shitting coding being added to a shitty coded emulator.
    right look at it looks like it has been coding through php base

  16. #16
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Bin3000 View Post
    right look at it looks like it has been coding through php base
    Code:
    #region Anti-ddos 
    
            // Prevents DDOS Attacks against the server.
            internal static bool ConnectionAllowed(string IP, int ID)
            {
                if (SecurityManagement.ConnectionBanned(IP))
                    return false;
    
                int conncout = mConnectionCounter.Count(a => (a == IP));
                if (conncout >= 10 || ID > mMaxConnections) //Reached connection limit
                {
                    SecurityManagement.BanAddress(IP);
                    return false;
                }
    
                mConnectionCounter[ID] = IP;
                Out.WriteLine("Anti-Ddos Protection: On!");
                return true;
            }
            #endregion
    in what way does this look like a code from a php base.

    and Matthew its from martinmine,

    ---------- Post added at 05:01 AM ---------- Previous post was at 05:00 AM ----------

    expect for the returns since there in php, but eh ur a noob bin,

  17. #17
    Infraction Banned rice is offline
    MemberRank
    Nov 2009 Join Date
    2,905Posts

    Re: Anti-Ddos Holograph Emulator

    If there's one thing I don't understand, it's why people bother giving credit to them selves for making a thread.

  18. #18
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Mithex View Post

    and by the way I freakin love your sig
    why thank you i believe it outlines my inner beauty
    -pouts-

  19. #19
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by RockStar7 View Post
    1 is better than none.
    Wouldn't this only ban the user if they were DDoS'ing / DoS'ing the server port? If so, it is pointless because 1. You can't prevent someone from DoS'ing / DDoS'ing with a ban. You would have to ban them from the actual server... and 2. No one DDoS's / DoS's the server port because it does nothing other than make the online users count go up by however many connections you flood the port with.

  20. #20
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Hejula View Post
    Wouldn't this only ban the user if they were DDoS'ing / DoS'ing the server port? If so, it is pointless because 1. You can't prevent someone from DoS'ing / DDoS'ing with a ban. You would have to ban them from the actual server... and 2. No one DDoS's / DoS's the server port because it does nothing other than make the online users count go up by however many connections you flood the port with.
    Not if you're smart and code it to run off the database eg

    PHP Code:
    SELECT FROM users WHERE online '1'
    return mysql_num_rows 
    =p

  21. #21
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Matthew View Post
    yet more shitting coding being added to a shitty coded emulator.
    you dont can do it better

  22. #22
    Rip Akaruz pixelpro321 is offline
    MemberRank
    Dec 2007 Join Date
    InternetLocation
    1,427Posts

    Re: Anti-Ddos Holograph Emulator

    Very nice, Might have to Implant this! thanks!

  23. #23
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Jontycat View Post
    Not if you're smart and code it to run off the database eg

    PHP Code:
    SELECT FROM users WHERE online '1'
    return mysql_num_rows 
    =p
    Even if you do, it won't stop the DoS / DDoS attack because it will not block all connections from the IP to the Server...

  24. #24
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by davidaap View Post
    you dont can do it better
    I don't code in .NET languages. I'm personally taking up Python. Much more robust. C# shouldn't be used for servers. Period. I can just tell the coding is bad. It's not a direct attack at the OP but Ion is simply awful. Many people (who actually know what good coding is) will agree.

    If you want to keep script kiddies from performing a DoS attack using tools that contain more spyware and will do more damage to them than what it will to do the server they're DoSing have fun with it. But coding it at application level isn't a good idea. a DoS attack should be blocked before it even reaches the game server.

  25. #25
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: Anti-Ddos Holograph Emulator

    Quote Originally Posted by Matthew View Post
    I don't code in .NET languages. I'm personally taking up Python. Much more robust. C# shouldn't be used for servers. Period. I can just tell the coding is bad. It's not a direct attack at the OP but Ion is simply awful. Many people (who actually know what good coding is) will agree.

    If you want to keep script kiddies from performing a DoS attack using tools that contain more spyware and will do more damage to them than what it will to do the server they're DoSing have fun with it. But coding it at application level isn't a good idea. a DoS attack should be blocked before it even reaches the game server.

    you right, it think that people need to set in they config that you are only allowed to have 3 connections to the server(by ip)
    Last edited by Davidaap; 21-02-11 at 01:18 PM.



Page 1 of 2 12 LastLast

Advertisement