This is a modified version of Todd Whiteman's PySimReader code. This modified version allows users to write out arbitrary raw SMS PDUs to a SIM card. Additionally, debugging output has been added to allow the user to view all APDUs that are sent between the SIM card and PySimReader.
# Start the app
# To run with debugging mode enabled
# (This will print out all APDUs sent between the SIM and pySimReader)
python pySimReader.py -d
Requirements: This tool has been tested on Windows XP with Python 2.5 and the ACS ACR 38t SIM reader.
Published date:  06 June 2012