Chi2911ks

Tttt

Aug 12th, 2021 (edited)
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.04 KB | None | 0 0
  1. import os, sys, requests, time, re
  2. s=requests.session()
  3. s1=requests.session()
  4. s.headers.update({
  5.         "Host":"tuongtaccheo.com",
  6.         "x-requested-with":"XMLHttpRequest",
  7.         "content-type":"application/x-www-form-urlencoded",
  8.         "user-agent":"Mozilla/5.0 (Linux; Android 10; RMX1929) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36",
  9.         "accept":"application/json, text/javascript, */*; q=0.01",
  10. })
  11. s1.headers.update({"Host":"mbasic.facebook.com","content-type":"application/x-www-form-urlencoded","user-agent":"Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","sec-fetch-site":"same-origin","sec-fetch-mode":"navigate","sec-fetch-user":"?1","sec-fetch-dest":"document","cookie":})
  12. log = requests.post("https://tuongtaccheo.com/login.php",data={
  13.     "username":"",
  14.     "password":"",
  15.     "submit":"ĐĂNG+NHẬP"},headers={
  16.         "Host":"tuongtaccheo.com",
  17.         "upgrade-insecure-requests":"1",
  18.         "content-type":"application/x-www-form-urlencoded",
  19.         "user-agent":"Mozilla/5.0 (Linux; Android 10; RMX1929) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36",
  20.         "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",
  21.     },allow_redirects=False)
  22. cookie=log.cookies
  23. like = s.get("https://tuongtaccheo.com/kiemtien/getpost.php",cookies=cookie).json()
  24. id = like[0]["idpost"]
  25. link = s1.get("https://mbasic.facebook.com/%s"%id).url
  26. print(link)
  27. access = s1.get(link).text
  28. check_node = re.findall('/a/like.php?.*?"', access)
  29. if check_node == []:
  30.     print("éo có nút like")
  31. else:
  32.     node_like = check_node[0].replace('"',"").replace("amp;","")
  33.     s1.get("https://mbasic.facebook.com%s"%node_like)
  34.     receive = s.post("https://tuongtaccheo.com/kiemtien/nhantien.php", cookies=cookie, data={"id":id})
  35.     print(receive.json())
Add Comment
Please, Sign In to add comment