File all files that invokes the method:
grep -l '\.[[:space:]]*des3key[[:space:]]*(' *
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Do an or check to also find other derived applets | |
| find . -type f -name '*.java' -exec grep -q -E '[[:space:]]+extends[[:space:]]+[a-z,.]*Applet|IdpassApplet[[:space:]]+' {} \; -exec echo {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pad80 is because openssl can only accept input | |
| # from file | |
| pad80() { | |
| [ $# -eq 0 ] && return | |
| local text=$1 | |
| local bs=${2:-8} # blocksize defaults 8 | |
| local len | |
| local len2 | |
| local total | |
| local i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cm> init-update | |
| => 80 50 00 00 08 0C B1 2C F6 96 58 57 70 00 .P.....,..XWp. | |
| (19299 usec) | |
| <= 00 00 83 09 18 02 30 57 05 2F FF 02 02 9C 5B 3A ......0W./....[: | |
| 41 0B 50 89 CC 1D 86 B3 8F 8D 43 AA 90 00 A.P.......C... | |
| Status: No Error | |
| cm> session-info | |
| Session State : Established | |
| Version : Global Platform 2.1.1 | |
| Secure Channel Protocol : SCP 02 option 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| => 00 A4 04 00 00 ..... | |
| (21730 usec) | |
| <= 6F 5C 84 08 A0 00 00 00 03 00 00 00 A5 50 73 4A o\...........PsJ | |
| 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 ..*.H..k.`...*.H | |
| 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC ..k....c...*.H.. | |
| 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 65 k.d...*.H..k..Ue | |
| 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A ...+...Hd...f... | |
| 2B 06 01 04 01 2A 02 6E 01 02 9F 65 01 FF 90 00 +....*.n...e.... | |
| Status: No Error | |
| cm> session-info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- ./status-keycard-java/lib/src/main/java/im/status/keycard/globalplatform/SCP02Wrapper.java 2019-12-05 01:43:09.053108152 +0800 | |
| +++ /tmp/ccc/SCP02Wrapper.java 2019-12-20 21:50:49.323087663 +0800 | |
| @@ -10,7 +10,9 @@ | |
| * Adds a SCP02 MAC to APDUs. | |
| */ | |
| public class SCP02Wrapper { | |
| - private byte[] macKeyData; | |
| + private SCP02Keys keys; | |
| + public boolean bMAC = true; | |
| + public boolean bENC = false; // temporarily public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void prettyOut(byte[] msg) { | |
| for (int j = 1; j < msg.length+1; j++) { | |
| if (j % 32 == 1 || j == 0) { | |
| if( j != 0){ | |
| System.out.println(); | |
| } | |
| System.out.format("0%d\t|\t", j / 8); | |
| } | |
| System.out.format("%02X", msg[j-1]); | |
| if (j % 8 == 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0B68656C6C6F20776F726C64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jarhead() { | |
| for f in *.jar;do | |
| x=${f%'.jar'} | |
| mkdir $x | |
| mv $f $x | |
| cd $x | |
| unzip $f | |
| rm $f | |
| cd .. | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| install: Missing mandatory argument: | |
| [-e|--delegation] | |
| [-l|--cm-lock] | |
| [-t|--terminate] | |
| [-d|--default] | |
| [-p|--pin-change] | |
| [-s|--security-domain] | |
| [-b|--sd-dap] | |
| [-m|--mandated-dap] | |
| [-r|--trusted-path] |