FSecureLABS / incognito

One Token To Rule Them All https://labs.mwrinfosecurity.com/blog/incognito-v2-0-released/
https://www.youtube.com/watch?v=j3gA--ebEaQ
Other
142 stars 33 forks source link

Unable to make incognito.exe #2

Open Gr1mmie opened 4 years ago

Gr1mmie commented 4 years ago

I'm trying to get incognito to run as the standalone exe but when I pull down the repo and try to run make I get the following issue image

On the blog post showcasing v2.0 (https://labs.f-secure.com/archive/incognito-v2-0-released/) it seems to be running as an exe. Seeing as there is a makefile in the repo, I assumed make is used to compile it all into an exe. Is there another way to do this aside from using make?

DarknightCanada commented 3 years ago

@Gr1mmie were you able to solve the issue? I get the same error

v1stra commented 3 years ago

I was able to build it on windows using visual studio 2017 dev command prompt.

I had to add legacy_stdio_definitions.lib to LIBS in the makefile, and modify handle_arguments.c to use vsnprintf instead of _vsnprintf and to use gets_s instead of gets.

nmake /A

maksyche commented 3 years ago

@Gr1mmie @DarknightCanada @v1stra, Binaries were removed in the last commit (I don't know why, really), but they are available here 394545ffb844afcc18e798737cbd070ff3a4eb29. I use .exe file from this commit and it works fine for me.

r3nt0n commented 1 year ago

I was able to build it on windows using visual studio 2017 dev command prompt.

I had to add legacy_stdio_definitions.lib to LIBS in the makefile, and modify handle_arguments.c to use vsnprintf instead of _vsnprintf and to use gets_s instead of gets.

nmake /A

Hey thanks!

Just for completeness, in addition to changing the call from gets to gets_s, we need to add this required parameter, the function call should look like this:

ret_value = gets_s(string, sizeof(string))