bytes - convert bytes from the command line
Bytes is a command line program intended to convert between some common formats used to contain raw bytes.
Note: This script is currently *very* rough.
input formats:
- -if 00 : bytes represented as hexadecimal numbers in the form 00112233445566779900AABBCCDDEEFF (case insensitive)
- -if x00 : bytes represented as excaped hexadecimal numbers in the form \x00\x11..\xEE\XFF (case insensitive)
- -if raw : raw byte values from the file
- -if hexdump : "hexdump" format
- -if canon : "hexdump -C" format
- -if olly-dump, -f olly-asm : binary copied out of the dump window or the assembly window of ollydbg
- -if perl : perl formatted shellcode
- -if auto : automatically (try to) choose an input encoding
output formats:
- -of raw : raw bytes
- -of 00 : see above
- -of x00 : see above
- -of ascii : outputs a "printable" version of the bytes, this is lossy - unprintable bytes are reduced to spaces.
- -of c-harness: outputs C source code including the bytes as shellcode (experimental)
- A bunch of formats that (somewhat) mimic msfvenom format outputs: -of bash, -of sh, -of c, -of csharp, -of dw, -of dword, -of java, -of num, -of perl, -of pl, -of powershell, -of ps1, -of python, -of ruby, -of rb
Download:
Listing directory https://download.elifulkerson.com/files/bytes/0.3:
bytes May 13 2019 14:33:34 12492 Python script, ASCII text executable
bytes.asc May 13 2019 14:34:24 801 GnuPG signature
bytes.md5 May 13 2019 14:34:24 40 MD5 checksum
bytes.sha1 May 13 2019 14:34:24 48 SHA1 checksum
bytes.sha256 May 13 2019 14:34:24 72 SHA256 checksum
bytes.sha512 May 13 2019 14:34:24 136 SHA512 checksum
↩ Browse the download server
Usage:
bytes myfilename.bin -if raw -of 00 > myfilename.00
Update History:
May 2 2019. 0.1 - Initial version