Creating Armagetron Custom Authority

General Stuff about Armagetron, That doesn't belong anywhere else...
ceoarck
On Lightcycle Grid
Posts: 17
Joined: Tue Jun 25, 2013 8:43 am
Location: Delhi,India
Contact:

Creating Armagetron Custom Authority

Post by ceoarck »

Hello everyone,
I recently read the post on Custom Armagetron Authority by Z-man and vertrex .In that script i want that the password should not be plain-text. What i mean to say is when we log into arma the comparison of user name and password is in plain text , i want that encrypted so that i can use it with my web log-in script.
My reference :
http://forums3.armagetronad.net/viewtopic.php?t=21958
"All the things in life which came easily, have no value , to get the value , earn the things" - Anonymous
Image
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Creating Armagetron Custom Authority

Post by Light »

There is a script referenced there by Z-Man. All you have to do is store the passwords in MD5, pre/appending your strings before encoding. Then in the getPassword() function, you need to pull from the database rather than using an array, and returning the MD5 password. Then go on down to getPasswordHash(), and remove the method switch, and the MD5 encryption in the returned array. You don't really have to remove the switch(), but it's pointless to keep.

It's easier just to not have a pre/suffix and encrypt your passwords regularly with MD5 when you store them. You can't use other methods such as sha1 or as you see with SMF sha1( md5() ).
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Creating Armagetron Custom Authority

Post by LOVER$BOY »

Light wrote:You can't use other methods such as sha1 or as you see with SMF sha1( md5() ).
Actually it's sha1(usernamepassword) for SMF.
ceoarck wrote:Hello everyone,
I recently read the post on Custom Armagetron Authority by Z-man and vertrex .In that script i want that the password should not be plain-text. What i mean to say is when we log into arma the comparison of user name and password is in plain text , i want that encrypted so that i can use it with my web log-in script.
My reference :
http://forums3.armagetronad.net/viewtopic.php?t=21958
Either ask Light for help or me (I am VerTreX). I am running my own using hashed (encrypted) passwords using this script: http://bazaar.launchpad.net/~armagetron ... work/files and the authority here: http://vertrex.tk/armaauth/0.1
Image
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Creating Armagetron Custom Authority

Post by Light »

Damn, you're right. :P It's been years since I helped out there.

To OP: If you provide your setup for tables / columns and encryption on your passwords (hopefully just MD5 or plain text), I may be able to help out more.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Creating Armagetron Custom Authority

Post by LOVER$BOY »

Light wrote:To OP: If you provide your setup for tables / columns and encryption on your passwords (hopefully just MD5 or plain text), I may be able to help out more.
Suit yourself. I'm slightly lazy to tell people anything unless they ask me now :P
Image
ceoarck
On Lightcycle Grid
Posts: 17
Joined: Tue Jun 25, 2013 8:43 am
Location: Delhi,India
Contact:

Re: Creating Armagetron Custom Authority

Post by ceoarck »

Thank you VerTrex and Light for your help I truly appreciate it.
Sorry for the late reply but thank u guys very much
"All the things in life which came easily, have no value , to get the value , earn the things" - Anonymous
Image
ceoarck
On Lightcycle Grid
Posts: 17
Joined: Tue Jun 25, 2013 8:43 am
Location: Delhi,India
Contact:

Re: Creating Armagetron Custom Authority

Post by ceoarck »

btw Does the script work with hashed and salted passwords ?
"All the things in life which came easily, have no value , to get the value , earn the things" - Anonymous
Image
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Creating Armagetron Custom Authority

Post by Light »

The client sends the password already hashed. Anything added after that would go unused.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Creating Armagetron Custom Authority

Post by LOVER$BOY »

ceoarck wrote:btw Does the script work with hashed and salted passwords ?
Like Light said, every server hashes the password that you send through your login menu from your client. Then it goes into more encryption mode by adding in salt into the hash and some hex codes.

Overall, it's pretty safe and easy to use. I've made a online global login checker that works EXACTLY like it: http://vertrex.tk/global/

How it works is:
Username: Type in your login username that you type using /login
Password: Type in the password you will type when the login window pops up in your client.

Click login and the script will do its job like that of the server. Should return with something. Since I made the messages as equal to the server messages, it should be easy :)
Image
ceoarck
On Lightcycle Grid
Posts: 17
Joined: Tue Jun 25, 2013 8:43 am
Location: Delhi,India
Contact:

Re: Creating Armagetron Custom Authority

Post by ceoarck »

I tried to use the script which you provided in an earlier post but it says a lot of errors like fatal error call to member function
"All the things in life which came easily, have no value , to get the value , earn the things" - Anonymous
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Creating Armagetron Custom Authority

Post by LOVER$BOY »

Well that's probably because you should set those things right.

Firstly, did you set the details in config.php right?

That should automatically fix all the rest.

If it still continues, why not take a screen shot and post it in your reply. Also, could you possibly post in the config.php without your sql password. We don't need a thief in our wonderful community, do we :)
Image
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Creating Armagetron Custom Authority

Post by ConVicT »

I think we do need a thief, cuz it's gotten boring, we need someone to spice things up in our armagetron relationship!
Why can't u wear a sexy outfit now and then, that's it, i'm put off by the whole notion, no good b**t***s! :pacman: :sdot:
ceoarck
On Lightcycle Grid
Posts: 17
Joined: Tue Jun 25, 2013 8:43 am
Location: Delhi,India
Contact:

Re: Creating Armagetron Custom Authority

Post by ceoarck »

VerTrex : I tried the login script on your site and this is the error :

Code: Select all

 
Wrong password supplied, authentication server returned "
Warning pack Type H illegal hex digit $ in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit H in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit $ in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit y in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit r in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit J in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit k in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit S in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit y in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit R in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit X in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit t in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit Q in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit S in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit Q in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit u in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit r in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit w in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit O in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68
PASSWORD_FAIL".
PS I am using phpbb3 3.0.11 for the username and password
PS I had to replace 'pack():' with 'pack' and H: with 'H' because server thought it was a smiley
"All the things in life which came easily, have no value , to get the value , earn the things" - Anonymous
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Creating Armagetron Custom Authority

Post by LOVER$BOY »

ceoarck wrote:VerTrex : I tried the login script on your site and this is the error :

Code: Select all

 
Wrong password supplied, authentication server returned "
Warning pack Type H illegal hex digit $ in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit H in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit $ in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit y in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit r in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit J in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit k in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit S in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit y in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit R in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit X in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit t in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit Q in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit S in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit Q in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit u in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit r in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit w in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit g in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit O in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68

Warning pack Type H illegal hex digit s in \htdocs\armaauth\0.1\index.php on line 68
PASSWORD_FAIL".
You mean the one located here?
http://vertrex.tk/global/

That's odd because I used it just now and no error returned for me :/
ceoarck wrote:PS I am using phpbb3 3.0.11 for the username and password
PS I had to replace 'pack():' with 'pack' and H: with 'H' because server thought it was a smiley
What do you mean? Which script are you referring to here?
Image
ceoarck
On Lightcycle Grid
Posts: 17
Joined: Tue Jun 25, 2013 8:43 am
Location: Delhi,India
Contact:

Re: Creating Armagetron Custom Authority

Post by ceoarck »

The quote regarding the replacement of pack(); with pack was done because armagetron forums thought it was a smiley while posting and the script which i am referring here is the one you mentioned in your post as the one which you use.
"All the things in life which came easily, have no value , to get the value , earn the things" - Anonymous
Image
Post Reply