Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 18:10

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Steam Decryption confused.
PostPosted: 26 Mar 2009 20:54 

Joined: 26 Mar 2009 20:48
Posts: 4
Well just wondering why this isn't working. I mean, i think the parameters are outta whack or something, cause nothing is even being passed when i call the function. It may also be the incorrect use of the string builder too.
And yea, the key is correct. Copied it like 5 times over and over from the presented key in steampwd.
Code:
Imports System.Runtime.InteropServices
Imports System.Text

Module SteamDecrypt

    <DllImport("Steam.dll", CallingConvention:=CallingConvention.Cdecl)> _
    Public Function SteamDecryptDataForThisMachine(ByVal encryptedData As String, _
                                                   ByVal encryptedDataSize As Integer, _
                                                   ByVal decryptedBuffer As StringBuilder, _
                                                   ByVal decryptedBufferSize As Integer, _
                                                   ByRef decryptedDataSize As Integer) As Integer
    End Function

    Sub Main(ByVal args() As String)

        Dim encpwd As String = "76487-OEM-0052133-178111555899e-b7b1-4c80-a9a9-11c9e14e01261227403925"
        'string encpwd =
        Dim decryptedDataSize As Integer = 0
        Dim pwd As New StringBuilder
        pwd.Length = encpwd.Length / 2
        If SteamDecryptDataForThisMachine(encpwd, encpwd.Length, pwd, pwd.Capacity , _
                                          decryptedDataSize) = 0 Then
            Console.WriteLine(Constants.vbLf & " Password: " & pwd.ToString())
        Else
            Console.WriteLine("Error decrypting the Steam Password.")
        End If
        Console.ReadLine()
    End Sub
End Module


Top
 Profile  
 
 
 Post subject: Re: Steam Decryption confused.
PostPosted: 26 Mar 2009 21:06 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
SteamDecryptDataForThisMachine retrieves automatically the machine's key so the encpwd you specified in your example is wrong, it must be not the key but the encrypted password


Top
 Profile  
 
 Post subject: Re: Steam Decryption confused.
PostPosted: 26 Mar 2009 22:30 

Joined: 26 Mar 2009 20:48
Posts: 4
OH, so steamdecryptdata actually retreives the key alone? Therefore, what's the password? Cause if that gets the key and parses it in order to decrypt the password, how do you find the password in it's encrypted state? Well i know it's in the clientregistry.blob. But can you explain the routine into getting the location for retreiving the start and end of the encrypted password.
Well that fixed my understanding of the parameters moar =x


Top
 Profile  
 
 Post subject: Re: Steam Decryption confused.
PostPosted: 27 Mar 2009 00:32 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the quick method is fully explained here:

steam-password-recovery-t488.html


Top
 Profile  
 
 Post subject: Re: Steam Decryption confused.
PostPosted: 27 Mar 2009 02:21 

Joined: 26 Mar 2009 20:48
Posts: 4
Ahh, okai i found it in hex editor and decrypted it and it found it ^^. But is there a point if you don't even retreive the username login :O

So i would be better off using lens or lengths of the client registry
to search for a certain text such as "phrase" and skips some bytes to start reading the encryptedpass.


Top
 Profile  
 
 Post subject: Re: Steam Decryption confused.
PostPosted: 27 Mar 2009 08:55 

Joined: 16 Aug 2007 06:25
Posts: 367
As for the username, it is stored in the file \Steam\config\SteamAppData.vdf next to "AutoLoginUser"

Here are a few methods of parsing the file: steam-login-recovery-t519.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: