mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
- Added very basic scripting support to PM3 client-side (proxmark3 application)
- Created several scripts to aid in EML/MFD file conversion - Created script which generates PM3-scripts for emulation based on MFD/EML input files
This commit is contained in:
parent
2115626711
commit
1f947c4b09
6 changed files with 243 additions and 18 deletions
31
client/eml2UPPER.sh
Normal file
31
client/eml2UPPER.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Andrei Costin <zveriu@gmail.com>, 2011
|
||||
# eml2UPPER.sh
|
||||
# Converts PM3 Mifare Classic emulator EML file to UPPER case (for easier comparison in some text-comparison tools)
|
||||
|
||||
# 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 output.eml"
|
||||
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
|
||||
|
||||
tr '[:lower:]' '[:upper:]' < $1 > $2
|
Loading…
Add table
Add a link
Reference in a new issue