mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
maur, thanks to Randy!
This commit is contained in:
parent
9dac59a6be
commit
d738f3171c
2 changed files with 7 additions and 1 deletions
35
tools/pm3_gen_mfsim.sh
Normal file
35
tools/pm3_gen_mfsim.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Andrei Costin <zveriu@gmail.com>, 2011
|
||||
# gen_pm3mfsim_script.sh
|
||||
# Generates Mifare Classic emulation script file that will load a given EML dump into PM3 and start emulation automagically
|
||||
|
||||
# http://www.linuxquestions.org/questions/programming-9/bash-script-parsing-optional-parameters-621728/
|
||||
|
||||
# show program usage
|
||||
show_usage()
|
||||
{
|
||||
echo
|
||||
echo "Usage:"
|
||||
echo "${0##/} input_eml_without_extension output.cmd"
|
||||
exit
|
||||
}
|
||||
|
||||
# Minimum number of arguments needed by this program
|
||||
MINARGS=2
|
||||
|
||||
# get the number of command-line arguments given
|
||||
ARGC=$#
|
||||
|
||||
# check to make sure enough arguments were given or exit
|
||||
if [[ $ARGC -lt $MINARGS ]] ; then
|
||||
echo "Too few arguments given (Minimum:$MINARGS)"
|
||||
echo
|
||||
show_usage
|
||||
fi
|
||||
|
||||
rm $2
|
||||
echo "hf mf eclr" >> $2
|
||||
echo "hf mf eload -f " $1 >> $2
|
||||
echo "hf mf ekeyprn" >> $2
|
||||
echo "hf mf sim --1k -u" `cat $1.eml | (read -n 8 uid; echo $uid)` >> $2
|
Loading…
Add table
Add a link
Reference in a new issue