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

Open
opened 2019-12-15 00:48:00 +01:00 by peterpt · 1 comment
peterpt commented 2019-12-15 00:48:00 +01:00 (Migrated from github.com)

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 .

got this error : ___ __ _ / _ \_____ _____ _ __/ _\ |_ __ _ __ _ ___ _ __ / /_)/ _ \ \ /\ / / _ \ '__\ \| __/ _` |/ _` |/ _ \ '__| / ___/ (_) \ V V / __/ | _\ \ || (_| | (_| | __/ | \/ \___/ \_/\_/ \___|_| \__/\__\__,_|\__, |\___|_| _ __ _ _ |___/ | '_ \| | | | _| |_) | |_| | A payload stager using PowerShell (_) .__/ \__, | Created by z0noxz |_| |___/ Traceback (most recent call last): File "power.py", line 2962, in <module> 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 2019-12-15 10:15:58 +01:00 (Migrated from github.com)

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

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 <module> > 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: public/powerstager#16