Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Decoding User.dat

 
Post new topic   Reply to topic Printable version
 View previous topic  I crashed Catid's biller Post :: Post File write error  View next topic  
Author Message
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Mar 23, 2007 4:03 am    Post subject: Decoding User.dat Reply to topic Reply with quote

I have two user.dat files.

i want to bring users from one .dat to the other.

a typical entry:
 Cheese! m±ÁT 3 3R33 333 R3 3RR33R33 3 RRR3 R3 3RR RR33R3 3RRRR RR33 333333333  î Œ  J½F‚½FÎÈ¿Eh

any help?
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Chambahs
Power attack
Power attack


Joined: Jun 19 2005
Posts: 820
Offline

PostPosted: Fri Mar 23, 2007 5:38 am    Post subject: Reply to topic Reply with quote

Im probably wrong, but doesnt that contain the players PW? Decrypting that would allow you to see all the players' passwords...thats not cool lol..
Back to top
View users profile Send private message Add User to Ignore List
L.C.
Server Help Squatter


Age:34
Gender:Gender:Male
Joined: Jan 03 2003
Posts: 574
Location: Missouri, US
Offline

PostPosted: Fri Mar 23, 2007 7:52 am    Post subject: Reply to topic Reply with quote

Yes. Users.dat does contain passwords. My buddy (coder) was able to decrypt the whole thing through the use of PHP. I lost the files for it though, so I would have to ask my buddy.

Basically the simple explanation to that is one of those "the first 4 bytes is the <fill in the blank>, the next 2 bytes are the <blank>," and so on. That's what I know at the moment.

The one thing that seems to be is that each and every player has a dual password. For example, I might be using "abc123" for my player password. To the biller, "abc123" AND "s7sgf87th0t34a0" would be my password (that was just random garble). For odd-numbered lengthed passwords, I think the "regenerated" form of their password is what is stored in users.dat. Even-numbered lengths should be in their natural "abc123" form. I think all users have their "abc123" password, and whether a system administrator knows it or not, they all also have a "regenerated/encrypted" password or whatever. Encrypted is probably the wrong word for this.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Mar 23, 2007 3:42 pm    Post subject: Reply to topic Reply with quote

luckily i dont care about the pws xD

i want to make a better dat viewer...

that lets you edit everything.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Mar 23, 2007 4:15 pm    Post subject: Reply to topic Reply with quote

each entry is 196 bytes long.

Code: Show/Hide

45000000677265656E737061636500000000000000000000000000000000
0000000000007C12561657EA00000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000C000000520000000100000052B5A08
7A48E166F6DDF02466DDF024688FF0100



all values are in hexadecimal.

45000000 is the userid. (decimal 69)

677265656E7370616365000000000000000000
00000000000000000000000000 is the name. (hex greenspace)

7C12561657EA00000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000 is ????????

0C000000 is squad id. (decimal 12)

52000000 is total usage in seconds. (decimal 82)

01000000 is number of logins. (decimal 1)

52B5A087 is last ip.

A48E166F is macid.

6DDF0246 is last login date/time.

6DDF0246 is creation date/time.

88FF is time zone bias.

0100 is bypass. (decimal 1)

i will fill in the blanks when i find out what they are.
btw what is bypass?


Last edited by Cheese on Wed Mar 28, 2007 5:30 pm, edited 4 times in total
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Fri Mar 23, 2007 4:19 pm    Post subject: Reply to topic Reply with quote

Cheese, you prove that it's a good thing players are warned when they enter a zone with a custom (non-ssc) biller.
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Fri Mar 23, 2007 4:20 pm    Post subject: Reply to topic Reply with quote

As long as you make sure when you merge the userids in, that they are unique, you should be able to just append it to the end of the other users.dat file. I have not tried it, but I don't remember seeing any special header section in the file that would need changed, just straight data. Squad information won't transfer, but usernames/passwords should this way.
Back to top
View users profile Send private message Add User to Ignore List Send email
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Mar 23, 2007 4:27 pm    Post subject: Reply to topic Reply with quote

well, until now, the dat viewers dealt with the squad/user/score dats seperately.

it should be fairly easy to link them :\

@ mav
EZ ;D i wont even try to decode pw. No need. Nor will i help anyone to do so. Plus, thats why its encrypted xD


Last edited by Cheese on Fri Mar 23, 2007 4:48 pm, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Mar 23, 2007 4:43 pm    Post subject: Reply to topic Reply with quote

**this post has been brutally killed by cheese**

ps. wheeeeeee it only took me 20 mins to decode all that ;D


Last edited by Cheese on Wed Mar 28, 2007 5:39 pm, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Fri Mar 23, 2007 5:16 pm    Post subject: Reply to topic Reply with quote

Lol, Mav, there are existing billers that use no encryption on their player database(including passwords) at all. If Cheese has proven anything to you, it should be that the people who are trying to get passwords just aren't that smart. You should've caught onto the non-SSC warning thing being necessary YEARS ago.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sat Mar 24, 2007 1:29 am    Post subject: Reply to topic Reply with quote

Skybill showed my pass in plain text in the terminal when I entered asss. Who ever said it sent out an encoded password from the client to the biller lied. I heard that from somewhere. The password looks like it's being sent in plain text from the client to the server.

Couldn't you just edit catid's biller a little and take out the encryption part?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sat Mar 24, 2007 8:38 am    Post subject: Reply to topic Reply with quote

If you think your password on catid's biller is any more secure, then you're dead wrong.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sat Mar 24, 2007 11:57 am    Post subject: Reply to topic Reply with quote

BDwinsAlt wrote:
Who ever said it sent out an encoded password from the client to the biller lied. I heard that from somewhere. The password looks like it's being sent in plain text from the client to the server.
Supposedly only the SSC biller makes the client send the encoded password.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Mar 25, 2007 10:30 pm    Post subject: Reply to topic Reply with quote

Isn't that reverse of what it should be. I trust SSC with plain text passwords. I don't trust another network without an encoded password.

Continuum needs a makeover then.
Maybe a Client-side MD5 hash?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Sun Mar 25, 2007 11:58 pm    Post subject: Reply to topic Reply with quote

Smong wrote:
[..]

Supposedly only the SSC biller makes the client send the encoded password.


I believe the unencoded password is only sent to the biller(in the case of SSC) on the first login, and thereafter the encoded password is used. SkyBill isn't done, I'm pretty sure Doc Flabby doesn't plan on leaving it as plain text passwords. But he has(understandably) left it as such at the moment, since it's still in development. But this should be a hint that password security amounts to absolutely nothing. In other words, NEVER use the same password on a non-ssc server.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Mon Mar 26, 2007 12:21 am    Post subject: Reply to topic Reply with quote

Good thing I use a different alias icon_biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon Mar 26, 2007 6:15 am    Post subject: Reply to topic Reply with quote

BDwinsAlt wrote:
Isn't that reverse of what it should be. I trust SSC with plain text passwords. I don't trust another network without an encoded password.
It would be nice if cont always used the encoded password (excluding account creation as Animate Dreams pointed out). I suspect what happened is SSC was the only custom biller at the time it was added to cont. As such there are no documents made for other future billers to implement an encoded password.

It's not just about trusting SSC. Any zone is vulnerable to password grabbing exploits. SSC merely encodes the password so should someone manage to grab it they can't use it.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Mar 26, 2007 6:37 am    Post subject: Reply to topic Reply with quote

I suggest a read of this thread.

http://forums.minegoboom.com/viewtopic.php?t=7166

The server can just as easily obtain the password as the biller. When you login to a zone you need to trust both. The encoding continuum uses to send the password to SSC servers can be cracked at the server if its the same encoding i think it is..... Which would (partly) explain why SSC is so careful about what servers it grants access too.
_________________
Rediscover online gaming. Get Subspace | STF The future...prehaps
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Wed Mar 28, 2007 5:33 pm    Post subject: Reply to topic Reply with quote

rightfully so.

make it better, mr flabby!
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Wed Mar 28, 2007 7:37 pm    Post subject: Reply to topic Reply with quote

and also, from whats left, its looks like the pw is encrypted (maybe).
the hex does not match up with the ASCII...

hmm.


so were you saying that pw is plain text in transit?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 340 page(s) served in previous 5 minutes.

phpBB Created this page in 0.600511 seconds : 45 queries executed (93.0%): GZIP compression disabled