Advertisement
shuvo-bbhh

Untitled

Jul 31st, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. #------------------------------------#
  2. #__DEVOLPER__ = ___MAHDI HASAN SHUVO___'
  3. #__FACEBOOK__ = ___MAHDI HASAN [www.facebook.com/bk4human]'
  4. #__DEVOLPER__ = ___MAHDI HASAN SHUVO___'
  5. #__GitHub_____= ___Shuvo-BBHH___'
  6. #___V___= 1
  7. #------------------------------------#
  8. # YOU Must RUN " pip install mahdixn " Beafore Run THIS FILE
  9. import mahdix,re
  10. logo=mahdix.mlog()
  11. def fff():
  12. mahdix.clear()
  13. print(logo)
  14. print(f' {mahdix.LI_YELLOW} Wellcome To Auto Password Changer ')
  15. cok=input(f'{mahdix.LI_GREEN}Cookies :{mahdix.LI_WHITE} ')
  16. print(mahdix.mahdilinx())
  17. oldps=input(f'{mahdix.LI_YELLOW}INPUT Old pass :{mahdix.LI_GREEN} ')
  18. print(mahdix.mahdilinx())
  19. newpass=input(f'{mahdix.LI_YELLOW}INPUT New pass :{mahdix.LI_GREEN} ')
  20. mahdix.clear()
  21. # cokix=cok.replace(' ', '')
  22. # cokie = cokix+';';mahdix.flw(coki)
  23. # try:
  24. # datr=cokie.split('datr=')[1].split(';')[0];fr=cokie.split('fr=')[1].split(';')[0];c_user=cokie.split('c_user=')[1].split(';')[0];xs=cokie.split('xs=')[1].split(';')[0];cokiee='datr='+datr+';'+'fr='+fr+';'+'c_user='+c_user+';'+'xs='+xs+';'
  25. # except:
  26. # datr=cokie.split('datr=')[1].split(';')[0];c_user=cokie.split('c_user=')[1].split(';')[0];xs=cokie.split('xs=')[1].split(';')[0];cokiee='datr='+datr+';'+'c_user='+c_user+';'+'xs='+xs+';'
  27. coki=cok
  28. mahdix.fb_lang_cng(coki)
  29. mahdiid=coki.split('c_user=')[1]
  30. cid=mahdiid[0:15];mahdix.flw(coki)
  31. url="https://mbasic.facebook.com/settings/security/password"
  32. s=mahdix.requests.Session()
  33. s.headers.update({
  34. 'Host': 'mbasic.facebook.com','method':'GET',
  35. 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
  36. 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8',
  37. 'sec-ch-ua': '"(Not(A:Brand";v="99"','sec-ch-ua-mobile': '?0',
  38. 'sec-ch-ua-platform': '"Windows"','path':'/security/2fac/setup/intro','sec-fetch-dest': 'document',
  39. 'sec-fetch-mode': 'navigate',
  40. 'sec-fetch-site': 'same-origin',
  41. 'sec-fetch-user': '?1',
  42. 'upgrade-insecure-requests': '1',
  43. 'user-agent': mahdix.W_ueragnt(),
  44. })
  45. r1=s.get(url,cookies={'cookie':coki}).text
  46. sp=mahdix.html(r1,"html.parser")
  47. shuvo_s1=mahdix.requests.Session()
  48. eav=re.search('eav=(.*?)"', str(sp)).group(1)
  49. shuvo_s1.headers.update({
  50. 'authority': 'mbasic.facebook.com','accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
  51. 'accept-language': 'en-US,en;q=0.9,id;q=0.8','cache-control': 'max-age=0',
  52. 'content-type': 'application/x-www-form-urlencoded','origin': 'https://mbasic.facebook.com',
  53. 'referer': f'https://mbasic.facebook.com/settings/security/password/?paipv=0&eav={eav}',
  54. 'sec-ch-prefers-color-scheme': 'light',
  55. 'sec-ch-ua': '"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"',
  56. 'sec-ch-ua-full-version-list': '"Google Chrome";v="117.0.5897.4", "Not;A=Brand";v="8.0.0.0", "Chromium";v="117.0.5897.4"',
  57. 'sec-ch-ua-mobile': '?0','sec-ch-ua-platform': '"Windows"',
  58. 'sec-ch-ua-platform-version': '"15.0.0"','sec-fetch-dest': 'document',
  59. 'sec-fetch-mode': 'navigate','sec-fetch-site': 'same-origin',
  60. 'sec-fetch-user': '?1','upgrade-insecure-requests': '1',
  61. 'user-agent': mahdix.W_ueragnt(),
  62. 'viewport-width': '475',
  63. })
  64. params = {
  65. 'redirect_uri': f'/settings/security/?settings_tracking=unknown%3Asettings_2_0&eav={eav}&paipv=0',
  66. 'paipv': '0',
  67. 'eav': eav,
  68. }
  69. data = {
  70. 'fb_dtsg': re.search('name="fb_dtsg" type="hidden" value="(.*?)"', str(sp)).group(1),
  71. 'jazoest': re.search('name="jazoest" type="hidden" value="(.*?)"', str(sp)).group(1),
  72. 'password_change_session_identifier':re.search('name="password_change_session_identifier" style="display:none" type="text" value="(.*?)"', str(sp)).group(1),
  73. 'password_old': oldps,
  74. 'password_new': newpass,
  75. 'password_confirm': newpass,
  76. 'save': 'Save changes',
  77. }
  78. cng_pass_response = shuvo_s1.post('https://mbasic.facebook.com/password/change/', params=params, cookies={'cookie':coki}, data=data).text
  79. cng_pass_response_html=mahdix.html(cng_pass_response,"html.parser")
  80. if 'Log out of other devices?' in cng_pass_response_html.text:
  81. print(mahdix.mahdilinx())
  82. print(f'{mahdix.LI_WHITE}Password ChangeDone')
  83. print(f'{mahdix.LI_CYAN}UID : {mahdix.LI_GREEN}{cid}')
  84. print(f'{mahdix.LI_CYAN}PS : {mahdix.LI_GREEN}{newpass}')
  85. print(mahdix.linex())
  86. open("/sdcard/pass_changer.txt","a").write(f'--------------------------\n{cid}|{newpass}\n')
  87. else:
  88. print(f'{mahdix.LI_RED} Wrong Password :{oldps}')
  89.  
  90. fff()
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement