Code fun
66 subscribers
1 link
maybe nothing ..
Maybe there's not much to hide ..
Download Telegram
✅️
from pywallet import wallet


wallet_name = 'bitcoin_wallet.json'
wallet_path = '/path/to/your/wallet/' + wallet_name

def search_for_bitcoin_keys():
    keys_with_balance = []
    w = wallet.Wallet(wallet=wallet_path)
   
    for key in w.get_keys():
        balance = w.get_balance_for_address(key.get('address'))
        if balance > 0:
            keys_with_balance.append(key)
              with open('bitcoin_keys_with_balance.txt', 'w') as f:
        for key in keys_with_balance:
            f.write(f"Address: {key.get('address')}, Private Key: {key.get('wif')}\n")

if __name__ == "__main__":
    search_for_bitcoin_keys()
👍3
import ecdsa
import hashlib
bitcoin_address = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
def convert_to_binary(address):
    binary = ""
    for digit in address:
        binary += bin(int(digit, 16))[2:].zfill(4)
    return binary
def extract_private_key_from_address(bitcoin_address):
    binary_address = convert_to_binary(bitcoin_address)
    sha256_digest = hashlib.sha256(binary_address.encode()).hexdigest()
   
    sk = ecdsa.SigningKey.from_string(bytes.fromhex(sha256_digest), curve=ecdsa.SECP256k1)
   
    return sk.to_string().hex()

private_key = extract_private_key_from_address(bitcoin_address)
print("Private Key: " + private_key)
import hashlib
import base58
import codecs

ethereum_address = input("Enter Ethereum Address: ")

def reverse_entropy(ethereum_address):
    ethereum_address = ethereum_address[2:]
    hashed_address = hashlib.sha256(codecs.decode(ethereum_address, 'hex')).hexdigest()
    reversed_address = hashed_address[::-1]
    return reversed_address

def address_to_private_key(ethereum_address):
    extended_address = "80" + ethereum_address[2:]
    hashed_address = hashlib.sha256(hashlib.sha256(codecs.decode(extended_address, 'hex')).digest()).hexdigest()
    checksum = hashed_address[:8]

    full_key = extended_address + checksum
    private_key_bytes = codecs.decode(full_key, 'hex')

    private_key = base58.b58encode(private_key_bytes).decode()
    return private_key

reversed_entropy = reverse_entropy(ethereum_address)
private_key = address_to_private_key(ethereum_address)

print("Reversed Entropy: ", reversed_entropy)
print("Private Key: ", private_key)

with open("private_key.txt", "w") as file:
    file.write(private_key)

print("Private key has been saved in private_key.txt file")
import hashlib
import base58

bitcoin_address = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"

def reverse_entropy(bitcoin_address):
    hashed_address = hashlib.sha256(bitcoin_address.encode()).hexdigest()
    reversed_address = hashed_address[::-1] 
    return reversed_address

def address_to_private_key(bitcoin_address):
    extended_address = "80" + bitcoin_address 
    hashed_address = hashlib.sha256(hashlib.sha256(extended_address.encode()).digest()).hexdigest()
    checksum = hashed_address[:8] 
    full_key = extended_address + checksum
    private_key_bytes = bytes.fromhex(full_key)
   
    private_key = base58.b58encode(private_key_bytes).decode()
    return private_key

reversed_entropy = reverse_entropy(bitcoin_address)
private_key = address_to_private_key(bitcoin_address)

print("Reversed Entropy: ", reversed_entropy)
print("Private Key: ", private_key)
1
from bitcoin.wallet import CBitcoinSecret
from bitcoin.base58 import CBase58Error, encode

def decode_bitcoin_address(address):
    try:
        secret = CBitcoinSecret.from_base58(address)
        private_key_hex = secret.get_secret_bytes().hex()
        with open('C:/good.txt', 'w') as file:
            file.write(private_key_hex)
            print("Private key saved successfully")
    except CBase58Error:
        print("Invalid Bitcoin Address")

address = input("Enter a Bitcoin Address: ")
decode_bitcoin_address(address)
Morally, you are only allowed to use these codes if you are a member of this channel;
Note: Codes may need minor editing.
If you get a result, you can send the code that you edited to be posted on the channel.
The id or link related to the channel will be posted at the right time Due to the volume of messages, response will be limited
import hashlib
import base58
import codecs

ethereum_address = input("Enter Ethereum Address: ")

def reverse_entropy(ethereum_address):
    ethereum_address = ethereum_address[2:]
    hashed_address = hashlib.sha256(codecs.decode(ethereum_address, 'hex')).hexdigest()
    reversed_address = hashed_address[::-1]
    return reversed_address

def address_to_private_key(ethereum_address):
    extended_address = "80" + ethereum_address[2:]
    hashed_address = hashlib.sha256(hashlib.sha256(codecs.decode(extended_address, 'hex')).digest()).hexdigest()
    checksum = hashed_address[:8]

    full_key = extended_address + checksum
    private_key_bytes = codecs.decode(full_key, 'hex')

    private_key = base58.b58encode(private_key_bytes).decode()
    return private_key

reversed_entropy = reverse_entropy(ethereum_address)
private_key = address_to_private_key(ethereum_address)

print("Reversed Entropy: ", reversed_entropy)
print("Private Key: ", private_key)

with open("private_key.txt", "w") as file:
    file.write(private_key)

print("Private key has been saved in private_key.txt file")
2👍1🎃1
import base58

def private_key_to_wif(private_key):
    extended_key = "80" + private_key
    first_hash = hashlib.sha256(bytes.fromhex(extended_key)).hexdigest()
    second_hash = hashlib.sha256(bytes.fromhex(first_hash)).hexdigest()
    checksum = second_hash[:8]
    final_key = extended_key + checksum

    return base58.b58encode(bytes.fromhex(final_key)).decode()

wif_key = private_key_to_wif(private_key)
print("WIF Key: " + wif_key)
from bit import Key
import os
import ecdsa
import binascii

def prikey():
    return binascii.hexlify(os.urandom(32)).decode('utf-8')

def pubkey(prikey):
    prikey = binascii.unhexlify(prikey)
    sign = ecdsa.SigningKey.from_string(prikey, curve=ecdsa.SECP256k1)
    return '04' + binascii.hexlify(sign.verifying_key.to_string()).decode('utf-8')

def address(pubkey):
    pass

def check_address_in_file(address, file_name):
    with open(file_name, 'r') as f:
        addresses = f.read().splitlines()
    return address in addresses

def save_to_file(data, file_name):
    with open(file_name, 'a') as f:
        f.write(data + 'n')

def main():
    known_addresses_file = 'known_addresses.txt' 
    results_file = 'matches_found.txt' 

    while True:
        data = {}
        data['private_key'] = prikey()
        data['public_key'] = pubkey(data['private_key'])
        data['address'] = address(data['public_key'])
       
        if check_address_in_file(data['address'], known_addresses_file):
            data['wif_private_key'] = Key.from_hex(data['private_key']).to_wif()
            print(f"Match found! Address: {data['address']}")
            save_to_file(json.dumps(data), results_file)

if __name__ == '__main__':
    print("Brute forcing Bitcoin addresses...")
    main()
👍2
import random
import threading
from bip39 import mnemonic

loop
stop_generation = threading.Event()
mnemonic_counter = 0 

def generate_mnemonic():
    words = mnemonic.generate(strength=128)
    return words

def save_mnemonic_to_file(mnemonic):
    with open('mnemonics.txt', 'a') as file:
        file.write(mnemonic + 'n')

def generate_and_save_mnemonic():
    global mnemonic_counter 
    while not stop_generation.is_set():
        words = generate_mnemonic()
        save_mnemonic_to_file(words)
        mnemonic_counter += 1 

def start_generating():
    stop_generation.clear()
    threading.Thread(target=generate_and_save_mnemonic).start()

def stop_generating():
    stop_generation.set()

def main():
    global mnemonic_counter
    while True:
        command = input("Enter 'start' to begin generating, 'stop' to end, or 'exit' to quit: ").lower()
        if command == 'start':
            if not stop_generation.is_set():
                print("Mnemonic generation is already running.")
            else:
                start_generating()
                print("Mnemonic generation started.")
        elif command == 'stop':
            stop_generating()
            print(f"Mnemonic generation stopped. {mnemonic_counter} mnemonics were generated.")
        elif command == 'exit':
            stop_generating()
            print(f"Exiting program. {mnemonic_counter} mnemonics were generated in total.")
            break
        else:
            print("Invalid command.")

if __name__ == '__main__':
    main()


Bip39 generate
import binascii
import hashlib
import random
import time
from bitstring import BitArray
import pyopencl
import rpyc
from ecdsa import SECP256k1

def generate_private_key():
  """
  Generates a random 256-bit private key using GPU.
  """
  ctx = pyopencl.create_some_context()
  queue = ctx.create_command_queue()
  mf = pyopencl.mem_flags
  prg = pyopencl.Program(ctx, """
    kernel void generate_private_key(global uint64 *private_key) {
      private_key[0] = pyopencl.random.rand(queue);
    }
  """).build()
  private_key_buffer = pyopencl.Buffer(ctx, mf.WRITE_ONLY, private_key.nbytes)
  prg.generate_private_key(queue, private_key_buffer.size, None, private_key_buffer)
  private_key = private_key_buffer.read(queue)
  return private_key

def generate_public_key(private_key):
  """
  Generates a public key from a private key using GPU.
  """
  ctx = pyopencl.create_some_context()
  queue = ctx.create_command_queue()
  mf = pyopencl.mem_flags
  prg = pyopencl.Program(ctx, """
    kernel void generate_public_key(global uint64 *private_key, __global uint64 *public_key) {
      public_key[0] = private_key[0] * 7;
    }
  """).build()
  private_key_buffer = pyopencl.Buffer(ctx, mf.READ_ONLY, private_key.nbytes)
  public_key_buffer = pyopencl.Buffer(ctx, mf.WRITE_ONLY, public_key.nbytes)
  prg.generate_public_key(queue, private_key_buffer.size, None, private_key_buffer, public_key_buffer)
  public_key = public_key_buffer.read(queue)
  sk = SECP256k1.SigningKey.from_secret_exponent(private_key)
  vk = sk.get_verifying_key()
  public_key_bytes = vk.to_string()
  public_key_address = "bc1" + binascii.hexlify(public_key_bytes).decode("utf-8")[0:40]
 
  return public_key_address

def compare_addresses(address, address_file):
  """
  Compares an address with a list of addresses in a file.
  """
  with open(address_file, "r") as f:
    addresses = f.readlines()
    if address in addresses:
      return True
    else:
      return False

def save_private_key(private_key, private_key_file):
  """
  Saves a private key to a file.
  """
  with open(private_key_file, "w") as f:
    f.write(str(private_key))

def main():
  """
  The main function.
  """
  start_time = time.time()
  private_key = generate_private_key()
  address.
  public_key_address = generate_public_key(private_key)
  address_file = "addresses.txt"
  address_found = compare_addresses(public_key_address, address_file)
  if address_found:
    private_key_file = "private_keys.txt"
    save_private_key(private_key, private_key_file)
 
  end_time = time.time()
  print(f"Total execution time: {end_time - start_time} seconds")
1👍1👏1
import binascii
import hashlib
import random
import time
import os

from bitstring import BitArray
import pyopencl
import rpyc
from ecdsa import SECP256k1

def generate_private_key():
  """
  Generates a random 256-bit private key using GPU.
  """

def generate_public_key(private_key):
  """
  Generates a public key from a private key using GPU.
  """

def save_key_to_new_file(private_key, compressed_address, uncompressed_address):
  """
  Saves the private key, compressed address, and uncompressed address to a new file.
  """
  filename = f"new_key_{compressed_address}.txt"
  if not os.path.exists(filename):
    with open(filename, "w") as f:
      f.write(f"private_key: {private_key}\n")
      f.write(f"compressed_address: {compressed_address}\n")
      f.write(f"uncompressed_address: {uncompressed_address}\n")

def check_and_save_key(private_key, compressed_address, uncompressed_address, addresses_file):
  """
  Checks if the address exists in the addresses file and saves the key to a new file if it does.
  """
  with open(addresses_file, "r") as f:
    existing_addresses = f.read().splitlines()

  if compressed_address in existing_addresses or uncompressed_address in existing_addresses:
    save_key_to_new_file(private_key, compressed_address, uncompressed_address)

def main():
  """
  The main function.
  """
  start_time = time.time()
  private_key = generate_private_key()
  compressed_address, uncompressed_address = generate_public_key(private_key)

the addresses file and save the key to a new file if it does.
  addresses_file = "bitcoin_addresses.txt"
  check_and_save_key(private_key, compressed_address, uncompressed_address, addresses_file)

  end_time = time.time()
  print(f"Total execution time: {end_time - start_time} seconds")

if name == "main":
  main()
23
3