Browse Source

Fix glaring oversight.

Thomas Kerber 2 years ago
parent
commit
79067e85b1
3 changed files with 3 additions and 2 deletions
  1. 1
    1
      Cargo.lock
  2. 1
    1
      Cargo.toml
  3. 1
    0
      src/extract.rs

+ 1
- 1
Cargo.lock View File

@@ -1,6 +1,6 @@
1 1
 [root]
2 2
 name = "troll"
3
-version = "0.4.1"
3
+version = "0.4.2"
4 4
 dependencies = [
5 5
  "env_logger 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
6 6
  "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",

+ 1
- 1
Cargo.toml View File

@@ -1,6 +1,6 @@
1 1
 [package]
2 2
 name = "troll"
3
-version = "0.4.1"
3
+version = "0.4.2"
4 4
 authors = ["Thomas Kerber <thomas@tkerber.org>"]
5 5
 
6 6
 [dependencies]

+ 1
- 0
src/extract.rs View File

@@ -206,6 +206,7 @@ pub fn main(args: Vec<String>) {
206 206
     let mut opts = Options::new();
207 207
     opts.optopt("p", "pin", "sets the verify apdu pin in hex, with the first byte being the PIN id. (e.g. 813132333435 corresponds to the APDU 00200081053132333435)", "PIN");
208 208
     opts.optopt("c", "cla", "sets the cla byte to use when extracting files. Specified as a single hex byte.", "CLA");
209
+    opts.optopt("", "apdumap", "specifies rules to rewrite apdus. Rules are comma sperated, and have the for '<ORIG CLA><ORIG INS>-><NEW CLA><NEW INS>'. Example: --apdumap 00a4->3030,00b0->3031", "RULES");
209 210
     opts.optopt("r", "reader", "specifies the reader to use. Uses the first reader with the given string as part of its name.", "READER");
210 211
     opts.optflag("h", "help", "prints this help text");
211 212
     opts.optflag("", "data-each-file", "Try to access every data element for each file.");

Loading…
Cancel
Save