Code Monkey home page Code Monkey logo

syspassexporttool's Introduction

SYSPASS EXPORT TOOL

Table of Contents

  1. Introduction
  2. Requirements
  3. How to use the tool
  4. Structure of the exported file
  5. Related install infos
    1. Install syspass on docker
    2. Install syspass export tool software requirements

Introduction

The tool allows to export the syspass(https://www.syspass.org/) database passwords and some linked infos into a CSV or JSON file.

Requirements

To use this tool you need:

  1. the possibility to access to the syspass database
  2. the masterkey of syspass

How to use the tool

Before start install the requirements software

Use the tool:

  1. enter in the syspassExportTool folder
  2. run the command: php export.php <MASTERKEY-PASSWORD>
  3. wait for the message: FILE CREATED!

Structure of the exported file

The CSV or JSON columns foreach exported account are:

  • id
  • User Group
  • User Name
  • Client Name
  • Account Name
  • login
  • url
  • pass
  • key
  • notes
  • dateAdd
  • isPrivate
  • isPrivateGroup
  • passDate
  • passDecrypt <== this value represent the DECRYPTED PASSWORD
  • tags

Related install infos

Install syspass on docker

  1. clone the project: git clone https://github.com/fabiottini/syspassExportTool.git
  2. run the docker-compose in the docker folder: docker-compose up -d
  3. when all of 3 containers are up and running go to web interface to continue the installation http://127.0.0.1:3000:
    • CONFIGURE BBDD section:
      • User: root
      • Password: (the same as docker-compose file)
      • database name: syspass
      • Server BBDD for syspass: db
  4. At the end of syspass installation, i suggesto to apply this FIX to allows syspass to run without database connection problem.
    • THE PROBLEM:
      Sometimes when you restart the container the syspass container ip change and the syspass application CAN NOT access to the db that have internally a fixed ip for the syspass user.
    • The steps to apply the FIX are:
      1. open the page: http://127.0.0.1:3003 (phpmyadmin interface)
      2. enter with (or those you fillin in the docker-compose file):
        • username: root
        • password: syspass
      3. enter in the Accounts Users section and change the host permission of the user sp_<some code> to %
  5. run docker-compose down to switch off all the container
  6. comment in the file docker-compose.yml the phpmyadmin section (for more security):
  # phpmyadmin: 
  #   image: phpmyadmin/phpmyadmin
  #   container_name: passwordDBPHP
  #   depends_on:
  #     - db
  #   links: 
  #     - db
  #   ports:
  #     - 3003:80
  #   environment:
  #     - MYSQL_ROOT_PASSWORD: syspass
  1. enjoy syspass

Install syspass export tool software requirements

  1. enter in syspassExportTool folder
  2. Install Composer and mysql for php:
    1. apt update && apt-get install curl php-cli php-mbstring php7.0-mysql git unzip
    2. curl -sS https://getcomposer.org/installer -o composer-setup.php
    3. php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    4. composer require
  3. Edit the mysql parameters in the export.php file:
$hostname   ="127.0.0.1";
$port       ="3002";
$dbname     ="syspass";
$user       ="root";
$password   ="syspass";

syspassexporttool's People

Contributors

fabiottini avatar

Watchers

 avatar

Forkers

hongi

syspassexporttool's Issues

Notes field still encoded

The notes field in the export file still appears to be encoded all notes fields start with def50200.... but I can not figure out what the format is in order to decode it back to text.

Error with variable pass & password

In export.php you are using "$pass" and then "$password" wich result in errors when trying to connect to the DB

Here is the correct version :

function db_connect($hostname, $port, $dbname, $user, $password) { try { $db = new PDO("mysql:host=$hostname;port=$port;dbname=$dbname", $user, $password); return $db; } catch (PDOException $e) { printMSG("Error: " . $e->getMessage()); return null; } }

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.