Post
Topic
Board Altcoin Discussion
Merits 1 from 1 user
Topic OP
💰💰💰 Is it possible to steal Ether from a wallet? 💰💰💰 Yes!
by
Prometheu$
on 11/06/2021, 10:41:28 UTC
⭐ Merited by johhnyUA (1)
Good afternoon, dear members of the forum and colleagues. It just so happened that I, with a cognitive purpose, using some repositories in GITHUB as well as some BASIC knowledge in python, using copy-paste from different sources, created a common script.

It works as follows: It generates a private key, using this information, it generates a wallet address, and with the help of a certain service checks whether the wallet has a balance, if there is, an html file is created, with a private key, wallet address and balance!

The project was conceived with the aim of finding out if it is possible with this method to lose your crypto savings.?!

THE USE OF THIS CODE IS PERMITTED ONLY FOR EDUCATIONAL PURPOSES! STEALING ANOTHER CRYPTOACTIVES IS A CRIME! DO NOT FORGET ABOUT IT!

Source code of the script. There are several bugs in the code. So that people cannot use its functionality to harm themselves.



Code:
import secrets
import sha3
import eth_keys
from eth_keys import keys
import requests # To install from pip
import re
import colorama
from colorama importFore,Back,Style

import ctypes
colorama.init()
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11),7)

x =0

while x<10:
    private_key = str(hex(secrets.randbits(256))[2:])
    private_key_bytes = bytes.fromhex(private_key)
    public_key_hex = keys.PrivateKey(private_key_bytes).public_key
    public_key_bytes = bytes.fromhex(str(public_key_hex)[2:])
    keccak256_of_public_key_bytes = sha3.keccak_256(public_key_bytes).hexdigest()
    public_address = keys.PublicKey(public_key_bytes).to_address()
    checksum = keys.Public.Key(public_key_bytes).to_checksum_address()

    print(Fore.WHITE +'\n Private_key:',private_key,
          Fore.BLUE +'\n Ethereum address:',public_address)
  
    x = x+1
    url ='https://www.blockchain.com/ru/eth/address/'+ str(public_address)
    print(Fore.YELLOW ,url)
    requests.post(url, headers={'UA':'Chrome'}, data={"foo":'bar'})
    res = requests.get(url)
  
    a = str(res.text)
    match = re.findall(r'Oкoнчaтeльный бaлaнc</span></div></div><div class="sc-8sty72-0 bFeqhe"><span class="sc-1ryi78w-0 cILyoi sc-16b9dsl-1 ZwupP u3ufsr-0 eQTRKC" opacity="1">0.00000000 ETH</span>', a)
    zz= len('Oкoнчaтeльный бaлaнc</span></div></div><div class="sc-8sty72-0 bFeqhe"><span class="sc-1ryi78w-0 cILyoi sc-16b9dsl-1 ZwupP u3ufsr-0 eQTRKC" opacity="1">')
    aaaa = str(match)
    bbbb = slice(154,168)
    xxxx = aaaa[bbbb]
    print(Fore.RED, xxxx)
  
    if len(match)==0:
        f1 = open("text1.html",'a')
        f1.write('\n <br>'+ str(private_key))
        f1.write('\n <br>'+ str(public_address)+'<br> <p style="color:red">0.00000000</p> <br>')
        f1.write('\n <br><p style="color:green">+++</p><br>')
        f1.close()