Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems compiling pshtoolkit

I have downloaded the pass the hash toolkit source codes from here. When I am compiling it with Visual Studio Ultimate 2010, I would get the following error:

findfuncs_msv10.obj : error LNK2019: unresolved external symbol _GetModuleInformation@16 referenced in function _FindMSV10Functions
whosthere-alt.obj : error LNK2019: unresolved external symbol _LsaFreeReturnBuffer@4 referenced in function _GetLogonSessionData
whosthere-alt.obj : error LNK2019: unresolved external symbol _LsaGetlogonSessionData@8 referenced in function _GetLogonSessionData
whosthere-alt.obj : error LNK2019: unresolved external symbol _LsaEnumerateLogonSession@8 referenced in function _main

How do I solve this error or is there another better way to compile the code. I'm new to C and I'm open to any suggestions.

Update: I have linked the Secur32.lib and the Psapi.lib and it compiles. Thanks alot

like image 827
user1758596 Avatar asked Oct 19 '12 08:10

user1758596


People also ask

What language does PsyToolkit use?

It is programmed in ruby and uses the GTK graphical user interface. It is ideal for questionnaires and also for entering basic data about the experimenter and participant.

When was PsyToolkit created?

Citing PsyToolkit (2010). PsyToolkit - A software package for programming psychological experiments using Linux.


2 Answers

It sounds like you need to link to some additional libraries.

If you search for the functions listed in the errors (minus the leading underscore) in MSDN, it'll show you which libraries to link to.

e.g.

  • GetModuleInformation is in either Kernel32.lib or Psaip.lib, depending on the version of Windows you're using
  • LsaGetLogonSessionData is in Secur32.lib
like image 193
simonc Avatar answered Oct 19 '22 08:10

simonc


You need to add the *.lib files to the Visual Studio project.

Example

like image 1
bytecode77 Avatar answered Oct 19 '22 09:10

bytecode77