Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't seem to work (no output picture) #20

Open
jbdu94 opened this issue Oct 19, 2022 · 0 comments
Open

doesn't seem to work (no output picture) #20

jbdu94 opened this issue Oct 19, 2022 · 0 comments

Comments

@jbdu94
Copy link

jbdu94 commented Oct 19, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant