SRL Archive - OSR Help

Leechprotect - Printing executeable.


xtrapsp

2012-12-17 08:55:43

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:

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

So what this does is print out the webpages HTML.

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?

DannyRS

2012-12-17 08:58:43

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 :)

xtrapsp

2012-12-17 08:59:10

From: DannyRS
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 ;)

DannyRS

2012-12-17 09:04:12

From: xtrapsp
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 :)

xtrapsp

2012-12-17 09:06:40

From: DannyRS
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

 Between('<b> Script </b>','<b> End Script </b>',GetPage('http://sof.minepress.co.uk/scripttest.php'));  

Brandon

2012-12-17 10:07:47

Create a new C++ file:


#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 ;)

xtrapsp

2012-12-17 10:27:57

From: Brandon
Create a new C++ file:


#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 :(