Add bk4.sh
This commit is contained in:
parent
88b399704f
commit
fd55528aa2
1 changed files with 33 additions and 0 deletions
33
bk4.sh
Normal file
33
bk4.sh
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/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
|
||||||
|
# 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
|
Loading…
Reference in a new issue