syspass / syspass-decrypter Goto Github PK
View Code? Open in Web Editor NEWAn standalone tool for decrypting sysPass exported XML files
License: GNU General Public License v3.0
An standalone tool for decrypting sysPass exported XML files
License: GNU General Public License v3.0
We noticed that wen you have notes on an account that contain a carriage return character, it fails to export that account.
As it doesn't produce an error this wasn't immediately noticeable.
We only noticed it because the records looked a bit off.
Further investigation showed that the records in question all contained this character sequence in the XML:
.
It would be nice if the decrypter would allow to search by client.
For the times when you have to hand over documentation :).
Hello,
we export passwords in cleartext, print them and save them in the vault in case our syspass app and USB backups are somehow destroyed / unavailable.
I tried using the output of the script, but it turns out we have some really wide fields (think long descriptions in notes / urls. Would it be possible to get an option to print the output to a CSV file? In that case, Excel can take care of formating and output is more readable. It also gives us an option to sort accounts.
Thanks!
I may be blind, but I can't find an option to output the decrypted data in any other format than a table like format. Outputing json would be great.
I keep getting the the error "Integrity check failed." if I try to decrypt an XML Export. The version of sysPass is as follows:
3.0 (305.19020701)
Config: 304.19012601
App: 304.19012601
DB: 304.19012601
I have tried with an export password and without. Is this indicating an issue with the master password or something else?
Thanks Rubén :)
Hello!!
When i try to see what it is inside my syspass backup, i find that it is not working.
Please some could help me?
this is the behaviour:
admin@srv:~$ ./syspass-decrypter.phar spd:search-account --xmlpath ./syspass.xml
XML password:
xxxxxx
Master password:
xxxxxxxxxxxxxxx
[info] initialize
[info] Reading XML file "./syspass.xml"
[info] checkFile
[info] readXMLFile
[info] Encrypted XML detected
[info] Processing encrypted data
[error] Ciphertext has invalid hex encoding.
[error] #0 phar:///home/syspass-decrypter.phar/lib/SPDecrypter/Services/XmlReader/XmlParser.php(100): SPDecrypter\Services\XmlReader\XmlParser->processEncrypted()
#1 phar:///home/syspass-decrypter.phar/lib/SPDecrypter/Commands/SearchAccountCommand.php(119): SPDecrypter\Services\XmlReader\XmlParser->initialize()
#2 phar:///home/syspass-decrypter.phar/vendor/symfony/console/Command/Command.php(255): SPDecrypter\Commands\SearchAccountCommand->execute()
#3 phar:///home/syspass-decrypter.phar/vendor/symfony/console/Application.php(921): Symfony\Component\Console\Command\Command->run()
#4 phar:///home/syspass-decrypter.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#5 phar:///home/syspass-decrypter.phar/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#6 phar:///home/syspass-decrypter.phar/lib/SPDecrypter/bootstrap.php(48): Symfony\Component\Console\Application->run()
#7 phar:///home/syspass-decrypter.phar/cli.php(27): require('phar:///home/ad...')
#8 /home/syspass-decrypter.phar(14): require('phar:///home/ad...')
#9 {main}
[error] Error decrypting XML data
Buenas tras lanzar la linea del phar. La version de php que tengo es la 7.3 y el xml esta sacado de un syspass 1-2-beta
La linea que uso es esta.
php syspass-decrypter.phar spd:search-account --xmlpath ./syspass.xml
Me arroja este error:
[error] #0 phar:///root/syspass-decrypter.phar/lib/SPDecrypter/Services/XmlReader/XmlParser.php(83): SPDecrypter\Services\XmlReader\XmlChecker::validateSchema(Object(DOMDocument))
#1 phar:///root/syspass-decrypter.phar/lib/SPDecrypter/Commands/SearchAccountCommand.php(119): SPDecrypter\Services\XmlReader\XmlParser->initialize('./syspass.xml', Object(SPDecrypter\Services\XmlReader\XmlReader), 'Darwin', NULL)
#2 phar:///root/syspass-decrypter.phar/vendor/symfony/console/Command/Command.php(255): SPDecrypter\Commands\SearchAccountCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 phar:///root/syspass-decrypter.phar/vendor/symfony/console/Application.php(921): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 phar:///root/syspass-decrypter.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(SPDecrypter\Commands\SearchAccountCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 phar:///root/syspass-decrypter.phar/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 phar:///root/syspass-decrypter.phar/lib/SPDecrypter/bootstrap.php(48): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 phar:///root/syspass-decrypter.phar/cli.php(27): require('phar:///root/sy...')
#8 /root/syspass-decrypter.phar(14): require('phar:///root/sy...')
#9 {main}
[error] Invalid XML schema
¿Puede ser porque no es compatible por xml o me falta alguna dependencia?
Here's the original thread: #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.
Program does nothing no matter what args I put in. Using PHP 7.2.
C:\Users\user\Desktop\php\phar>syspass-decrypter.phar spd:search-account ./sysPass.xml
sysPass Decrypter 0.1.2-19091501
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
list Lists commands
spd
spd:search-account Search for an account.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.