Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ihebski/db

Bugbounty utility to store list of enumerated subdomains into an sqlite3 db [one liner style / Pipe and save]
https://github.com/ihebski/db

bugbounty database mini-utility sqlite3 subdomain-enumeration

Last synced: about 1 month ago
JSON representation

Bugbounty utility to store list of enumerated subdomains into an sqlite3 db [one liner style / Pipe and save]

Awesome Lists containing this project

README

        

# db
Mini utility to store the list of the enumerated subdomains into an sqlite3 db. [one liner Style ]

![Build Status](https://pbs.twimg.com/media/EiYn1w3XYAAAlN9?format=jpg&name=large)

Status: **Development**
## Features

* Remove duplicates
* Query database
* Clean results
* Pipe results to store data
* Export the saved records

## Chaining tools
You can pipe the tools results into db
> Example :

> subfinder + db
> ![Build Status](https://pbs.twimg.com/media/EiY1Sa1WsAIPSSp?format=jpg&name=large)

# Prod
#### Install Requirements
`sudo pip3 install Flask flask_sqlalchemy loguru uuid fire csv`

> Add it as a bash command
```bash
cp db /usr/bin
chmod +x /usr/bin/db
```

# Usage

| Query | Command |
|--------------------------------------|----------------------------|
| Add list of subdomains | cat subdomains.txt | db or echo subdomains.txt | db |
| Add **ONE** subdmain to database | `db save tesla.com` |
| Search for domain | `db search tesla.com` |
| Get the new added subdomains | `db new` |
| Export list of subdomains | `db export tesla.com` or if csv `db export tesla.com csv` |
| Remove all the database records | `db wipe` |
| Remove records for a specific domain | `db removeall tesla.com` |
| Remove **ONE** record | `db remove tesla.com` |
| Get all the saved records | `db all` |

> PS :
> - Export function uses TXT format by default (if csv is not specified)
> - new arguments shows the latest saved records for that day only