Results 1 to 7 of 7

Thread: Leechprotect - Printing executeable.

  1. #1
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default Leechprotect - Printing executeable.

    Hey guys,

    Working on the ability to make it so that scripts don't have to be stored in Simba. I know this can be a security issue but as of yet it is to stop leeching.

    What I have at the moment:

    Simba Code:
    begin
    writeln(GetPage('http://sof.minepress.co.uk/scripttest.php'));
    end.

    So what this does is print out the webpages HTML.
    Simba Code:
    program ClanChatPrint;<p>
    {$DEFINE SMART}<br>
    {$i SRL\SRL.simba}<br>
    <br>
     procedure DeclarePlayers;<br>
        begin<br>
          HowManyPlayers := 1;<br>
          NumberOfPlayers(HowManyPlayers);<br>
          CurrentPlayer := 0;<br>
          Players[0].Name := '';<br>
          Writeln(Players[0].Name);<br>
          Players[0].Pass := '';<br>
          Players[0].Active := True;<br>
          Players[0].Pin := ''; <br>
        end;<br>
    <br>
    begin<br>
      SetupSRL;<br>
      DeclarePlayers;<br>
      LoginPlayer;<br>
      if (not LoggedIn) then<br>
      begin<br>
      LoginPlayer;<br>
      end else<br>
      begin<br>
        Writeln('Works');
      end;<br>
    end.<br>
    Successfully executed.

    Now I'm wondering how do I put this into use with an executable?

    edit: I can't find web.simba?

  2. #2
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    props if you can get it working, but people can just leech anyway with the URL?

    anyone who has the rights to request the script can get the source code, so its the same as it is now?

    you would need the whole, authentication key thing, allowing only limited access,

    and maybe also a plugin for simba to decrypt an encrypted script? because if you can request the source code from the web server, all for nothing imo
    Last edited by DannyRS; 12-17-2012 at 02:01 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  3. #3
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    props if you can get it working, but people can just leech anyway with the URL?
    This is where my PHP script manager comes in handy

  4. #4
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    This is where my PHP script manager comes in handy
    you would need to somehow decrypt and run the script (plugin of some kind) because if they can get the URL and just copy it, defeats the whole purpose

    also if devs are allowed to encrypt stuff, then we are no longer open source, and i dont think they'll want that personally


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  5. #5
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    you would need to somehow decrypt and run the script (plugin of some kind) because if they can get the URL and just copy it, defeats the whole purpose

    also if devs are allowed to encrypt stuff, then we are no longer open source, and i dont think they'll want that personally
    Nah, if the PHP site has a repository and once logged in you have access to certain scripts which show a page like is done at the moment then nothing is encrypted as all I would need to do is a

    Between <b>Script</b> and <b> Script end </b>

    From that point onwards everything is open source except the script.

    Maybe I'l get this moved to the SRL section as it could be deemed dangerous in this area :P

    Simba Code:
    Between('<b> Script </b>','<b> End Script </b>',GetPage('http://sof.minepress.co.uk/scripttest.php'));
    Last edited by xtrapsp; 12-17-2012 at 02:08 PM.

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

    Default

    Create a new C++ file:

    C++ Code:
    #define _WIN32_WINNT 0x0500
    #include <iostream>
    #include <windows.h>
    #include <cstdlib>

    int main()
    {
        HWND hWnd = GetConsoleWindow();
        ShowWindow(hWnd, SW_HIDE);

        system("/Simba/Simba.exe -o \"/Simba/Scripts/Waterfiends.simba\" -r");

        HWND Simba = FindWindow(NULL, "Simba - Waterfiends"); //Should probably loop this so it won't fail :l
        ShowWindow(Simba,SW_MINIMIZE);
        ShowWindow(Simba,SW_HIDE);
    }


    Place it in the appropriate folder. SFX archive it and make sure it runs when extracted.

    Your Simba script is now embedded in an exe.

    Example: http://villavu.com/vb/showthread.php?t=47141

    I just tried it. It works. You can also use Sockets to download the script
    Last edited by Brandon; 12-17-2012 at 03:11 PM.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Create a new C++ file:

    C++ Code:
    #define _WIN32_WINNT 0x0500
    #include <iostream>
    #include <windows.h>
    #include <cstdlib>

    int main()
    {
        HWND hWnd = GetConsoleWindow();
        ShowWindow(hWnd, SW_HIDE);

        system("/Simba/Simba.exe -o \"/Simba/Scripts/Waterfiends.simba\" -r");

        HWND Simba = FindWindow(NULL, "Simba - Waterfiends"); //Should probably loop this so it won't fail :l
        ShowWindow(Simba,SW_MINIMIZE);
        ShowWindow(Simba,SW_HIDE);
    }


    Place it in the appropriate folder. SFX archive it and make sure it runs when extracted.

    Your Simba script is now embedded in an exe.

    Example: http://villavu.com/vb/showthread.php?t=47141

    I just tried it. It works. You can also use Sockets to download the script
    I saw you reading the Scar .exe thread.

    I take it this is how you did it?

    edit: Saw you edited your post... thanks


    as for sockets, I wouldn't know where to start


    Also this doesn't stop the script from being leech free as the script is copy-pasteable
    Last edited by xtrapsp; 12-17-2012 at 03:32 PM.

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
  •