Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Attack on rcon !

  1. #11
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    It is probably best to make something like this with libcod.

    http://www.urbanterror.info/forums/t...ost__p__201750

    Edit: Something like (example)

    PHP Code:
    int hook_SVC_RemoteCommand(int fromint msg)
    {
        if(
    sendpass != rconpass)
        {
            
    int time = ...; // 
            
            
    if (time<(lasttime+1000)) { // limit bad password by 1s
                
    return;
            }

            
    lasttime time;
        }
        
        
    SVC_RemoteCommand(frommsg);

    Last edited by Mitch; 7th December 2014 at 14:24. Reason: added an example

  2. #12
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I made a working demo from my example above.
    Bad rcon from [IP]:-14751:
    cvarlist
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    Rcon from [IP]:-9114:
    status
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    Bad rcon from [IP]:-14751:
    cvarlist
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    bad rcon delay
    Bad rcon from [IP]:-14751:
    cvarlist
    https://github.com/M-itch/libcod/com...49d062d7d36f6b
    http://znation.nl/libcod/ubuntu/
    Last edited by Mitch; 9th December 2014 at 16:25.

  3. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (9th December 2014)

  4. #13
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by filthy_freak_ View Post
    LOL OMG

    Not this guy...

    Yes, stay far away from this person



    And yes, he did steal my mod before I had libcod. However its useless these days, being severely outdated.

    I was just going through someone's screenshots in xfire and I noticed this person was a member of this |h@x| clan. It seems to be a brazilian clan.

    Before I say what I have to say, keep in mind I'm not being racist (especialy because brazilian is a nationality, and not a race...). Anyway, 1 - I am brazilian, and 2 - I'm basing what I'm saying in facts, not my personal opinion.

    - Almost every brazilian server has copied mods without a single credit. I started modding in 2008, and I can still see codes and stuff that I created (I only found out that scripts can be server side one year ago). The servers that don't have copied mods have unmodified standalone version of mods that were not created by the admins.
    My point is, almost 0% of the BR admins don't make the mods they use or don't credit the people who made the codes they use.
    set logfile 2

  5. #14
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by Mitch View Post
    How to apply it to a server?

  6. #15
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    How to apply it to a server?
    Install/build my libcod version.

    PHP Code:
    git clone https://github.com/M-itch/libcod.git
    cd libcod
    ./doit.sh base
    ./doit.sh cod2_1_0
    cp bin
    /*.so /path/to/libs 
    Last edited by Mitch; 9th December 2014 at 22:02.

  7. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (11th December 2014),Ni3ls (10th December 2014)

  8. #16
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Is there not a way to apply it to kungfooman's libcod version?

  9. #17
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Quote Originally Posted by Ni3ls View Post
    Is there not a way to apply it to kungfooman's libcod version?
    I wasn't able to work all of Mitchs changes into my repo yet, so from that point my repo is kinda outdated. Though mine has some changes to IzNo's async MySQL, which might be just easier to pull/cherry-pick into Mitchs repo and reverting the free_slot()-bug (sorry, I just interpreted commit message wrong).

    Always wanted to address this git incompatibility stuff with some tutorial/video or so, but just lacking motivation in last time. ^^
    timescale 0.01

  10. The Following User Says Thank You to kung foo man For This Useful Post:

    Ni3ls (11th December 2014)

  11. #18
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by kung foo man View Post
    just lacking motivation in last time
    http://www.schleckysilberstein.com/2...nfach-erklart/

  12. The Following User Says Thank You to serthy For This Useful Post:

    Ni3ls (12th December 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •