diff --git a/bk4.sh b/bk4.sh new file mode 100644 index 0000000..d22b42b --- /dev/null +++ b/bk4.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Check if the user has provided the Bitcoin address +if [ -z "$1" ]; then + echo "Usage: $0 " + 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 + # Fetch the page content + page_content=$(curl -s "https://privatekeyfinder.io/private-keys/bitcoin/$page_number") + + # 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++)) +done