githubEdit

Database Navigation

Database Navigation

MONGODB SHELL NAVIGATION

Commands

1)

mongo
mongo "mongodb://localhost:27017"

2)

show databases;

3)

use DATABASE;

4)

show tables;

5)

db.TABLE.find() (Dump everything from table)

More commands

> use <DATABASE>;
> show tables;
> show collections;
> db.system.keys.find();
> db.users.find();
> db.getUsers();
> db.getUsers({showCredentials: true});
> db.accounts.find();
> db.accounts.find().pretty();
> use admin;
> show dbs # List databases
> use <db> # Switch to the desired database
> show collections # List collections in the selected database
> db.<collection>.find() # Dump the contents of a collection
> db.<collection>.count() # Get the number of records in the collection
> db.current.find({"username":"admin"}) # Search for a specific user

MYSQL SHELL NAVIGATION

1)

2)

3)

4)

5)

6) Drop a shell

7) Update a user's password in the database (requires root access or database ownership privileges)

For root authentication there is a small detail:

POSTGRESQL SHELL NAVIGATION

1)

2)

3)

4)

5)

6)

7)

REDIS-CLI SHELL NAVIGATION

1)

2)

More commands

Enter our own SSH key to server

KPCLI SHELL NAVIGATION (ALTERNATIVE: KEEPASS2 WHICH IS A GUI)

1)

2)

3)

4)

5)

MSSQL SHELL NAVIGATION (sqsh)

1)

SQLCMD

1)

2)

SQLITE3

1)

2)

3)

OPENQUERY

Binary Extraction as Base64

Last updated