SRL Archive - News and General

Request: PHP authentication system!


marpis

2010-01-16 04:48:25

Hi.

I believe we all would really enjoy an authentication system, so we could choose who can use our scripts and perhaps sell them? (not in SRL!)

I do not know PHP very well, and I'd like someone to write a PHP script that worked like this:

Function Authentication: Boolean;
Var
S: String;
Begin
S := GetIPstring; // <-- IP could be taken from connecting to "www.showmyip.com" or something like that.
Result := StrToBool(GetPage('http://myhost.com/authentication.php?321823')); // <-- 321823 is the authkey
End;

authentication.php would "result" either 'True' or 'False' or whatever if the authentication key was found in the list of correct authkeys.

Another great thing would be if the system had a control panel for the script author. http://myhost.com/authpanel.php required a password which is only known by the author ofcourse, and you could see all IPs that have the authentication keys. The site would then look like this
[php]
DATE || AUTHKEY || IP ADDRESS
==================================================
January 12th 2010 || 8AH27615D || 92.176.123.223
January 11th 2010 || 8AH27615D || 92.176.123.223
January 11th 2010 || HASD6JDAS || 72.825.654.122
January 9th 2010 || 8AH27615D || 92.176.123.223
January 8th 2010 || HASD6JDAS || 72.825.654.122
[/php]
This would prevent spreading an authkey and letting everyone use it for free.
:)

YoHoJo

2010-01-16 04:50:21

If not at srl, then where will you be selling scripts?! :p

Floor66

2010-01-16 04:54:47

Well couldn't people just edit the auth out of scar..?

YoHoJo

2010-01-16 04:56:03

Meh dont worry about all the security stuffs, you can make it work, obfuscate, hide code, make it hard to crack etc etc. He just wants to get it working! :p

Floor66

2010-01-16 04:56:40

Well that would be easy then… Just set up a mysql db and throw in some php code :p

YoHoJo

2010-01-16 04:57:34

He doesn't know how. Do it for him! :]

Daniel

2010-01-16 05:03:29

http://villavu.com/forum/showthread.php?t=52666

Still works and is pretty secure :)

BobboHobbo

2010-01-16 05:03:52

I tried making one of these, made me rage quit all scripting for a bit. haha.

When making a auth there should be:

WARNING: Highly annoying!

Daniel

2010-01-16 05:08:54

From: BobboHobbo
I tried making one of these, made me rage quit all scripting for a bit. haha.

When making a auth there should be:

WARNING: Highly annoying!


Yes, you gave up by looking at an example. And I made the one (above ^^) especially for you :p

Also, these things are pretty easy. Even for a beginner ;) You're just a dumbass o_O

Sir R. M8gic1an

2010-01-16 07:05:13

I guess that with Simba and the ability to export it into a .exe an auth might come useful although there are always ways around it, only harder.

~RM

marpis

2010-01-16 09:08:03

Oh, forgot to tell that I'd make a plugin with functions like
procedure aaaaaaa(var aaa, aaaa, aaaaa, aaaaa, aaaaaa, aaaaaaa: TIntegerArray); stdcall;
which return X's, Y's, areasizes, areashapes, tolerances, and colors in all DDTMs etc. etc. :) Also all static point click co-ords would be gotten like this. You wouldn't see a single Mouse(661, 322, 5, 5, True), you'd see Mouse(aaaaaaaaaaa, aaaaaaaaaaaaaaaaa, 5, 5, True) :) No-one but me knows where that clicks! ;)

Authentication would be checked like everytime in bank or so. The authcheck would be included to the function in which I withdraw stuff or do something else. The user trying to crack the auth couldn't tell which of the many plugin functions check the auth.

P.S. I really love my new avvy <3

E: In fact I could present my own Types in the plugin too :D
Type
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = TIntegerArray;

Timer

2010-01-16 13:17:48

I can do this if I'm feeling lazy today.

noidea

2010-01-16 17:04:24

From: marpis
Oh, forgot to tell that I'd make a plugin with functions like
procedure aaaaaaa(var aaa, aaaa, aaaaa, aaaaa, aaaaaa, aaaaaaa: TIntegerArray); stdcall;
which return X's, Y's, areasizes, areashapes, tolerances, and colors in all DDTMs etc. etc. :) Also all static point click co-ords would be gotten like this. You wouldn't see a single Mouse(661, 322, 5, 5, True), you'd see Mouse(aaaaaaaaaaa, aaaaaaaaaaaaaaaaa, 5, 5, True) :) No-one but me knows where that clicks! ;
E: In fact I could present my own Types in the plugin too :D
Type
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = TIntegerArray;


I would make a flaiel name like that for every srl/scar function, and put it in the plugin ;)

Bobarkinator

2010-01-16 18:33:05

From: noidea
I would make a flaiel name like that for every srl/scar function, and put it in the plugin ;)


Except you can't call SRL function from a plugin…

noidea

2010-01-16 21:10:44

From: Bobarkinator
Except you can't call SRL function from a plugin…


I stand corrected ^_^