The repository source code for the "have I been pwnt" service for the Milk Sad disclosure process.
Go to file
Ryan Heywood 496df4b353
bloom-filter-generator: initial commit using code from milk-sad
2023-08-07 22:34:52 -05:00
bloom-filter-generator bloom-filter-generator: initial commit using code from milk-sad 2023-08-07 22:34:52 -05:00
mnemonic-hash-checker mnemonic-hash-checker: move from postgres to bloom filter 2023-08-07 12:37:40 -05:00
mock Initial commit 2023-07-30 20:49:44 -04:00
postgres initial schema 2023-08-06 13:35:26 -07: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