z0noxz / powerstager

A payload stager using PowerShell
MIT License
183 stars 48 forks source link

update the code of script to support latest mingw gcc versions #16

Open peterpt opened 4 years ago

peterpt commented 4 years ago

got this error :


/ _ \_____      _____ _ __/ _\ |_ __ _  __ _  ___ _ __ 

/ /)/ \ \ /\ / / \ '\ | / |/ _ |/ \ '| / / (_) \ V V / / | \ \ || (| | (_| | _/ |
\/ \
/ _/_/ _|| _/__,|_, |_||
|__/
| '
| | | |
| |) | || | A payload stager using PowerShell
(
) .
/ _, | Created by z0noxz
|
| |___/

Traceback (most recent call last): File "power.py", line 2962, in main(sys.argv[1:]) File "power.py", line 2949, in main compile_source() File "power.py", line 2694, in compile_source Print.add_name_value("File signature", hashlib.md5(open(output, "rb").read()).hexdigest(), Print.info) IOError: [Errno 2] No such file or directory: 'windowsbd'

with gcc-mingw-w64-i686 version 8.3.0

after downgrading to 4.9.1 version in debian jessie repository the problem disapeared .

your script requires all these packages gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 binutils-mingw-w64-i686 binutils-mingw-w64-x86-64

and right now it will only work if these packages came from jessie repository .

z0noxz commented 4 years ago

I have very limited time for this at the moment. If anyone else has the time, feel free to send a pull request.

On 2019-12-14 15:48:01, peterpt wrote:

got this error :


/ _ \_____      _____ _ __/ _\ |_ __ _  __ _  ___ _ __ 

/ /)/ \ \ /\ / / \ '\ | / |/ _ |/ \ '| / / (_) \ V V / / | \ \ || (| | (_| | _/ |
\/ \
/ _/_/ _|| _/__,|_, |_||
|__/
| '
| | | |
| |) | || | A payload stager using PowerShell
(
) .
/ _, | Created by z0noxz
|
| |___/

Traceback (most recent call last): File "power.py", line 2962, in main(sys.argv[1:]) File "power.py", line 2949, in main compile_source() File "power.py", line 2694, in compile_source Print.add_name_value("File signature", hashlib.md5(open(output, "rb").read()).hexdigest(), Print.info) IOError: [Errno 2] No such file or directory: 'windowsbd'

with gcc-mingw-w64-i686 version 8.3.0

after downgrading to 4.9.1 version in debian jessie repository the problem disapeared .

your script requires all these packages gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 binutils-mingw-w64-i686 binutils-mingw-w64-x86-64

and right now it will only work if these packages came from jessie repository .

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/z0noxz/powerstager/issues/16