Skip to content

Instantly share code, notes, and snippets.

@OwenChia
Last active March 5, 2017 08:41
Show Gist options
  • Save OwenChia/c8a815e65df3472d1ab8e67b303e5478 to your computer and use it in GitHub Desktop.
Save OwenChia/c8a815e65df3472d1ab8e67b303e5478 to your computer and use it in GitHub Desktop.
extract key from mfd file
#Usage:
# source /path/to/exf.sh
# exf /path/to/m1.mfd
#
#How to remove?
# unset -f exf
#or u can use unfunction in zsh:
# unfunction exf
exf () {(xxd $1 | awk '/[37bf]0:/ && NR <= 64 {print $2 $3 $4, $7 $8 $9}')};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment