Spaces:
Running
Running
File size: 4,422 Bytes
a198751 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
import hashlib
import ecdsa
import time
from multiprocessing import Pool, cpu_count
# 1. ข้อมูลเป้าหมายจากพัซเซิลเบอร์ 71
TARGET_RIPEMD160 = "f6f5431d25bbf7b12e8add9af5e3475c44a0a5b8"
START_HEX = "40000000000000000"
END_HEX = "7ffffffffffffffff"
# 2. พิกัดเริ่มต้นของคุณและเป้าหมายการรัน (ปลอดภัยที่ 10 ล้านคีย์ต่อครั้ง)
PROGRESS_PERCENT = 66.75380767327
TOTAL_KEYS_TO_RUN = 10_000_000
def check_key_range_stealth(args):
""" ฟังก์ชันสแกนคีย์แบบหลบเลี่ยงการใช้ทรัพยากรเกินขีดจำกัด """
start, end = args
ripemd160_obj = hashlib.new('ripemd160')
count = 0
for current_key in range(start, end):
count += 1
# [เทคนิคหลบภัยที่ 1] ทุกๆ 1,000,000 คีย์ ให้หยุดพัก 1 วินาที
# เพื่อให้กราฟ CPU ดรอปตัวลง ระบบตรวจจับจะไม่มองว่าเป็นบอทรันเต็มพิกัดตลอดเวลา
if count % 1_000_000 == 0:
time.sleep(1.0)
priv_bytes = current_key.to_bytes(32, byteorder='big')
# แปลงพิกัดแบบประหยัดพลังงาน
sk = ecdsa.SigningKey.from_string(priv_bytes, curve=ecdsa.SECP256k1)
vk = sk.verifying_key
x_str = vk.to_string()[:32]
if vk.pubkey.point.y() % 2 == 0:
pub_key_compressed = b'\x02' + x_str
else:
pub_key_compressed = b'\x03' + x_str
# แฮชตรวจสอบ
sha256_hash = hashlib.sha256(pub_key_compressed).digest()
r160 = ripemd160_obj.copy()
r160.update(sha256_hash)
current_hash = r160.hexdigest()
if current_hash == TARGET_RIPEMD160:
return current_key
return None
if __name__ == '__main__':
# คำนวณจุดเริ่มต้นจริงตามสูตรเปอร์เซ็นต์
absolute_start = int(START_HEX, 16)
absolute_end = int(END_HEX, 16)
total_range_size = absolute_end - absolute_start
offset = int(total_range_size * (PROGRESS_PERCENT / 100))
custom_start_key = absolute_start + offset
custom_end_key = custom_start_key + TOTAL_KEYS_TO_RUN
print(f"[*] เปิดใช้งานโหมดคำนวณแบบปลอดภัย (Stealth Mode)")
print(f"[*] ตรวจสอบพิกัดเป้าหมาย: {PROGRESS_PERCENT}%")
print(f"[*] เริ่มค้นหาจาก: {hex(custom_start_key)}")
print(f"[*] สิ้นสุดบล็อกที่: {hex(custom_end_key)}")
print("-" * 60)
# แบ่งงานตามจำนวน Core ของระบบ
num_cores = cpu_count()
chunk_size = TOTAL_KEYS_TO_RUN // num_cores
ranges = []
for i in range(num_cores):
s = custom_start_key + (i * chunk_size)
e = s + chunk_size if i < num_cores - 1 else custom_end_key
ranges.append((s, e))
print(f"[*] จัดคิวงานกระจายไปยัง CPU ทั้ง {num_cores} คอร์...")
print(f"[*] ระบบกำลังประมวลผล (มีลูปหน่วงเวลาอุณหภูมิเครื่อง จะใช้เวลาเพิ่มขึ้นเล็กน้อย)...")
with Pool(num_cores) as pool:
results = pool.map(check_key_range_stealth, ranges)
found_key = next((res for res in results if res is not None), None)
print("-" * 60)
if found_key:
print(f"[+] ความสำเร็จ!! ค้นพบคีย์ที่ถูกต้อง:")
print(f"Private Key (Hex): {hex(found_key)}")
else:
print(f"[!] ตรวจสอบบล็อก 10 ล้านคีย์เสร็จสิ้นเรียบร้อย (ไม่พบพฤติกรรมผิดปกติในระบบ)")
|