2024-12-12 02:33:06 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Check if the user has provided the Bitcoin address
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "Usage: $0 <bitcoin_address>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Set the target Bitcoin address
|
|
|
|
target_address="$1"
|
|
|
|
|
|
|
|
# Set the output file
|
|
|
|
output_file="found_addresses.txt"
|
|
|
|
|
|
|
|
# Initialize page number
|
|
|
|
page_number=1
|
|
|
|
|
|
|
|
# Loop to search through pages
|
|
|
|
while true; do
|
2024-12-12 02:52:46 -06:00
|
|
|
echo searching... page $page_number out of approx 1929868153955269923726183083478131797547292737984581739710086052358636024906
|
2024-12-12 02:47:04 -06:00
|
|
|
echo $page_number > last_progress.txt
|
2024-12-12 02:33:06 -06:00
|
|
|
# Fetch the page content
|
2024-12-12 02:47:04 -06:00
|
|
|
page_content=$(curl "https://privatekeyfinder.io/private-keys/bitcoin/$page_number")
|
2024-12-12 02:33:06 -06:00
|
|
|
|
|
|
|
# Check if the target address is in the page content
|
|
|
|
if echo "$page_content" | grep -q "$target_address"; then
|
|
|
|
# Output to console and also append to the output file
|
|
|
|
echo "Address found: $target_address on page $page_number"
|
|
|
|
echo "$target_address found on page $page_number" >> "$output_file"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Increment page number for next iteration
|
|
|
|
((page_number++))
|
2024-12-12 02:47:04 -06:00
|
|
|
sleep $((RANDOM % 5))
|
|
|
|
done
|