aboutsummaryrefslogtreecommitdiff
path: root/verify_batch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'verify_batch.sh')
-rwxr-xr-xverify_batch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/verify_batch.sh b/verify_batch.sh
new file mode 100755
index 0000000..cba359a
--- /dev/null
+++ b/verify_batch.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -e
+prefix=${1:-wallet-b0b54476db350aa80aa8404d09ad2d2e} # the prefix for all wallets
+n=${2:-5} # the number of wallets in the batch
+passfile=${3:-all_passwords}
+for i in $(seq -f "%03g" 0 $((n - 1))); do
+ ii=$((10#$i))
+ head -n "$((ii + 1))" "$passfile" | tail -n 1 | sed 's/.* = \(.*\)$/\1/g' | ethy.py --pass-stdin $prefix-$i.json > /dev/null
+done