Thread: Invalid UID Login Issue

Results 1 to 5 of 5
  1. #1 Invalid UID Login Issue 
    Registered Member
    Join Date
    Jul 2014
    Posts
    34
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    Hey everyone, I'm trying to mess around with the Platinum Rsps source (Ruse) and upon logging in I keep getting this: https://prnt.sc/Jm0_nHU4pNZ8

    I have checked the RSA in Gamesettings.java for the server and Stream.java on the client side and everything seems to be how it should be.

    Stream.java: https://prnt.sc/EW6gtn5TC2LC
    GameSettings.java: https://prnt.sc/tY_oqkZEbIpa

    I have tried everything including changing the numbers to try and get it to work but evidently this is above my knowledge. Thank you in advance!!
    Reply With Quote  
     

  2. #2  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Please post IPVerification.java class, as that is where the error is (com > platinum > net > login > IPVerification.java)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2014
    Posts
    34
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Armo View Post
    Please post IPVerification.java class, as that is where the error is (com > platinum > net > login > IPVerification.java)
    Here is the IPVerification.java file

    package com.platinum.net.login;

    import java.io.IOException;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.util.Scanner;

    import com.platinum.GameSettings;
    import com.platinum.world.content.discord.DiscordMessenge r;
    import com.platinum.world.entity.impl.player.Player;
    import org.json.simple.JSONObject;
    import org.json.simple.parser.JSONParser;
    import org.json.simple.parser.ParseException;

    public final class IPVerification {


    public static void manualIPCheck(Player initiator, Player suspect) {
    try {
    //Getting the target IP Address as a string to use in the URL
    String IP = suspect.getHostAddress();
    //The URl that will show the required information.
    URL url = new URL("https://ipqualityscore.com/api/json/ip/njOmfDZj2CChqDrb3sFnT1NcQRrxn43l/" + IP);

    HttpURLConnection conn = (HttpURLConnection) url.openConnection(); //Connecting to the URL
    conn.setRequestMethod("GET"); //Sending a 'GET' Request to the URL. This is the same thing that happens when you open a webpage on your PC
    conn.connect(); //Connecting to the session

    //Getting Response Code
    int responseCode = conn.getResponseCode();

    //Response code 200 means a webpage responded to our GET request successfully.
    if (responseCode != 200) {
    throw new RuntimeException("HttpResponseCode: " + responseCode);
    } else {
    Scanner sc = new Scanner(url.openStream()); //Scanner is a class which reads the results from a website response
    StringBuilder inline = new StringBuilder(); //Setting a blank string. We will add the responses to the string to build up our results
    while(sc.hasNext()) //While there are still responses, we add them to the blank string 'inline'
    {
    inline.append(sc.nextLine()); //Adding the response to nextline blank string
    }
    //System.out.println(inline); //If you want to see the full result in the console, uncomment this line (Good for debugging)
    sc.close(); //Closes the connection to prevent mem leaks!

    JSONParser parse = new JSONParser(); //Starting a new JSONParses session
    JSONObject obj = (JSONObject) parse.parse(inline.toString()); //Creating a new JSONObject and setting it equal to everything inside 'inline'

    //Using data from JSON
    String ip = obj.get("host").toString();
    boolean VPN = obj.get("vpn").toString().equals("true");
    boolean tor = obj.get("tor").toString().equals("true");
    boolean proxy = obj.get("proxy").toString().equals("true");
    boolean bot_status = obj.get("bot_status").toString().equals("true");
    int fraudScore = Integer.parseInt(obj.get("fraud_score").toString() );
    String country = obj.get("country_code").toString();
    String region = obj.get("region").toString();
    String city = obj.get("city").toString();
    String isp = obj.get("ISP").toString();

    //Adding asterisks either side to make them bold in Discord
    String susUser = "**" + suspect.getUsername() + "**";
    String initUser = "**" + initiator.getUsername() + "**";

    //Formatting the results. \n is an expression that creates a new line. Purely for formatting because I have aids level OCD
    String results = "IP Scan on " + susUser + "\nIP: " + ip + "\nVPN: " + VPN + "\nTor: " + tor + "\nProxy: " + proxy + "\nBot Status: " + bot_status + "\nFraud Score: " + fraudScore + "\nCountry: " + country + "\nRegion: " + region + "\nCity: " + city + "\nISP: " + isp + "\nScan Requested by: " + initUser;
    System.out.println(results);
    DiscordMessenger.sendStaffMessage(results); //This is the location that I sent the results to, this should be changed to whatever is most relevant for you!
    }
    } catch (IOException | ParseException e) {
    e.printStackTrace();
    }
    }

    public static boolean autoIPCheck(Player suspect, String IP) {
    boolean shouldBlock = false;

    try {
    //The URl that will show the required information.
    URL url = new URL("https://ipqualityscore.com/api/json/ip/njOmfDZj2CChqDrb3sFnT1NcQRrxn43l/" + IP);

    HttpURLConnection conn = (HttpURLConnection) url.openConnection(); //Connecting to the URL
    conn.setRequestMethod("GET"); //Sending a 'GET' Request to the URL. This is the same thing that happens when you open a webpage on your PC
    conn.connect(); //Connecting to the session

    //Getting Response Code
    int responseCode = conn.getResponseCode();

    //Response code 200 means a webpage responded to our GET request successfully.
    if (responseCode != 200) {
    throw new RuntimeException("HttpResponseCode: " + responseCode);
    } else {
    Scanner sc = new Scanner(url.openStream()); //Scanner is a class which reads the results from a website response
    StringBuilder inline = new StringBuilder(); //Setting a blank string. We will add the responses to the string to build up our results
    while(sc.hasNext()) {//While there are still responses, we add them to the blank string 'inline'
    inline.append(sc.nextLine()); //Adding the response to nextline blank string
    }
    //System.out.println(inline); //If you want to see the full result in the console, uncomment this line (Good for debugging)
    sc.close(); //Closes the connection to prevent mem leaks!

    JSONParser parse = new JSONParser(); //Starting a new JSONParses session
    JSONObject obj = (JSONObject) parse.parse(inline.toString()); //Creating a new JSONObject and setting it equal to everything inside 'inline'

    //Using data from JSON
    String ip = obj.get("host").toString();
    boolean VPN = obj.get("vpn").toString().equals("true");
    boolean tor = obj.get("tor").toString().equals("true");
    boolean proxy = obj.get("proxy").toString().equals("true");
    boolean bot_status = obj.get("bot_status").toString().equals("true");
    int fraudScore = Integer.parseInt(obj.get("fraud_score").toString() );
    String country = obj.get("country_code").toString();
    String region = obj.get("region").toString();
    String city = obj.get("city").toString();
    String isp = obj.get("ISP").toString();
    //Adding asterisks either side to make them bold in Discord
    String susUser = "**" + suspect.getUsername() + "**";
    //Formatting the results. \n is an expression that creates a new line. Purely for formatting because I have aids level OCD
    String results = "LOGON BLOCKED FOR " + susUser + "\nIP: " + ip +"\nVPN: " + VPN + "\nTor: " + tor + "\nProxy: " + proxy + "\nBot Status: " + bot_status + "\nFraud Score: " + fraudScore + "\nCountry: " + country + "\nRegion: " + region + "\nCity: " + city + "\nISP: " + isp;

    if ((VPN || tor || (proxy && fraudScore > 90) || bot_status)
    && !GameSettings.DEVELOPERSERVER
    && !suspect.getRights().isSeniorStaff()
    && !suspect.getRights().isMember()) { //Only sending the info to staff if these prereqs are met
    DiscordMessenger.sendStaffMessage(results); //This is the location that I sent the results to, this should be changed to whatever is most relevant for you!
    shouldBlock = true;
    }
    }
    } catch (IOException | ParseException e) {
    e.printStackTrace();
    }
    return shouldBlock;
    }
    }
    Reply With Quote  
     

  4. #4  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Quote Originally Posted by Exciting View Post
    Here is the IPVerification.java file

    package com.platinum.net.login;

    import java.io.IOException;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.util.Scanner;

    import com.platinum.GameSettings;
    import com.platinum.world.content.discord.DiscordMessenge r;
    import com.platinum.world.entity.impl.player.Player;
    import org.json.simple.JSONObject;
    import org.json.simple.parser.JSONParser;
    import org.json.simple.parser.ParseException;

    public final class IPVerification {


    public static void manualIPCheck(Player initiator, Player suspect) {
    try {
    //Getting the target IP Address as a string to use in the URL
    String IP = suspect.getHostAddress();
    //The URl that will show the required information.
    URL url = new URL("https://ipqualityscore.com/api/json/ip/njOmfDZj2CChqDrb3sFnT1NcQRrxn43l/" + IP);

    HttpURLConnection conn = (HttpURLConnection) url.openConnection(); //Connecting to the URL
    conn.setRequestMethod("GET"); //Sending a 'GET' Request to the URL. This is the same thing that happens when you open a webpage on your PC
    conn.connect(); //Connecting to the session

    //Getting Response Code
    int responseCode = conn.getResponseCode();

    //Response code 200 means a webpage responded to our GET request successfully.
    if (responseCode != 200) {
    throw new RuntimeException("HttpResponseCode: " + responseCode);
    } else {
    Scanner sc = new Scanner(url.openStream()); //Scanner is a class which reads the results from a website response
    StringBuilder inline = new StringBuilder(); //Setting a blank string. We will add the responses to the string to build up our results
    while(sc.hasNext()) //While there are still responses, we add them to the blank string 'inline'
    {
    inline.append(sc.nextLine()); //Adding the response to nextline blank string
    }
    //System.out.println(inline); //If you want to see the full result in the console, uncomment this line (Good for debugging)
    sc.close(); //Closes the connection to prevent mem leaks!

    JSONParser parse = new JSONParser(); //Starting a new JSONParses session
    JSONObject obj = (JSONObject) parse.parse(inline.toString()); //Creating a new JSONObject and setting it equal to everything inside 'inline'

    //Using data from JSON
    String ip = obj.get("host").toString();
    boolean VPN = obj.get("vpn").toString().equals("true");
    boolean tor = obj.get("tor").toString().equals("true");
    boolean proxy = obj.get("proxy").toString().equals("true");
    boolean bot_status = obj.get("bot_status").toString().equals("true");
    int fraudScore = Integer.parseInt(obj.get("fraud_score").toString() );
    String country = obj.get("country_code").toString();
    String region = obj.get("region").toString();
    String city = obj.get("city").toString();
    String isp = obj.get("ISP").toString();

    //Adding asterisks either side to make them bold in Discord
    String susUser = "**" + suspect.getUsername() + "**";
    String initUser = "**" + initiator.getUsername() + "**";

    //Formatting the results. \n is an expression that creates a new line. Purely for formatting because I have aids level OCD
    String results = "IP Scan on " + susUser + "\nIP: " + ip + "\nVPN: " + VPN + "\nTor: " + tor + "\nProxy: " + proxy + "\nBot Status: " + bot_status + "\nFraud Score: " + fraudScore + "\nCountry: " + country + "\nRegion: " + region + "\nCity: " + city + "\nISP: " + isp + "\nScan Requested by: " + initUser;
    System.out.println(results);
    DiscordMessenger.sendStaffMessage(results); //This is the location that I sent the results to, this should be changed to whatever is most relevant for you!
    }
    } catch (IOException | ParseException e) {
    e.printStackTrace();
    }
    }

    public static boolean autoIPCheck(Player suspect, String IP) {
    boolean shouldBlock = false;

    try {
    //The URl that will show the required information.
    URL url = new URL("https://ipqualityscore.com/api/json/ip/njOmfDZj2CChqDrb3sFnT1NcQRrxn43l/" + IP);

    HttpURLConnection conn = (HttpURLConnection) url.openConnection(); //Connecting to the URL
    conn.setRequestMethod("GET"); //Sending a 'GET' Request to the URL. This is the same thing that happens when you open a webpage on your PC
    conn.connect(); //Connecting to the session

    //Getting Response Code
    int responseCode = conn.getResponseCode();

    //Response code 200 means a webpage responded to our GET request successfully.
    if (responseCode != 200) {
    throw new RuntimeException("HttpResponseCode: " + responseCode);
    } else {
    Scanner sc = new Scanner(url.openStream()); //Scanner is a class which reads the results from a website response
    StringBuilder inline = new StringBuilder(); //Setting a blank string. We will add the responses to the string to build up our results
    while(sc.hasNext()) {//While there are still responses, we add them to the blank string 'inline'
    inline.append(sc.nextLine()); //Adding the response to nextline blank string
    }
    //System.out.println(inline); //If you want to see the full result in the console, uncomment this line (Good for debugging)
    sc.close(); //Closes the connection to prevent mem leaks!

    JSONParser parse = new JSONParser(); //Starting a new JSONParses session
    JSONObject obj = (JSONObject) parse.parse(inline.toString()); //Creating a new JSONObject and setting it equal to everything inside 'inline'

    //Using data from JSON
    String ip = obj.get("host").toString();
    boolean VPN = obj.get("vpn").toString().equals("true");
    boolean tor = obj.get("tor").toString().equals("true");
    boolean proxy = obj.get("proxy").toString().equals("true");
    boolean bot_status = obj.get("bot_status").toString().equals("true");
    int fraudScore = Integer.parseInt(obj.get("fraud_score").toString() );
    String country = obj.get("country_code").toString();
    String region = obj.get("region").toString();
    String city = obj.get("city").toString();
    String isp = obj.get("ISP").toString();
    //Adding asterisks either side to make them bold in Discord
    String susUser = "**" + suspect.getUsername() + "**";
    //Formatting the results. \n is an expression that creates a new line. Purely for formatting because I have aids level OCD
    String results = "LOGON BLOCKED FOR " + susUser + "\nIP: " + ip +"\nVPN: " + VPN + "\nTor: " + tor + "\nProxy: " + proxy + "\nBot Status: " + bot_status + "\nFraud Score: " + fraudScore + "\nCountry: " + country + "\nRegion: " + region + "\nCity: " + city + "\nISP: " + isp;

    if ((VPN || tor || (proxy && fraudScore > 90) || bot_status)
    && !GameSettings.DEVELOPERSERVER
    && !suspect.getRights().isSeniorStaff()
    && !suspect.getRights().isMember()) { //Only sending the info to staff if these prereqs are met
    DiscordMessenger.sendStaffMessage(results); //This is the location that I sent the results to, this should be changed to whatever is most relevant for you!
    shouldBlock = true;
    }
    }
    } catch (IOException | ParseException e) {
    e.printStackTrace();
    }
    return shouldBlock;
    }
    }
    It looks like there is a ip checking system using this link:

    Code:
     URL url = new URL("https://ipqualityscore.com/api/json/ip/njOmfDZj2CChqDrb3sFnT1NcQRrxn43l/" + IP);
    I would just not use it altogether by doing this:

    Right below

    Code:
    public static boolean autoIPCheck(Player suspect, String IP) {
    Put:
    Code:
    if(true)
    	return false;
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member
    Join Date
    Jul 2014
    Posts
    34
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Armo View Post
    It looks like there is a ip checking system using this link:

    Code:
     URL url = new URL("https://ipqualityscore.com/api/json/ip/njOmfDZj2CChqDrb3sFnT1NcQRrxn43l/" + IP);
    I would just not use it altogether by doing this:

    Right below

    Code:
    public static boolean autoIPCheck(Player suspect, String IP) {
    Put:
    Code:
    if(true)
    	return false;

    That did it! Thank you!
    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] login issues
    By 64Bit in forum Help
    Replies: 5
    Last Post: 04-02-2012, 03:52 PM
  2. PJA Login Issue
    By Chris SS in forum Help
    Replies: 4
    Last Post: 12-17-2011, 04:30 PM
  3. Login issues
    By Bauce in forum Help
    Replies: 2
    Last Post: 11-08-2011, 12:06 AM
  4. Login Issue.
    By Sir Tom in forum Help
    Replies: 3
    Last Post: 01-18-2011, 10:52 PM
  5. Login issues: "response:22"
    By Situations in forum Help
    Replies: 1
    Last Post: 05-23-2010, 01:26 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
  •