Thanks for the quick response, i don't know how to use mingc ...i'll try
edit: looks about right?
Code:
fputs("\n"
"Steam password decoder "VER"\n"
"by Luigi Auriemma\n"
"e-mail: aluigi@autistici.org\n"
"web: aluigi.org\n"
"\n", stderr);
fprintf(stderr, "\n"
"Usage: %s [ClientRegistry.blob/password] [key]\n"
"\n", argv[0]);
if(argc < 2) {
#ifdef WIN32
if(GetWindowLong(GetForegroundWindow(), GWL_WNDPROC)) {
regkey(
HKEY_CURRENT_USER,
"Software\\Valve\\Steam\\ClientRegistry.blob", "SteamPath",
steampath, sizeof(steampath));
if(steampath[0]) {
for(p = steampath; *p; p++) {
if(*p == '/') *p = '\\';
}
}
//fname = get_file(steampath);
fname = strcat(steampath, "\\ClientRegistry.blob");
} else
#endif
I pressed g++ and got this
Code:
C:\MinGW>g++ C:\Users\Carlo\Desktop\src\steampwd.c
C:\Users\Carlo\Desktop\src\steampwd.c:26:25: error: openssl/aes.h: No such file
or directory
C:\Users\Carlo\Desktop\src\steampwd.c:27:25: error: openssl/sha.h: No such file
or directory
C:\Users\Carlo\Desktop\src\steampwd.c:28:26: error: openssl/hmac.h: No such file
or directory
C:\Users\Carlo\Desktop\src\steampwd.c: In function 'int main(int, char**)':
C:\Users\Carlo\Desktop\src\steampwd.c:91: warning: deprecated conversion from st
ring constant to 'TCHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c:98: error: invalid conversion from 'u8*' t
o 'char*'
C:\Users\Carlo\Desktop\src\steampwd.c:98: error: initializing argument 1 of 'c
har* strcat(char*, const char*)'
C:\Users\Carlo\Desktop\src\steampwd.c:98: error: invalid conversion from 'char*'
to 'u8*'
C:\Users\Carlo\Desktop\src\steampwd.c:108: error: invalid conversion from 'char*
' to 'u8*'
C:\Users\Carlo\Desktop\src\steampwd.c:112: error: invalid conversion from 'u8*'
to 'char*'
C:\Users\Carlo\Desktop\src\steampwd.c:112: error: initializing argument 1 of '
int sprintf(char*, const char*, ...)'
C:\Users\Carlo\Desktop\src\steampwd.c: In function 'u8* get_file(u8*)':
C:\Users\Carlo\Desktop\src\steampwd.c:138: error: invalid conversion from 'const
u8*' to 'const CHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c:140: error: invalid conversion from 'u8*'
to 'CHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c:143: error: invalid conversion from 'u8*'
to 'const CHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c: In function 'void get_key(u8*)':
C:\Users\Carlo\Desktop\src\steampwd.c:179: warning: deprecated conversion from s
tring constant to 'TCHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c:185: warning: deprecated conversion from s
tring constant to 'TCHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c:191: warning: deprecated conversion from s
tring constant to 'TCHAR*'
C:\Users\Carlo\Desktop\src\steampwd.c:194: error: invalid conversion from 'u8*'
to 'char*'
C:\Users\Carlo\Desktop\src\steampwd.c:194: error: initializing argument 1 of '
int sprintf(char*, const char*, ...)'
C:\Users\Carlo\Desktop\src\steampwd.c:195: error: invalid conversion from 'u8*'
to 'char*'
C:\Users\Carlo\Desktop\src\steampwd.c:195: error: initializing argument 1 of '
char* strcpy(char*, const char*)'
C:\Users\Carlo\Desktop\src\steampwd.c: In function 'int hex2byte(u8*, u8*)':
C:\Users\Carlo\Desktop\src\steampwd.c:221: error: initializer-string for array o
f chars is too long
C:\Users\Carlo\Desktop\src\steampwd.c: In function 'void AESPHM_GenerateIvFromSe
ed(u8*, u8*)':
C:\Users\Carlo\Desktop\src\steampwd.c:244: error: 'SHA256_DIGEST_LENGTH' was not
declared in this scope
C:\Users\Carlo\Desktop\src\steampwd.c:246: error: 'ivHash' was not declared in t
his scope
C:\Users\Carlo\Desktop\src\steampwd.c:246: error: 'SHA256' was not declared in t
his scope
C:\Users\Carlo\Desktop\src\steampwd.c: At global scope:
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: variable or field 'myaesdec' d
eclared void
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: 'AES_KEY' was not declared in
this scope
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: 'ctx' was not declared in this
scope
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: expected primary-expression be
fore 'int'
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: expected primary-expression be
fore 'int'
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: expected primary-expression be
fore '*' token
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: 'iv' was not declared in this
scope
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: expected primary-expression be
fore '*' token
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: 'input' was not declared in th
is scope
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: expected primary-expression be
fore '*' token
C:\Users\Carlo\Desktop\src\steampwd.c:254: error: 'output' was not declared in t
his scope