sysPass / syspass-decrypter

An standalone tool for decrypting sysPass exported XML files
GNU General Public License v3.0
6 stars 6 forks source link

(AGAIN) Decrypter doesn't seem to work? Probably my fault, but not sure where I messed up. "[error] Invalid XML schema" #5

Closed CeliaTatu closed 4 years ago

CeliaTatu commented 4 years ago

Here's the original thread: https://github.com/sysPass/syspass-decrypter/issues/2

Similar error to the thread linked above. Here's the command I type out, and the output: https://pastebin.com/nJSGiHLb

Running this command and then hitting enter for when it asks for the XML password (instead of typing one in) results in the same output.

php syspass-decrypter.phar spd:search-account --xmlpath ./syspass.xml --withCategories=yes --wide=yes --masterPassword [MASTER PASSWORD HERE]

As you can see from the Pastebin, I'm getting this error again:

[error] Invalid XML schema


Here's the command I run, and the associated output, using xmllint, based on the previous conversation

[root@localhost ~]# xmllint --schema syspass.xsd syspass.xml --noout syspass.xml:8: element Group: Schemas validity error : Element 'Group': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '1'. syspass.xml:8: element Group: Schemas validity error : Element 'Group': '' is not a valid value of the atomic type 'NonEmptyString'. syspass.xml:9: element Hash: Schemas validity error : Element 'Hash': The attribute 'sign' is required but missing. syspass.xml fails to validate [root@localhost ~]#


When I use this command (vim syspass.xml), here is what is located on lines 8 and 9:

8: <Group id="1"/> 9: <Hash>**ThisIsAFakeHash**</Hash>


Now I am stuck. I'm not really sure what to do past this. I get the feeling that mcrypt was installed improperly, however, I don't think so because I installed mcrypt on Windows and CentOS, and both give the same error.

CeliaTatu commented 4 years ago

The fix for me: Upgrade to a newer version to a newer version of Syspass (3.0).

After that upgrade, I was able to use Syspass-decrypter.