I have a binary code and I want to run it.
01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100
How can I create a file "application/x-executable" and execute it on Debian?
I have a binary code and I want to run it.
How can I create a file "application/x-executable" and execute it on Debian? |
|||||||||||||
|
That's just the binary representation of the ascii encoding of "Hello World", not an executable, there's no way to execute that. |
|||||||||||||||||
|
That is actually not executable code. It's simply the binary string content "Hello World" in 8bit ASCII. Since you ask for a program, you could do something like this in C:
|
|||
|
Assuming the eleven sequences of eight zeros and ones are bytes, those bytes have the values:
This could easily represent a program, e.g., for an 8-bit processor like the MOS Technology 6502 or a 32-bit processor like the Inmos T800, but AFAIK not for any processor running Debian (the T800 can run a Unix alike). Converting the values to their ASCII character representation gets you the 11-character string "Hello World". That string, however, is not a program. If you are looking for a program that generates such a string, you might want to start with compiling the following C program:
|
|||||||||||||||||||||
|
If you're asking for a way to decode that binary encoding, you could use
|
|||
|