WebLogicPasswordDecryptor icon indicating copy to clipboard operation
WebLogicPasswordDecryptor copied to clipboard

Can't get it to work

Open raithedavion opened this issue 8 years ago • 4 comments

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

  • $ClearText = $Cipher.DoFinal <<<< ($DecodedCipherText)
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : DotNetMethodException

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

  • [System.Text.Encoding]::ASCII.GetString <<<< ($ClearText)
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : DotNetMethodException

raithedavion avatar Oct 05 '16 04:10 raithedavion

I'll take a look at it again

egru avatar Oct 05 '16 15:10 egru

Thanks, I appreciate it!

raithedavion avatar Oct 06 '16 14:10 raithedavion

Me too, I have the same problem.

Barriuso avatar Oct 25 '16 15:10 Barriuso

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.

egru avatar Oct 25 '16 19:10 egru