• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

binary disassembly

bwanaaa

Senior member
If you had a string of 0s and 1s, then you can run a 'disassembler' to generate assembly code. Does this generally require that you assume that standard assembly requires 8 bit bytes? How is this accomplished?

Taking it one step further, has the following been accomplished- given a string of 0s and 1s, is it possible to custom generate a 'unique assembly code' that when used to disassemble the string will reveal whether the string is executable or gibberish?
 
what's standard assembly? machine code in binaries is platform specific but it needs to be packaged properly for OS that runs on the platform.

i don't understand the second question. you can always try running objdump and see if it spits out sane machine code.
 
You'd have to know what CPU architecture the assembly code was for. Assuming you know that, you can decode the binary "string" and determine if its valid or not.
 
Originally posted by: her209
You'd have to know what CPU architecture the assembly code was for. Assuming you know that, you can decode the binary "string" and determine if its valid or not.

Exactly, a binary code can be an instruction for one architecture and gibberish for another architecture.
 
Back
Top