Luigi Auriemma

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

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: compiling steampwd into dll for vb6
PostPosted: 27 Apr 2009 22:04 

Joined: 27 Apr 2009 20:59
Posts: 9
I want to use the decryption function in my vb6 app so I try to build a dll to call from my vb app.
Please tell me if there is another better way to do this.

When i compile i get these errors:
Code:
ttt.obj : error LNK2001: unresolved external symbol _SHA256
ttt.obj : error LNK2001: unresolved external symbol _AES_ecb_encrypt
ttt.obj : error LNK2001: unresolved external symbol _AES_set_encrypt_key
ttt.obj : error LNK2001: unresolved external symbol _HMAC
ttt.obj : error LNK2001: unresolved external symbol _EVP_sha1
Debug/ttt.dll : fatal error LNK1120: 5 unresolved externals



What should i do? Again, if there is a better way to call the decryption function without your exe please tell me.

thanks in advance,
Oren


Top
 Profile  
 
 
 Post subject: Re: compiling steampwd into dll for vb6
PostPosted: 28 Apr 2009 01:19 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
you must link it to openssl: -lcrypto


Top
 Profile  
 
 Post subject: Re: compiling steampwd into dll for vb6
PostPosted: 28 Apr 2009 14:44 

Joined: 27 Apr 2009 20:59
Posts: 9
how do i go that? and i think there is an easier way for me to use the decryption on vb6. what is the dude here:
steam-decryption-confused-t806.html

trying to do?

and if it works, what are the exact parameters for the SteamDecryptDataForThisMachine function + what is the vb6 decleration if you know..?

btw-i admire you.

tnx!


Top
 Profile  
 
 Post subject: Re: compiling steampwd into dll for vb6
PostPosted: 28 Apr 2009 15:54 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
for calling SteamDecryptDataForThisMachine from VB I guess the best thing is searching SteamDecryptDataForThisMachine vb on google where are linked various examples because personally I know only C.

while for the openssl thing depends by your compiler, for example with gcc/mingw it's enough to use:
Code:
gcc -o steampwd.exe steampwd.c -lcomdlg32 -lcrypto -lgdi32

so I guess that on Visual Studio the command is like:
Code:
cl steampwd.c -DWIN32 -lcomdlg32 -lcrypto -lgdi32

if you don't have openssl: http://www.slproweb.com/products/Win32OpenSSL.html


Top
 Profile  
 
 Post subject: Re: compiling steampwd into dll for vb6
PostPosted: 28 Apr 2009 16:46 

Joined: 27 Apr 2009 20:59
Posts: 9
i dont compile from cmd...


Top
 Profile  
 
 Post subject: Re: compiling steampwd into dll for vb6
PostPosted: 28 Apr 2009 17:12 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I guess you can link the needed library though some options in the interface of visual studio, probably in the properties of the project "Linker -> Input -> Additional Dependencies" and add the full path of libcrypto.a or libcrypto.lib (note that I don't have Visual Studio, I'm only trying to guess the procedure for linking a project to an external library).


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: