Results 1 to 3 of 3

Thread: Kagani 831 SMART

  1. #1
    Join Date
    Nov 2015
    Location
    Oregon
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Question Kagani 831 SMART

    First off, I was wondering if anyone has ever hooked SMART to an RSPS, because it's really something I want to achieve.

    I have tried things like changing the URL to the .jar in my desktop, but it gets millions of errors still.
    I even have tried going through the entire code
    I am not an expert :s

    I saw this post:
    Quote Originally Posted by KeepBotting View Post
    Yes, it is possible.

    To do so, edit smartGetParameters() in smart.simba to match those of the applet you wish to load.
    I'm not sure how to attack this, but I will keep trying things and researching.

    Code:
    function smartGetParameters(out params: TStringArray): boolean;
    var
      page: string;
    begin
      page := getPage(SMART_URL);
    
      params := explode(',', between('worldLink=''', '''', page));
    
      result := (length(params) = 2);
    
      if (not result) then
      begin
        print('Error while grabbing parameters', TDebug.ERROR);
        print('Make sure you can reach the RS website, and no active firewall is blocking Simba', TDebug.HINT);
        exit(false);
      end;
    
      print('smartGetParameters(): Succesfully grabbed paramters', TDebug.SUB);
    end;
    kagani.net/

    If anyone could help, PM me.

    Thanks
    - Mustakrakish


    #################################################


    EDIT:

    I looked around, checked it out and got this far

    New code:
    Code:
    function smartGetParameters(out params: TStringArray): boolean;
    var
      page: string;
    begin
      page := getPage(SMART_URL);
    
      //params := page;
    
      result := 1;
    
      if (not result) then
      begin
        print('Error while grabbing parameters', TDebug.ERROR);
        print('Make sure you can reach the RS website, and no active firewall is blocking Simba', TDebug.HINT);
        exit(false);
      end;
    
      print('smartGetParameters(): Succesfully grabbed paramters', TDebug.SUB);
    end;
    Now I get this error:
    Code:
    Error: Access violation at line 404
    File is smart.simba

    line 404:
    Code:
    params[0], ',' + params[1], w, h, smartInitSeq, smartUserAgent, '', plugins);
    Function: smartCreateClient();
    Code:
    (*
    smartCreateClient
    ~~~~~~~~~~~~~~~~~
    
    .. code-block:: pascal
    
         procedure smartCreateClient(w, h: integer);
    
    Creates a smart client using the dimensions "w" and "h".
    
    .. note::
    
        - By: Olly
        - Last Updated: 28 August 2013 by Olly
    
    Example:
    
    .. code-block:: pascal
    
        smartCreateClient(800, 600);
    
    *)
    function smartCreateClient(w, h: integer): boolean;
    var
      plugins: string;
      params: TStringArray;
      path: string;
    begin
      print('smartCreateClient():', TDebug.HEADER);
    
      if (not smartGetParameters(params)) then
      begin
        print('Failed to grab parameters', TDebug.FOOTER);
        exit(false);
      end;
    
      path := getJavaPath();
      plugins := implode(',', smartPlugins);
    
      print('Using parameters ' + toStr(params));
      print('Using plugins "' + plugins + '"');
    
      __smartCurrentTarget := 0;
      __smartCurrentTarget := smartSpawnClient(path, stringReplace(PluginPath, '\', '/', [rfReplaceAll]),
                                               params[0], ',' + params[1], w, h, smartInitSeq, smartUserAgent, '', plugins);
    
      if (__smartCurrentTarget <> 0) then
      begin
        print('Succesfully spawned a client, attempting to target');
    
        __smartCurrentPID := smartGetClientPID(__smartCurrentTarget);
    
        if (smartSetAsTarget(__smartCurrentPID)) then
        begin
          print('smartCreateClient(): result = true', TDebug.FOOTER);
          result := true;
        end;
      end else
        print('Failed to spawn a SMART client', TDebug.FOOTER);
    end;
    Last edited by Starfox; 04-03-2016 at 03:11 AM.
    My Scripts:
    TizenX Damage Token Collector
    OS-Scape Auto Buyer
    Check out an index of all my scripts here: ScriptingSRL

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    You can't. This RSPS uses a JFrame and loads the applet into the JFrame. It also hardcodes the applet parameters and URL.

    You might be able to if you get SMART to load URL: "http://192.99.228.182/play/kagani831.jar"

    Where revision = http://192.99.228.182/play/revision.txt

    with Parameters:

    Java Code:
    this.client_parameters.put("java_arguments", "-Xmx384m -Xss2m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC");
            this.client_parameters.put("centerimage", "true");
            this.client_parameters.put("image", "http://www.runescape.com/img/game/splash6.gif");
            this.client_parameters.put("separate_jvm", "true");
            this.client_parameters.put("boxborder", "false");
            this.client_parameters.put("boxbgcolor", "black");
            this.client_parameters.put("28", "C42C1E534C0AE9F5D937FDD53A2AB061EEC84D7787AD4E2825B3AFDF3A5A919C257A6ABCB0E2CB50715B5EDE3880BB8F");
            this.client_parameters.put("18", "0irU8SxE4on1Tl9/y7sxdiPtbP2kt8WC");
            this.client_parameters.put("4", "false");
            this.client_parameters.put("25", "0");
            this.client_parameters.put("41", "false");
            this.client_parameters.put("36", HOSTED?"3":"1");
            this.client_parameters.put("39", HOSTED?"3":"1");
            this.client_parameters.put("40", LOBBY_ADDR);
            this.client_parameters.put("-1", "3fOGqwfW5MMZ8acLynrCzA");
            this.client_parameters.put("24", "halign=true|valign=true|image=rs_logo.gif,0,-43|rotatingimage=rs3_loading_spinner.gif,0,47,9.6|progress=true,Verdana,13,0xFFFFFF,0,51");
            this.client_parameters.put("23", "1237575166");
            this.client_parameters.put("14", "0");
            this.client_parameters.put("42", "kaganicache");
            this.client_parameters.put("27", HOSTED?"3":"1");
            this.client_parameters.put("12", "false");
            this.client_parameters.put("38", "0");
            this.client_parameters.put("32", "true");
            this.client_parameters.put("7", "");
            this.client_parameters.put("21", ".runescape.com");
            this.client_parameters.put("37", "http://services.runescape.com/m=gamelogspecs/clientstats?data=");
            this.client_parameters.put("31", "false");
            this.client_parameters.put("22", "true");
            this.client_parameters.put("20", WEB_STREAM_ADDR);
            this.client_parameters.put("3", "0");
            this.client_parameters.put("34", WORLD_HOST);
            this.client_parameters.put("5", "-1082895259");
            this.client_parameters.put("1", "");
            this.client_parameters.put("30", "0");
            this.client_parameters.put("26", "wwGlrZHF5gKN6D3mDdihco3oPeYN2KFybL9hUUFqOvk");
            this.client_parameters.put("43", "1119795612");
            this.client_parameters.put("29", "false");
            this.client_parameters.put("2", "0");
            this.client_parameters.put("35", "");
            this.client_parameters.put("33", "225");
            this.client_parameters.put("13", "1");
            this.client_parameters.put("15", WORLD_HOST);
            this.client_parameters.put("9", "");
            this.client_parameters.put("11", "false");
            this.client_parameters.put("16", "false");
            this.client_parameters.put("0", "retUtMMUGOukXomtmWaUig");


    The best way to do that is to create an HTML file locally, put the parameters and URL for codebase and jar in it. Have Smart load that HTML file.
    Last edited by Brandon; 04-03-2016 at 12:11 PM.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Nov 2015
    Location
    Oregon
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    You can't. This RSPS uses a JFrame and loads the applet into the JFrame. It also hardcodes the applet parameters and URL.

    You might be able to if you get SMART to load URL: "http://192.99.228.182/play/kagani831.jar"

    Where revision = http://192.99.228.182/play/revision.txt

    with Parameters:

    Java Code:
    this.client_parameters.put("java_arguments", "-Xmx384m -Xss2m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC");
            this.client_parameters.put("centerimage", "true");
            this.client_parameters.put("image", "http://www.runescape.com/img/game/splash6.gif");
            this.client_parameters.put("separate_jvm", "true");
            this.client_parameters.put("boxborder", "false");
            this.client_parameters.put("boxbgcolor", "black");
            this.client_parameters.put("28", "C42C1E534C0AE9F5D937FDD53A2AB061EEC84D7787AD4E2825B3AFDF3A5A919C257A6ABCB0E2CB50715B5EDE3880BB8F");
            this.client_parameters.put("18", "0irU8SxE4on1Tl9/y7sxdiPtbP2kt8WC");
            this.client_parameters.put("4", "false");
            this.client_parameters.put("25", "0");
            this.client_parameters.put("41", "false");
            this.client_parameters.put("36", HOSTED?"3":"1");
            this.client_parameters.put("39", HOSTED?"3":"1");
            this.client_parameters.put("40", LOBBY_ADDR);
            this.client_parameters.put("-1", "3fOGqwfW5MMZ8acLynrCzA");
            this.client_parameters.put("24", "halign=true|valign=true|image=rs_logo.gif,0,-43|rotatingimage=rs3_loading_spinner.gif,0,47,9.6|progress=true,Verdana,13,0xFFFFFF,0,51");
            this.client_parameters.put("23", "1237575166");
            this.client_parameters.put("14", "0");
            this.client_parameters.put("42", "kaganicache");
            this.client_parameters.put("27", HOSTED?"3":"1");
            this.client_parameters.put("12", "false");
            this.client_parameters.put("38", "0");
            this.client_parameters.put("32", "true");
            this.client_parameters.put("7", "");
            this.client_parameters.put("21", ".runescape.com");
            this.client_parameters.put("37", "http://services.runescape.com/m=gamelogspecs/clientstats?data=");
            this.client_parameters.put("31", "false");
            this.client_parameters.put("22", "true");
            this.client_parameters.put("20", WEB_STREAM_ADDR);
            this.client_parameters.put("3", "0");
            this.client_parameters.put("34", WORLD_HOST);
            this.client_parameters.put("5", "-1082895259");
            this.client_parameters.put("1", "");
            this.client_parameters.put("30", "0");
            this.client_parameters.put("26", "wwGlrZHF5gKN6D3mDdihco3oPeYN2KFybL9hUUFqOvk");
            this.client_parameters.put("43", "1119795612");
            this.client_parameters.put("29", "false");
            this.client_parameters.put("2", "0");
            this.client_parameters.put("35", "");
            this.client_parameters.put("33", "225");
            this.client_parameters.put("13", "1");
            this.client_parameters.put("15", WORLD_HOST);
            this.client_parameters.put("9", "");
            this.client_parameters.put("11", "false");
            this.client_parameters.put("16", "false");
            this.client_parameters.put("0", "retUtMMUGOukXomtmWaUig");


    The best way to do that is to create an HTML file locally, put the parameters and URL for codebase and jar in it. Have Smart load that HTML file.
    Thanks for the feedback.
    I have been trying to load the client through a browser, but I cant, for the life of me, get the applet to run and bypass my java securities.

    Also you said:
    put the parameters and URL for the codebase and jar in it
    How would I put this in my HTML in order for SMART to read it?
    Also what is the codebase?
    My Scripts:
    TizenX Damage Token Collector
    OS-Scape Auto Buyer
    Check out an index of all my scripts here: ScriptingSRL

Thread Information

Users Browsing this Thread

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

Posting Permissions

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