From fd55528aa29526621367da575062248c7dcc1703 Mon Sep 17 00:00:00 2001 From: sneedgroup-holder Date: Thu, 12 Dec 2024 08:33:06 +0000 Subject: [PATCH] Add bk4.sh --- bk4.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 bk4.sh 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