Skip to content

Instantly share code, notes, and snippets.

@EdoardoVignati
Created September 20, 2018 09:03
Show Gist options
  • Save EdoardoVignati/64f2c864e70d8120e55d1b8253467c2b to your computer and use it in GitHub Desktop.
Save EdoardoVignati/64f2c864e70d8120e55d1b8253467c2b to your computer and use it in GitHub Desktop.
Get shellcode from objdump
objdump -d $1 | grep '[0-9a-f]:' | grep -v 'file' | cut -f2 -d: | cut -f1-6 -d ' '| tr -s ' '| tr '\t' ' '| sed 's/ $//g' | sed 's/ /\\x/g' | paste -d '' -s | sed 's/^/"/' | sed 's/$/"/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment