MScholtes / PS2EXE

Module to compile powershell scripts to executables
Other
1.24k stars 199 forks source link

Breaks on 90% of the scripts #41

Closed init5-SF closed 3 years ago

init5-SF commented 3 years ago

The tools breaks almost all the time, showing the error:

Invoke-PS2EXE : Missing closing '}' in statement block or type definition.
At line:1 char:1
+ Invoke-PS2EXE  .\revshell.ps1 .\revshell.exe
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString,Invoke-ps2exe

The tools was installed online using Install-Module

MScholtes commented 3 years ago

Hello init5-msft,

since PS2EXE has been classified as malware because of compiled scripts providing a network service, I have decided to abort the attempt to compile such scripts with an error.

The error message is meant to irritate script kiddies in particular, I now think this was a flawed decision. In the next version I will create a meaningful error message.

Greetings

Markus

init5-SF commented 3 years ago

Hello!,

I get your point, but you're kinda shooting yourself in the foot. What would be the value of the tool if it doesn't compile most - if not all - of pentesting/offsec utilities then? :-)

MScholtes commented 3 years ago

If you tell me how to distinguish a pentesting tool from a hacking tool, I'll include this :smiley:

init5-SF commented 3 years ago

You don't! 😁 Just like anything else, the tool could be used and/or abused, that's how it is unfortunately.

MScholtes commented 3 years ago

Closed since no reaction for over 3 weeks