The repository source code for the "have I been pwnt" service for the Milk Sad disclosure process.
Go to file
Ryan Heywood 0625c2672a
mnemonic-hash-checker: use state over extension
2023-08-05 21:34:17 -05:00
mnemonic-hash-checker mnemonic-hash-checker: use state over extension 2023-08-05 21:34:17 -05:00
mock Initial commit 2023-07-30 20:49:44 -04:00
postgres Initial commit 2023-07-30 20:49:44 -04:00
.gitignore Initial commit 2023-07-30 20:49:44 -04:00
README.md Initial commit 2023-07-30 20:49:44 -04:00

README.md

Milk Sad Lookup

Insert many rows of sha256 hashes into a Postgres database.

  1. Install postgress-client:
sudo apt install postgres-client
  1. Install Docker
  2. Install Python dependencies:
pip install psycopg2
  1. Run the database via Docker:
./mock/postgres.sh
  1. Configure the database:
  • Log into psql shell:
psql -h localhost -p 5432 -U postgres

Password: test

  • Create Database, table, and index:
postgres=# CREATE DATABASE hashes;
postgres=# \c hashes;
hashes=# CREATE TABLE hashes(id BYTEA);
hashes=# CREATE INDEX hashes_id on hashes(id);
  1. Hammer time:
./mock/insert_into.py