optiv / ScareCrow

ScareCrow - Payload creation framework designed around EDR bypass.
2.71k stars 503 forks source link

Still having issues with cmd.Run() failed with exit status 255 #76

Open jphillips241 opened 1 year ago

jphillips241 commented 1 year ago

hi @Tylous. I am having a similar issue as a previous mentioned cmd.Run() failed with exit status 255, when trying to compile.

I am a little confused by your response in the previous thread because you mentioned it being an issue with osslsigncode and to revert to 'this' version and you instead show the version of OpenSSL 1.1.1s.

So, I installed OpenSSL 1.1.1s and still have issues. For clarity can you list specifically which version of osslsigncode is needed?

Here is the output when I try to compile:

Screenshot 2023-06-06 at 11 18 12 AM

And here are my versions of osslsigncode and OpenSSL I have installed:

Screenshot 2023-06-06 at 11 19 33 AM

I have also installed various versions of osslsigncode including the most recent and have had no luck.

Sorry if I'm missing something obvious! Appreciate your time!

Originally posted by @jphillips241 in https://github.com/optiv/ScareCrow/issues/66#issuecomment-1578973012

Tylous commented 1 year ago

It's because your osslsigncode is still using a newer version of OpenSSL, until osslsigncode fixes its bug you need to use an older version of OpenSSL as well. here's my fix for OSX https://gist.github.com/Tylous/3a973879ef72a16ec585b71ce71f6c54 , this should give you an idea. I will update the main code once osslsigncode addresses their issue.