Open ampf27 opened 4 years ago
i am getting the same error. tried different exe files.
With any success?
tried on windows 7 and windows 10. same error.
Honestly I can't figure out what may be the issue. I have tried these suggestions https://stackoverflow.com/questions/60820994/powershell-cant-handle-large-string but with no success
maybe you get more luck than me
@ankushgoel27 @ampf27
This might help https://github.com/PowerShellMafia/PowerSploit/pull/289
Im trying to embed an exe on a powershell script as described on https://truesecdev.wordpress.com/2016/03/15/embedding-exe-files-into-powershell-scripts/
and to the script https://github.com/PowerShellMafia/PowerSploit/blob/master/CodeExecution/Invoke-ReflectivePEInjection.ps1
I have added
Your base64 encoded binary
$InputString = '...........' with the exe converted to base64
and have also included
Convert base64 string to byte array
$PEBytes = [System.Convert]::FromBase64String($InputString)
Run EXE in memory
Invoke-ReflectivePEInjection -PEBytes $PEBytes
but Im getting this cascade of errors
What can be the reason for these errors and how can I fix them