Thread: UUID Ban [PI]

Results 1 to 5 of 5
  1. #1 UUID Ban [PI] 
    Registered Member
    Join Date
    Dec 2011
    Posts
    706
    Thanks given
    9
    Thanks received
    3
    Rep Power
    30
    I'm using this tutorial - http://www.rune-server.org/runescape...d-banning.html
    When I add
    Code:
    UUID = readRS2String(in);
    It gives me error in eclipse saying can't be resolved to a variable (RS2LoginProtocolDecoder)

    Thanks In Advance
    Reply With Quote  
     

  2. #2  
    Registered Member netherfoam's Avatar
    Join Date
    May 2013
    Posts
    149
    Thanks given
    62
    Thanks received
    88
    Rep Power
    46
    One of your classes will have a method called ReadRS2String(Object o) declared. You may be able to use in.readRS2String(), otherwise you'll have to find where the method is stored. Alternatively, you could use this instead:

    Code:
    StringBuilder builder = new StringBuilder();
    char c = (char) in.read(); //read() may be get() or readByte() or getByte() instead.
    while(c != 0){
        builder.append(c);
        c = (char) in.read(); //read() may be get() or readByte() or getByte() instead.
    }   
    
    UUID = builder.toString();
    Alternatively, you may have to put 'String ' before UUID, no quotes, which declares UUID as a String.

    UUID banning is conceptually flawed, assume the client can send you a fake UUID (Because it can) if it wants. UUID banning will only work on clients which aren't hacked and use a UUID that isn't randomly generated upon connection. You've been warned.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    706
    Thanks given
    9
    Thanks received
    3
    Rep Power
    30
    Quote Originally Posted by netherfoam View Post
    One of your classes will have a method called ReadRS2String(Object o) declared. You may be able to use in.readRS2String(), otherwise you'll have to find where the method is stored. Alternatively, you could use this instead:

    Code:
    StringBuilder builder = new StringBuilder();
    char c = (char) in.read(); //read() may be get() or readByte() or getByte() instead.
    while(c != 0){
        builder.append(c);
        c = (char) in.read(); //read() may be get() or readByte() or getByte() instead.
    }   
    
    UUID = builder.toString();
    Alternatively, you may have to put 'String ' before UUID, no quotes, which declares UUID as a String.

    UUID banning is conceptually flawed, assume the client can send you a fake UUID (Because it can) if it wants. UUID banning will only work on clients which aren't hacked and use a UUID that isn't randomly generated upon connection. You've been warned.
    So what is better than an IP Ban because right now I have people bypassing IP Bans.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Aug 2007
    Posts
    1,666
    Thanks given
    10
    Thanks received
    138
    Rep Power
    0
    :: destorypc

    no bypassing that
    Reply With Quote  
     

  5. #5  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    519
    Thanks given
    21
    Thanks received
    7
    Rep Power
    59
    There is a much simpler way to do UUID ban, as a friend of mine did it before. Sorry, I am not sure how he did it, though I have the source he did it in, but too tired to look through it. However, I can tell you "steps" as to how he did it.

    Steps:

    1. Create variable in Client called HWID, and have it where the client reads the HWID of the computer. Beware as this will not work properly on Linux or Mac... Only Windows I believe. (HWID is Hardware ID, which cannot change unless you switch to a different computer, meaning you can avoid this... but not for long unless your father owns dell or something)
    2. Have the Server ask the client for the HWID and record it into the players file.
    3. If "HWID banned", make the server check for HWID on hwidbanned files before allowing them to login.

    And.. not sure if you can pull HWID of a computer through just java, so you might have to look into it

    Edit: Actually, the following links may make your experience 1000 times easier
    Link 1: http://www.rgagnon.com/javadetails/java-0580.html
    Link 2: http://docs.oracle.com/javase/6/docs...Interface.html
    Link 3: http://kodejava.org/how-do-i-get-mac-address-of-a-host/
    Link 4: http://msdn.microsoft.com/en-us/library/aa394587.aspx

    Good Luck
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [PI] UUID Banning
    By ItsGoml in forum Tutorials
    Replies: 206
    Last Post: 05-02-2018, 01:09 AM
  2. 718 Conversion of [PI] UUID Banning
    By Eradication-X in forum Requests
    Replies: 13
    Last Post: 06-16-2014, 12:37 AM
  3. Adding UUID Ban [PI]
    By i am here in forum Help
    Replies: 0
    Last Post: 12-15-2013, 01:55 AM
  4. [PI] UUID Ban Compile Problems
    By Eminem in forum Help
    Replies: 1
    Last Post: 08-09-2012, 05:45 AM
  5. [PI] UUID Ban Help
    By Eminem in forum Help
    Replies: 0
    Last Post: 08-09-2012, 03:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •