How to Disassemble and Filter Out Static Jumps in Program Output with Bash
My program outputs encoded instructions, and each line represents an independent set of instructions, like this:
So each line consists of 7 bytes of encoded instructions, and I need to disassemble each of them separately as distinct programs. I can also output the binary directly, and in that case, each 7 byte block of instructions must be disassembled individually.
In the bash script that runs my program, I want to filter out lines that contain static jumps. I want to:
How can I disassemble each line of 7 byte instructions separately from
So each line consists of 7 bytes of encoded instructions, and I need to disassemble each of them separately as distinct programs. I can also output the binary directly, and in that case, each 7 byte block of instructions must be disassembled individually.
In the bash script that runs my program, I want to filter out lines that contain static jumps. I want to:
- Disassemble each instruction set from the program output.
- Use a command like
to filter out lines containing certain instructions, likegreploopne.
objdump, but it doesn't accept /dev/stdin as an input file.How can I disassemble each line of 7 byte instructions separately from
stdin and filter out the ones containing static jumps ?