crocs-muni / JCAlgTest

Automated testing tool for algorithms from JavaCard API supported by particular smart card. Performance testing of almost all available methods. The results for more than 100+ cards.
http://jcalgtest.org
MIT License
113 stars 44 forks source link

Automated extraction of constants/methods from newest JavaCard SDK #43

Closed petrs closed 9 years ago

petrs commented 9 years ago
petrs commented 9 years ago
  1. extract class files from jar file (api_classic.jar)

    jar xf api_classic.jar

  2. run jad disassembler for every class file

    FORFILES.exe /s /m *.class /C "cmd /c d:\Apps\JAD\jad.exe @path"

  3. utilize generated *.jad files
petrs commented 9 years ago

No JAD needed, solved using Java reflection. Import JavaCard library of the version you need and run AlgTestProcess.jar with argument "JCCONSTS" (generateJCConstantsFile() method)