Page 1 of 1

Sapien Powershell studio compiled exe files not working

Posted: Sun Feb 11, 2018 3:16 pm
by whiggs
Hello Enigma development team,
So I am having an issue with getting your product to work correctly with executable files that are compiled using Sapien Powershell Studio 2018. When I run the compiled executable through enigma virtual box and run it, the application just hangs and does nothing. However, when I compile the powershell script into an exe using a different application like ps1 to exe converter (http://www.f2ko.de/en/p2e.php), the program executes beautifully. Enigma virtual box seems to be incompatible with executable files compiled in sapien powershell studio, which sucks because all of my powershell scripts are compiled using powershell studio due to the advanced features it offers. Can you please look into why this is and fix it? That would be great:

Re: Sapien Powershell studio compiled exe files not working

Posted: Mon Feb 12, 2018 10:55 am
by Enigma
Hi, yes, we can check it. Can you please put non packed files somewhere and send us a link?
Or send a sample at support@enigmaprotector.com.

Check also this workaround, I think it will work for you: http://forum.enigmaprotector.com/viewto ... 564#p24106

Re: Sapien Powershell studio compiled exe files not working

Posted: Tue Feb 13, 2018 1:09 am
by whiggs
Thank you very much for your reply. The below link contains an exe compiled using Sapien powershell studio that has not been processed by enigma virtual box. It is a very simple script which scans that content of a text file (which I would potentially want to be virtual) in the user's my documents directory, then displays a message box displaying the file's text:https://acuitybrandsinc-my.sharepoint.c ... g?e=cAPwaP

Code: Select all

$content = Get-Content "$env:USERPROFILE\Documents\file.txt"
Add-Type -AssemblyName "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
[void][System.Windows.Forms.MessageBox]::Show("$content", 'Title') # Casting the method to [void] suppresses the output. 

Re: Sapien Powershell studio compiled exe files not working

Posted: Tue Feb 13, 2018 7:48 am
by Enigma
Looks like there should be more files, because when I run this exe, it does not start asking for some dependency files.

Can you please zip all files that I may need to run it for testing?

Re: Sapien Powershell studio compiled exe files not working

Posted: Mon Feb 19, 2018 11:14 pm
by whiggs
Enigma wrote:Looks like there should be more files, because when I run this exe, it does not start asking for some dependency files.

Can you please zip all files that I may need to run it for testing?
I am sorry. I am not sure what you mean. I wrote the script in such a way so that it would be easy to test. The script looks for a text file named "file.txt" in the current user's documents folder. My thought was that you could take the exe I provided and use virtual box to embed a text file named "file.txt" in enigma virtualbox's "MY Documents Folder% to determine the issue. If you would rather me do something different, please let me know how you would like the script to be written.

Re: Sapien Powershell studio compiled exe files not working

Posted: Fri Mar 02, 2018 10:32 pm
by whiggs
So I noticed there was an update recently to make virtualbox more compatible with certain executables. However, just tested new version using the same script, and still doing the same thing. Is there anything you need from me to get this working?