I have dll files !
There are a function that encrypt content and put it in variable named X-Client-Sign.
I need to use this function to encrypt content using quickbms and i need to get function sourcecode if it is possible because i need to translate it to php
Thank You!
[HELP] how to use function from dll ?
-
- Posts: 17
- Joined: Fri Aug 31, 2018 11:15 am
[HELP] how to use function from dll ?
Last edited by lamjed001 on Fri Apr 10, 2020 7:08 pm, edited 1 time in total.
-
- Posts: 17
- Joined: Fri Aug 31, 2018 11:15 am
Re: how to use function from dll ?
I hope I learn this because I like this field and i care about it, but I don't know how
I hope someone will teach me or send me videos that teach me
I hope someone will teach me or send me videos that teach me
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: [HELP] how to use function from dll ?
It's quite easy to do that with quickbms but most depends by the prototype of the function you want to call and by your work in figuring out the correct calling convention and arguments (reverse engineering):
CallDLL hash.dll name_of_the_function stdcall RETURN_VALUE [ARG1] [ARG2] ... [ARGn]
"stdcall" is the classical calling convention on Windows, but some C/C++ compilers opt for "cdecl" while other programming languages and compilers opt for thiscall and so on (that makes everything more long and complex).
I didn't and will not check your dll, and I can't help figuring out the prototype, calling convention, name of the function, definitely will not help with reverse engineering.
Probably you don't need any dll for calculating that "X-Client-Sign", Google: "sha256hex(client_api_id + json + client_api_key)"
CallDLL hash.dll name_of_the_function stdcall RETURN_VALUE [ARG1] [ARG2] ... [ARGn]
"stdcall" is the classical calling convention on Windows, but some C/C++ compilers opt for "cdecl" while other programming languages and compilers opt for thiscall and so on (that makes everything more long and complex).
I didn't and will not check your dll, and I can't help figuring out the prototype, calling convention, name of the function, definitely will not help with reverse engineering.
Probably you don't need any dll for calculating that "X-Client-Sign", Google: "sha256hex(client_api_id + json + client_api_key)"