# SQLite Pentesting

### Interpreter <a href="#interpreter" id="interpreter"></a>

```shellscript
sqlite3 sample.db
sqlite3 sample.sqlite
sqlitebrowser sample.db
```

### Commands <a href="#commands" id="commands"></a>

```shellscript
# Help
sqlite> .help

# Show databases
sqlite> .databases

# Show tables
sqlite> .tables

# Show table information
sqlite> PRAGMA table_info(table_name);

# Dump contents of tables
sqlite> .dump <table>

# SQL commands to display values in the table
sqlite> SELECT * FROM <table>;
# Display values in Hex
sqlite> SELECT HEX(column_name) FROM <table>;

# Exit the interpreter
sqlite> .quit
```
