hasherezade / pe_to_shellcode

Converts PE into a shellcode
https://www.youtube.com/watch?v=WQCiM0X11TA
BSD 2-Clause "Simplified" License
2.27k stars 423 forks source link

What does "appropriate bitness" mean? #17

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi,

I read your README.md, and I found this sentence:

"(*)Warning: remember to use the version of runshc with a bitness appropriate to your converted application (32 or 64 bit) - otherwise the application will crash!"

Can you tell me more about this? What does it mean? What is appropriate bitness?

BR

hasherezade commented 3 years ago

Hi, I think Wikipedia explains it well: "The architecture of a computer system or program in terms of how many bits (binary digits) compose the basic values it can deal with". In modern systems you will usually find either 32 or 64 bitness. In the case mentioned in the README, "appropriate bitness" simply means, that if your shellcode is 32 bit, you must run it by the 32 bit runner (runshc32), and it it is 64 bit, you must run it by the 64 bit runner (runshc64).