We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 159795c commit c1dc8efCopy full SHA for c1dc8ef
asm2sh.sh
@@ -1,4 +1,4 @@
1
#!/bin/bash
2
3
# credit to https://www.commandlinefu.com/commands/view/6051/get-all-shellcode-on-binary-file-from-objdump
4
-objdump -d "$1" | grep '[0-9a-f]:' | grep -v 'file' | cut -f2 -d: | cut -f1-9 -d' ' | tr -s ' ' | tr '\t' ' ' | sed 's/ $//g' | sed 's/ /\\x/g' | paste -d '' -s | sed 's/^/"/' | sed 's/$/"/g'
+objdump -d "$1" | grep '[0-9a-f]:' | grep -v 'file' | cut -f2 -d: | cut -f1-7 -d' ' | tr -s ' ' | tr '\t' ' ' | sed 's/ $//g' | sed 's/ /\\x/g' | paste -d '' -s | sed 's/^/"/' | sed 's/$/"/g'
0 commit comments