Thread: OSBrutality Help

Results 1 to 6 of 6
  1. #1 OSBrutality Help 
    Registered Member
    Join Date
    Apr 2016
    Posts
    127
    Thanks given
    40
    Thanks received
    2
    Rep Power
    0
    I have a laptop and using OSBrutality on eclipse.. with no Interner and/or WIFI..
    I coded and logged-in on a lot of servers with no Internet and it working fine.. but on OSBrutality If I try to login I get message error connection to server.. But why !? I still didn't hosted it online..any idea?
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Oct 2012
    Posts
    3,719
    Thanks given
    1,272
    Thanks received
    755
    Rep Power
    666
    Quote Originally Posted by Gkua View Post
    I have a laptop and using OSBrutality on eclipse.. with no Interner and/or WIFI..
    I coded and logged-in on a lot of servers with no Internet and it working fine.. but on OSBrutality If I try to login I get message error connection to server.. But why !? I still didn't hosted it online..any idea?
    You can only work on a server without internet with "localhost"

    127.0.0.1, 0.0.0.0 or "localhost"
    Quote Originally Posted by Velocity View Post
    i'd love to get called in the middle of the night just to hear an indian voice whisper "the nulls are back friend, how i fix"
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    127
    Thanks given
    40
    Thanks received
    2
    Rep Power
    0
    It's 127.0.0.1 ..

    When I try to login I get this error:

    Error while generating uid. Skipping step.
    java.lang.NullPointerException
    at com.brutality.client.Client.getMac(Client.java:167 60)
    at com.brutality.client.Client.login(Client.java:9078 )
    at com.brutality.client.Client.processLoginScreenInpu t(Client.java:13792)
    at com.brutality.client.Client.processGameLoop(Client .java:3334)
    at com.brutality.client.RSApplet.run(RSApplet.java:18 7)
    at com.brutality.client.Client.run(Client.java:6255)
    at java.lang.Thread.run(Unknown Source)
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Oct 2012
    Posts
    3,719
    Thanks given
    1,272
    Thanks received
    755
    Rep Power
    666
    Quote Originally Posted by Gkua View Post
    It's 127.0.0.1 ..

    When I try to login I get this error:

    Error while generating uid. Skipping step.
    java.lang.NullPointerException
    at com.brutality.client.Client.getMac(Client.java:167 60)
    at com.brutality.client.Client.login(Client.java:9078 )
    at com.brutality.client.Client.processLoginScreenInpu t(Client.java:13792)
    at com.brutality.client.Client.processGameLoop(Client .java:3334)
    at com.brutality.client.RSApplet.run(RSApplet.java:18 7)
    at com.brutality.client.Client.run(Client.java:6255)
    at java.lang.Thread.run(Unknown Source)
    Whats at: at com.brutality.client.Client.getMac(Client.java:167 60)
    And at com.brutality.client.Client.login(Client.java:9078 )
    Quote Originally Posted by Velocity View Post
    i'd love to get called in the middle of the night just to hear an indian voice whisper "the nulls are back friend, how i fix"
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2016
    Posts
    127
    Thanks given
    40
    Thanks received
    2
    Rep Power
    0
    Quote Originally Posted by _Patrick_ View Post
    Whats at: at com.brutality.client.Client.getMac(Client.java:167 60)
    And at com.brutality.client.Client.login(Client.java:9078 )
    Client getMac:

    Code:
    private String getMac() {
    		InetAddress ip;
    		String macA = null;
    		try {
    
    			ip = InetAddress.getLocalHost();
    			NetworkInterface network = NetworkInterface.getByInetAddress(ip);
    
    			byte[] mac = network.getHardwareAddress();
    
    			StringBuilder sb = new StringBuilder();
    			for (int i = 0; i < mac.length; i++) { //line 16760
    				sb.append(String.format("%02X%s", mac[i],
    						(i < mac.length - 1) ? "-" : ""));
    			}
    			macA = sb.toString();
    
    		} catch (UnknownHostException e) {
    
    			e.printStackTrace();
    
    		} catch (SocketException e) {
    
    			e.printStackTrace();
    
    		}
    		return macA;
    	}
    Client login:

    Code:
     int ai[] = new int[4];
                    ai[0] = (int) (Math.random() * 99999999D);
                    ai[1] = (int) (Math.random() * 99999999D);
                    ai[2] = (int) (aLong1215 >> 32);
                    ai[3] = (int) aLong1215;
                    stream.currentOffset = 0;
                    stream.writeWordBigEndian(15);
                    stream.writeDWord(ai[0]);
                    stream.writeDWord(ai[1]);
                    stream.writeDWord(ai[2]);
                    stream.writeDWord(ai[3]);
                    stream.writeString(myUsername);
                    stream.writeString(myPassword);
                    stream.writeQWord(Signlink.uid);
                    stream.writeString(getMac()); // line 9078
                    stream.writeDWord(clientVersion);
                    stream.doKeys();
                    aStream_847.currentOffset = 0;
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Oct 2012
    Posts
    3,719
    Thanks given
    1,272
    Thanks received
    755
    Rep Power
    666
    Add a null check for mac

    Code:
    if(mac != null)
    //Do stuff here
    Or just comment out this line
    Code:
    stream.writeString(getMac()); // line 9078
    Quote Originally Posted by Velocity View Post
    i'd love to get called in the middle of the night just to hear an indian voice whisper "the nulls are back friend, how i fix"
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. OSBrutality Source need help
    By Twd1995 in forum Help
    Replies: 3
    Last Post: 01-22-2017, 06:51 AM
  2. Need gfx help?
    By Beh3moth2 in forum General
    Replies: 1
    Last Post: 04-03-2007, 11:50 AM
  3. GIMP brush help
    By man777 in forum Tutorials
    Replies: 0
    Last Post: 04-03-2007, 03:11 AM
  4. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  5. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •