aboutsummaryrefslogtreecommitdiffstats
path: root/pySim/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'pySim/commands.py')
-rw-r--r--pySim/commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pySim/commands.py b/pySim/commands.py
index df23393..a959851 100644
--- a/pySim/commands.py
+++ b/pySim/commands.py
@@ -621,3 +621,7 @@ class SimCardCommands(object):
negotiated_duration_secs = decode_duration(data[:4])
resume_token = data[4:]
return (negotiated_duration_secs, resume_token, sw)
+
+ def get_data(self, tag: int, cla: int = 0x00):
+ data, sw = self._tp.send_apdu('%02xca%04x00' % (cla, tag))
+ return (data, sw)