05-23-2021, 08:38 PM
hello,
forgive me if there was such question before but I could not find here something similar. I have salt and encrypted message (hash), here is JavaScript example decrypting the message:
so the decrypted message is not the password but arrays of strings, always begins like above. Is it possible to do it in hashcat?
I started new module based on src/modules/module_10900.c as the algorithms looks similar to me.
forgive me if there was such question before but I could not find here something similar. I have salt and encrypted message (hash), here is JavaScript example decrypting the message:
Code:
var password = "hashcat123";
var passwordSHA256 = Crypto.SHA256(password);
var passwordBase64 = Crypto.util.bytesToBase64(Crypto.util.hexToBytes(passwordSHA256));
var salt = Crypto.util.base64ToBytes("<salt in base64>");
var key = Crypto.PBKDF2(passwordBase64, salt, 32, { hasher: Crypto.SHA256, asBytes: true, iterations: 5000 });
var message = "<smaller or bigger message in base64>";
var decrypted = Crypto.AES.decrypt(message, key, { mode: new Crypto.mode.CBC(Crypto.pad.iso10126), iterations: 20000 });
JSON.stringify(decrypted);
"\"{\\\"guid\\\":\\\".....rest of the message
so the decrypted message is not the password but arrays of strings, always begins like above. Is it possible to do it in hashcat?
I started new module based on src/modules/module_10900.c as the algorithms looks similar to me.