Coder Social home page Coder Social logo

dbimport's Introduction

DBImport

What's it do

The goal of this project is to be able to mass import many file formats into a unified database containing usernames, passwords, and hashes.

Details

Supported input formats

  • Text files (default accepted separators are : and ,)
    • User provided RE2 regex for text file parsing
    • user:pass:hash
    • user:hash
    • user:pass
    • hash
    • pass
  • CSV

How to use

  • Requires a PostgreSQL database
-p	root path for recursive file import
-i	file with list of input files to read from
-r	remove unnecessary duplicates from database
-u	file to output all unparsed input files (Default STDOUT)
-m	RE2 Regular Expression for text files (use -m and -h flags for requirements)
-dbu	local database user
-dbn	local database name

Suggested usage:

  • use -p to import files recursively from a dump (or collection)
  • use -u to capture unread files. If changes are made later to make the files readable you can use -i to limit the number of checked files
  • use -r unless you really want duplicate records. It may be slightly slower, but the other option is to slowly dedup the entire DB later.

Planned improvements

  • Support for database formats
    • generic SQL
    • sqlite3
    • mysql
    • more?

Pull Requests are welcome!

dbimport's People

Contributors

av-io avatar

Watchers

 avatar

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.