Code Monkey home page Code Monkey logo

syspass-decrypter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

syspass-decrypter's Issues

Search by client

It would be nice if the decrypter would allow to search by client.
For the times when you have to hand over documentation :).

CSV output

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!

Export in different formats

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.

Integrity check failed.

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?

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

  • O.S: Cent OS 7 Minimal (no GUI)
  • No security policies set
  • Commands used and O.S Mirror: https://pastebin.com/eakfXVut
  • What I've tried: Making syspass-decrypter.phar executable; transferring syspass.xml into same folder as decrypter, making the .xml file password simple; installing PHP7.2;
  • Command used (the masterpassword will be changed, so no fear about me giving it out now): php syspass-decrypter.phar spd:search-account "admin" --xmlpath ./syspass.xml --withCategories=yes --wide=yes --password password --masterPassword dfbY8IEbEOI41IxGPD8p3B2OJ0CNoHyX
  • The error: https://pastebin.com/NNGRvmXW
  • History: Originally had SysPass 3.0 (beta), upgraded to 3.1, and exported the .xml from 3.1, therefore, I don't think I'm experiencing what the other user did, however, the error does appear to be the same
  • Other: Simply running "syspass-decrypter.phar" does not work; I must run "php syspass-decrypter.phar" for the command to work. I have about 400 passwords in my database. I exported the file from the admin account.

Thanks Rubén :)

Error decrypting data (Ciphertext has invalid hex encoding)

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

Error tras ejecutar el .phar

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?

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

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.

Non responsive just shows the version then quits.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.