Results 1 to 15 of 15

Thread: Request: PHP authentication system!

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default Request: PHP authentication system!

    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:
    SCAR Code:
    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 Code:
     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 
    This would prevent spreading an authkey and letting everyone use it for free.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

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

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Well couldn't people just edit the auth out of scar..?
    Ce ne sont que des gueux


  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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!

  5. #5
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Well that would be easy then... Just set up a mysql db and throw in some php code
    Ce ne sont que des gueux


  6. #6
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

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

  7. #7
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

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

    Still works and is pretty secure
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  8. #8
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    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!

  9. #9
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by BobboHobbo View Post
    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

    Also, these things are pretty easy. Even for a beginner You're just a dumbass o_O
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  10. #10
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    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

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  11. #11
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    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
    Type
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = TIntegerArray;

  12. #12
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  13. #13
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    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
    Type
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = TIntegerArray;
    I would make a flaiel name like that for every srl/scar function, and put it in the plugin
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  14. #14
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    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...


  15. #15
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Bobarkinator View Post
    Except you can't call SRL function from a plugin...
    I stand corrected ^_^
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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
  •