Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it to work #3

Open
raithedavion opened this issue Oct 5, 2016 · 4 comments
Open

Can't get it to work #3

raithedavion opened this issue Oct 5, 2016 · 4 comments

Comments

@raithedavion
Copy link

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
@egru
Copy link
Member

egru commented Oct 5, 2016

I'll take a look at it again

@raithedavion
Copy link
Author

Thanks, I appreciate it!

@Barriuso
Copy link

Me too, I have the same problem.

@egru
Copy link
Member

egru commented Oct 25, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants