This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -z "$PGHOST" ]; then | |
export PGHOST=localhost | |
fi | |
if [ -z "$PGPORT" ]; then | |
export PGPORT=5432 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: ./crack-keepassxc.sh passwords.kdbx dict.txt | |
# | |
# The dictionary file can be generated with: | |
# https://github.com/TimurKiyivinski/permutatify | |
while read -r password; do | |
echo "Using password: \"$password\"" | |
echo "$password" | keepassxc-cli db-info "$1" && exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gen.go | |
// This code is derived from the article | |
// https://golang.design/research/pointer-params | |
// and modified to fit my needs. | |
package main | |
import ( | |
"bytes" |