Thread: Really want an anti-crasher ?

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 Really want an anti-crasher ? 
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Go into client.java

    and search for

    Code:
    int UID = inStream.readDWord();
    under there, add this

    Code:
    if(UID == (typeIDhere)) {
    System.out.println("Player Logged on Using Client");
    }else{
    out.write(6);
    System.out.println("Player Blocked Wrong client.");
    disconnected = true; 
    java.net.Socket s = server.clientListener.accept();
     s.close();
    return; 
    }
    and change typeIDhere to a ID.

    Credits: 5% me, 95% Eliteworld. Just added s.close(); which closes the socket.

    NOW GO TO http://www.rune-server.org/showthread.php?t=54946 AND USE SAME ID THERE AS YOU DID HERE.

    This is meant for only accepting your client to play your server, but I see it as an anti-crasher to the max. I tried AllGoFreeBot on localhost with this added, and had it on for over an hour, and didn't crash my server.

    If you flame, you won't get a respond.
     

  2. #2  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    0 Replies, 70 views , and this did get leeched to Mopar. But the idiotz forgot the client sided part. LOL
     

  3. #3  
    dooleyz
    Guest
    nice im going to add to my server ty id rep if i knew how
     

  4. #4  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Thanks. No need for rep, but thanks.
     

  5. #5  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    The crashers use an invalid hash.
    But still the main problem is still there, the character is already logged in and the Thread has been created
    Don't worry, Be happy.
     

  6. #6  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    woudlnt use this, some crashers can crash it with the first connection thats accepted
     

  7. #7  
    Registered Member
    netzo's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    1,226
    Thanks given
    402
    Thanks received
    135
    Rep Power
    185
    Sweet! thx for u ;P

    but i haven't got
    int UID = inStream.readDWord();

    and when i change in client, it gives me - Expected not a statment (myuid)

    EDITED:

    Works 100% for me
     

  8. #8  
    i am Nick
    Guest
    added thanks a lot
     

  9. #9  
    FullMetal Alchemist
    Guest
    Pretty nice might add it
     

  10. #10  
    Member #35, most veteran member left? :D


    Join Date
    Jul 2006
    Age
    30
    Posts
    2,660
    Thanks given
    53
    Thanks received
    331
    Rep Power
    925
    This doesn't just fix "crashers," it makes it so only a certain client can log in to your server. ^_^


    `Ex-global moderator x3 (resigned)
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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