The repository source code for the "have I been pwnt" service for the Milk Sad disclosure process.
Go to file
Shane Engelman 51c8b33ca0
Initial commit
2023-07-30 20:49:44 -04: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