Created
March 7, 2017 21:50
-
-
Save LeoDJ/03cec735d8ea8241d8e4e91d1d2cc857 to your computer and use it in GitHub Desktop.
ScanMyOpelCAN Android App log decryption [tags decoding deobfuscation =:A:?:B>=7=:;]
This file contains 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
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
class Decrypt | |
{ | |
public static char[] d(byte[] bArr) { //reverse engineered obfuscation pattern | |
int length = bArr.length / 2; | |
if (bArr.length % 2 != 0) { | |
length++; | |
} | |
char[] cArr = new char[length]; | |
for (length = 0; length < bArr.length; length += 2) { | |
cArr[length / 2] = (char) (((byte) (((byte) ((bArr[length] - 65) + 10)) ^ 5)) | (((byte) (((byte) ((bArr[length + 1] - 65) + 10)) ^ 5)) << 4)); | |
} | |
return cArr; | |
} | |
public static void main (String[] args) throws java.lang.Exception | |
{ | |
String log1 = "Obfuscated_log_goes_here_looks_like_this__=:A:?:B>=7=:;:B:?8C9A8<97:@:=8;8B8>"; | |
System.out.println(d(log1.getBytes())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment