-
Notifications
You must be signed in to change notification settings - Fork 393
Description
Hello
I tried to run this on a mac but it doesn't embed the script and I don't have an output PNG.
Nota Bene: my input picture is bigger than the script I try to embed it to. (3mb for the JPG and 2.2mb for the script to embed).
here are the commands I ran:
Import-Module .\Invoke-PSImage.ps1
Invoke-PSImage -Script ./Invoke-Mimikatz.ps1 -Out output.jpg -Image ./input.jpg
New-Object: /Users/mac/Documents/Invoke-PSImage/Invoke-PSImage.ps1:95
Line |
95 | $img = New-Object System.Drawing.Bitmap($Image)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling ".ctor" with "1" argument(s): "The type initializer for 'Gdip' threw an exception."
So I did like that:
Import-Module .\Invoke-PSImage.ps1
./Invoke-PSImage.ps1 -Script ./Invoke-Mimikatz.ps1 -Out output.jpg -Image ./input.jpg
But I don't obtain an output file. I tried JPG and PNG for the output file,
.\Invoke-PSImage.ps1 -Script .\Invoke-Mimikatz.ps1 -Out out.jpg -Image .\input.jpg
if it may help, I run powershell from a Mac.
Could you please assist me?