NetSPI / WebLogicPasswordDecryptor

PowerShell script and Java code to decrypt WebLogic passwords
https://blog.netspi.com/decrypting-weblogic-passwords/
MIT License
242 stars 83 forks source link

Can't get it to work #3

Open raithedavion opened 7 years ago

raithedavion commented 7 years ago

Everytime I try to use it (java or powershell version), I get an error regardding padding.

"Exception calling "DoFinal" with "1" argument(s): "pad block corrupted"".

This is when attempting to use your example

PS C:\Users\User1\Desktop\WebLogicPasswordDecryptor-master> Invoke-W ebLogicPasswordDecryptor -SerializedSystemIni C:\SerializedSystemIni.dat -Cipher Text "{3DES}JMRazF/vClP1WAgy1czd2Q==" Exception calling "DoFinal" with "1" argument(s): "pad block corrupted" At C:\Users\User1\Desktop\WebLogicPasswordDecryptor-master\Invoke-W ebLogicPasswordDecryptor.psm1:163 char:33

Exception calling "GetString" with "1" argument(s): "Array cannot be null. Parameter name: bytes" At C:\Users\User1\Desktop\WebLogicPasswordDecryptor-master\Invoke-W ebLogicPasswordDecryptor.psm1:165 char:44

egru commented 7 years ago

I'll take a look at it again

raithedavion commented 7 years ago

Thanks, I appreciate it!

Barriuso commented 7 years ago

Me too, I have the same problem.

egru commented 7 years ago

Unfortunately, I'm not really sure what the problem is. It's working fine for me. I'm guessing there's some weird issue cutting the ciphertext up. You can try opening it in PowerShell ISE and setting some breakpoints to see what the variables hold when passing to other methods.