Пример #1
0
def main():
    # global curve, data, ptr, p, lastTime, fps, x
    # usage = "usage: %prog [options]"
    # parser = OptionParser(usage)
    # parser.add_option("-b", "--displayHeartBeat", dest = "verbose", action = "store_true",
    #                   help = "Display HeartBeat in streaming data")
    # displayHeartbeat = False
    # (options, args) = parser.parse_args()
    # if len(args) > 1:
    #     parser.error("incorrect number of arguments")
    # if options.verbose:
    #     displayHeartbeat = True
    twitter()
Пример #2
0
def main():
    args = argv
    script, input_text_1, input_text_2 = args

    # Change this to read input_text from a file
    f = open(input_text_1)
    text = f.read()
    f.close

    f2 = open(input_text_2)
    text2 = f2.read()
    f2.close

    word_next_dict = make_chains(text, text2)
    to_tweet = make_text(word_next_dict)
    tweet = twitter(to_tweet)
Пример #3
0
    def post(self):
        #return str(flask.request.form['login'])
		#pass1 = str(flask.request.form['password'])
		#log = str(flask.request.form['login'])
		log = eval(flask.request.form['login'])
		auth=oauth2.Token(log, '9orpHsbfGpFfEDeAVWZrQpEb1JYKdILgVeErKXSi1cs' , 'dvL7ElBM8xTO8bh6XVHlsWQ78tWSmiM3E5PPLrm0A', 'TroS6jwSabIDTsJt6cu2g')
		t = twitter(auth)
        #flask.flash(result)
    	#print auth
        #consumer_key = "TroS6jwSabIDTsJt6cu2g"
        #consumer_secret = "dvL7ElBM8xTO8bh6XVHlsWQ78tWSmiM3E5PPLrm0A"
        #consumer = oauth2.Consumer(consumer_key, consumer_secret)
        #access_token_url = 'https://api.twitter.com/oauth/access_token'
        #token = oauth2.Token('126263523-Vj2Rj7RcNjzFa71nRG7FUsdTIIkSfAaLKHzLO8YA','9orpHsbfGpFfEDeAVWZrQpEb1JYKdILgVeErKXSi1cs')
        #token.set_verifier(oauth2_verifier)
        #client = oauth2.Client(consumer, token)
        #resp, content = client.request(access_token_url, "POST")
        #access_token = dict(urlparse.parse_qsl(content))
        #print "Access Token:"
        #print "    - oauth_token        = %s" % access_token['126263523-Vj2Rj7RcNjzFa71nRG7FUsdTIIkSfAaLKHzLO8YA']
        #print "    - oauth_token_secret = %s" % access_token['9orpHsbfGpFfEDeAVWZrQpEb1JYKdILgVeErKXSi1cs']
        #print "You may now access protected resources using the access tokens above."
		#api = twitter.Api('TroS6jwSabIDTsJt6cu2g', 'dvL7ElBM8xTO8bh6XVHlsWQ78tWSmiM3E5PPLrm0A', '126263523-Vj2Rj7RcNjzFa71nRG7FUsdTIIkSfAaLKHzLO8YA','9orpHsbfGpFfEDeAVWZrQpEb1JYKdILgVeErKXSi1cs')
		print t.VerifyCredentials() 
Пример #4
0
def tritymain():
    while True:
        try:
            main = raw_input('' + G + '' + color.BOLD + color.UNDERLINE +
                             'Tri>' + color.END)
            if main in swear:
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "Watch your language!" + color.END)
            elif main in spell:
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "Do you know how to spell?!" + color.END)
            elif main == "joke":
                joke()
            elif main == "info":
                info()
            elif main == "help":
                print "" + W + "+----------------------------+"
                print "" + C + "help " + W + "- displays this help message"
                print "" + C + "clear " + W + "- clears the screen"
                print "" + C + "exit " + W + "- exits tool"
                print "" + C + "tool " + W + "- displays info about the tool"
                print "" + C + "info " + W + "- displays computer and network info"
                print "" + C + "cd " + W + "- change working directories"
                print "" + W + "+----------------------------+"
                print "" + P + "speak " + W + "- text to speech"
                print "" + P + "ping " + W + "- ping a host"
                print "" + P + "banner " + W + "- print a new banner"
                print "" + P + "joke " + W + "- tell a joke"
                print "" + P + "quote " + W + "- print a quote"
                print "" + P + "contact " + W + "- contact me"
                print "" + W + "+----------------------------+"
                print "" + R + "website " + W + "- enter a website and get its ip"
                print "" + R + "clone" + W + " - clone a websites source "
                print "" + R + "whois" + W + " - whois a website"
                print "" + R + "web" + W + " - extract info from a website"
                print "" + R + "siteexists" + W + " - check if a site exists"
                print "" + R + "google" + W + " - find google results for a query"
                print "" + W + "+----------------------------+"
                print "" + G + "ip " + W + "- geolocate an ip"
                print "" + W + "+----------------------------+"
                print "" + O + "xss " + W + "- simple check for a xss vulnerability"
                print "" + O + "sql " + W + "- basic check for a sql vulnerability"
                print "" + O + "admin " + W + "- scan a website for its admin panel"
                print "" + W + "+----------------------------+"
                print "" + T + "email " + W + "- bomb an email address"
                print "" + T + "spoof email " + W + "- spoof an email address"
                print "" + T + "anonymous " + W + "- send an anonymous email"
                print "" + T + "sms" + W + " - spam text messages "
                print "" + T + "twitter" + W + " - check the details of a twitter account"
                print "" + W + "+----------------------------+"
                print color.CYAN + "craft" + W + " - generate useful scripts "
                print color.CYAN + "qr" + W + " - generate a qr code"
                print color.CYAN + "zip" + W + " - crack a password-protected zip file"
                print "" + W + "+----------------------------+"
                print color.BLUE + "encode base64" + W + " - text to base64"
                print color.BLUE + "decode base64" + W + " - base64 to text"
                print color.BLUE + "encode hex" + W + " - text to hex"
                print color.BLUE + "decode hex" + W + " - hex to text"
                print "" + W + "+----------------------------+"
            elif main == "sms":
                sms()
            elif main == "xss":
                xss()
            elif main == "sql":
                sql()
            elif main == "anonymous":
                anon()
            elif main == "encode base64":
                encode()
            elif main == "decode base64":
                decode()
            elif main == "email":
                smtp()
            elif main == "quote":
                quote()
            elif main == "spoof email":
                spoofemail()
            elif main == "zip":
                zipfile()
            elif main == "decode hex":
                decode1()
            elif main == "encode hex":
                encode1()
            elif main == "google":
                googleSearch()
            elif main == "web":
                web()
            elif main == "siteexists":
                siteexists()
            elif main == "qr":
                gen_qrcode()
            elif main == "twitter":
                twitter()
            elif main == "anonymous":
                anon()
            elif main == "contact":
                print('' + T + '' + color.UNDERLINE + 'Skype:' + W + '' +
                      color.BOLD + ' [email protected]' + color.END)
                print('' + T + '' + color.UNDERLINE + 'Instagram:' + W + '' +
                      color.BOLD + ' @_t0x1c - www.instagram.com/_t0x1c' +
                      color.END)
                print('' + T + '' + color.UNDERLINE + 'Email me:' + W + '' +
                      color.BOLD + ' [email protected]' + color.END)
                print('' + T + '' + color.UNDERLINE + 'XMPP:' + W + '' +
                      color.BOLD + ' [email protected]' + color.END)
                print('' + T + '' + color.UNDERLINE + 'Twitter:' + W + '' +
                      color.BOLD + ' @toxicnull' + color.END)
            elif main == "ping":
                while True:
                    hostname = raw_input('' + T + '' + color.UNDERLINE +
                                         'Host>' + color.END)
                    os.system("ping " + hostname)
            elif main == "craft":
                while True:
                    table()
            elif main == "whois":
                whoisweb()
            elif main == "admin":
                admin()
            elif main == "banner":
                os.system('clear')
                banner()
                banner1()
            elif main == "speak":
                while True:
                    speak = raw_input('' + T + '' + color.UNDERLINE +
                                      'What to say>' + color.END)
                    os.system('espeak "' + speak + '"')
            elif main == "clone":
                clone()
            elif main == "cd":
                try:
                    path = raw_input('' + T + '' + color.UNDERLINE +
                                     'Directory>' + color.END)
                    os.chdir(path)
                except OSError:
                    print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                          "That is not a directory!" + color.END)
            elif main == "tool":
                print(color.UNDERLINE + '' + C + 'Version: ' + (VersionNum) +
                      color.END)
                print(color.UNDERLINE + '' + C + '34 options to choose from!' +
                      color.END)
                print(color.UNDERLINE + '' + C +
                      'Time spent on it: 76 hours - 14 minutes' + color.END)
                print(color.UNDERLINE + '' + C + 'toxic is a sp00ky h4ck3r' +
                      color.END)
            elif main == "website":
                while True:
                    a = raw_input('' + T + '' + color.UNDERLINE + 'Website>' +
                                  color.END)
                    try:
                        print socket.gethostbyname(a)
                    except socket.gaierror:
                        print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                              "Apparently host is unknown! :/" + color.END)
            elif main == "ip":
                ip = raw_input('' + T + '' + color.UNDERLINE + 'IP>' +
                               color.END)
                if ip is None or ip == "":
                    sys.exit("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                             "Please enter an IP!" + color.END)
                reversed_dns = socket.getfqdn(ip)
                geoip = urllib.urlopen(
                    'http://api.hackertarget.com/geoip/?q=' +
                    ip).read().rstrip()
                print("" + G + "[*] " + color.UNDERLINE + "\033[91m" +
                      "IP Info" + color.END)
                print geoip
            elif main == "clear":
                os.system('clear')
            elif main == "exit":
                print("" + G + "[*] " + color.UNDERLINE + "\033[91m" +
                      "Exiting..." + color.END)
                print("" + G + "[*] " + color.UNDERLINE + "\033[92m" +
                      "GoodBye!" + color.END)
                time.sleep(0.2)
                sys.exit()
            elif main == "":
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "Please enter an option!" + color.END)
            else:
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "That is not an option!" + color.END)
        except KeyboardInterrupt:
            print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                  "\nCtrl-C Pressed! Use 'exit' to close the tool!" +
                  color.END)
            tritymain()
Пример #5
0
def main():

    twitter()
Пример #6
0
            elif item[3:5] == 'fp':
                Det_FP.append(palabro)
            else:
                pass
        elif matchAdv:
            if item[1] == "n":
                pass
            else:
                Adv.append(palabro)
        else:
            return 0

# Aquí es necesario incluir tu propia clave API
    args = ('xxx', 'xxx', \
    'xxx', 'xxx')
    corpus = twitter("no", *args)
    tagging = spa.pos_tag(corpus.split())
    palabras = limpiezaNone(tagging)
    print "---------"
    for x in palabras:
        match(x[1], x[0])



def X(lis):
    longitud = len(lis)
    if longitud == 1:
        itemLex = lis[0]
    elif longitud == 0:
        itemLex = "______"
    else:
Пример #7
0
		self.title.clear()
		self.title.refresh()
		self.win.clear()
		self.win.refresh()
		return res

	def keystroke(self, key):
		return key

if __name__ == '__main__':

	try:

		stdscr.scrollok(True)
		stdscr.addstr("Wellcome!! \"q\" を押せば、終了するよ!"" \n")
		tw = twitter()
		tw.start()
		box = None
		while True:
			#キーボードの入力を検知
			c = stdscr.getch()
			if c == ord('i'):
				inputBox = InputBox(0, 0, 2, 140)
				str = inputBox.edit()
				if str != "":
					tw.post(str)
			if c == ord('r'):
				tw.reload()
			if c == ord('q'):
				break # Exit the while()
Пример #8
0
    print("<meta http-equiv=\"expires\" content=\"0\" />")
    print(
        "<meta http-equiv=\"expires\" content=\"Tue, 01 Jan 1980 1:00:00 GMT\" />"
    )
    print("<meta http-equiv=\"pragma\" content=\"no-cache\" />")
    font = "<STYLE TYPE=\"text/css\">body{color: white;}</STYLE>"
    font = "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">"
    print(
        "<html><head>" + font +
        "<title>STOCKS</title></head><body bgcolor=\"#000000\" font-size=\"50%\">"
    )
    print(now.strftime("%Y-%m-%d %H:%M"))
    arguments = cgi.FieldStorage()
    for i in arguments.keys():
        print(arguments[i].value)
    print(
        "<table class=\"stock_table\"><tr><th width=\"25%\">INDICES</th><th width=\"50%\">PORTFOLIO</th><th width=\"25%\">TOTALS</th></tr><tr valign=\"top\"><td>"
    )
    print_html_globals(d)
    print("</td><td>")
    print_html_values(d)
    print("</td><td>")
    print_html_totals(d)
    print("</td></tr></table>")
    print("<table height=\"70%\" width=\"100%\"><tr><td>")
    twitter()
    print("</td><td>")
    parse_boursorama_forum("ALCLS")
    print("</td></tr></table>")
    print("</body></html>")
Пример #9
0
def tritymain():
    while True:
        try:
            main = raw_input('' + G + '' + color.BOLD + color.UNDERLINE +
                             'Tri>' + color.END)
            if main in swear:
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "Watch your language!" + color.END)
            elif main in spell:
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "Do you know how to spell?!" + color.END)
            elif main == "joke":
                joke()
            elif main == "info":
                info()
            elif main == "help":
                print "" + W + "+----------------------------+"
                print "" + C + "help " + W + "- displays this help message"
                print "" + C + "clear " + W + "- clears the screen"
                print "" + C + "exit " + W + "- exits tool"
                print "" + C + "tool " + W + "- displays info about the tool"
                print "" + C + "info " + W + "- displays computer and network info"
                print "" + C + "cd " + W + "- change working directories"
                print "" + C + "ls " + W + "- see files in working directory"
                print "" + W + "+----------------------------+"
                print "" + P + "echo " + W + "- echo given words"
                print "" + P + "speak " + W + "- text to speech"
                print "" + P + "ping " + W + "- ping a host"
                print "" + P + "banner " + W + "- print a new banner"
                print "" + P + "joke " + W + "- tell a joke"
                print "" + P + "quote " + W + "- print a quote"
                print "" + P + "contact " + W + "- contact me"
                print "" + W + "+----------------------------+"
                print "" + R + "website " + W + "- enter a website and get its ip"
                print "" + R + "clone" + W + " - clone a websites source "
                print "" + R + "whois" + W + " - whois a website"
                print "" + R + "web" + W + " - extract info from a website"
                print "" + R + "siteexists" + W + " - check if a site exists"
                print "" + R + "google" + W + " - find google results for a query"
                print "" + R + "clickjacking" + W + " - test websites for clickjacking vulnerability"
                print "" + W + "+----------------------------+"
                print "" + G + "ip " + W + "- geolocate an ip"
                print "" + W + "+----------------------------+"
                print "" + O + "spoof mac" + W + " - spoof mac address"
                print "" + W + "+----------------------------+"
                print "" + T + "email " + W + "- bomb an email address"
                print "" + T + "spoof email " + W + "- spoof an email address"
                print "" + T + "sms" + W + " - spam text messages "
                print "" + T + "crack" + W + " - bruteforce an email"
                print "" + T + "anonymous" + W + " - send an anonymous email"
                print "" + T + "facebook" + W + " - bruteforce a facebook account"
                print "" + T + "twitter" + W + " - check the details of a twitter account"
                print "" + W + "+----------------------------+"
                print color.CYAN + "craft" + W + " - generate useful scripts "
                print color.CYAN + "qr" + W + " - generate a qr code"
                print color.CYAN + "zip" + W + " - crack a password-protected zip file"
                print "" + W + "+----------------------------+"
                print color.BLUE + "encode base64" + W + " - text to base64"
                print color.BLUE + "decode base64" + W + " - base64 to text"
                print color.BLUE + "encode hex" + W + " - text to hex"
                print color.BLUE + "decode hex" + W + " - hex to text"
                print "" + W + "+----------------------------+"
            elif main == "spoof mac":
                print "" + C + "1 - Random MAC address"
                print "" + C + "2 - Set MAC address"
                print "" + C + "3 - See available addresses"
                while True:
                    spoofmac = raw_input('' + G + '' + color.UNDERLINE +
                                         'Tri>Spoof>' + color.END)
                    if spoofmac == "1":
                        try:
                            inter = raw_input('' + T + '' + color.UNDERLINE +
                                              'Interface>' + color.END)
                            os.system('spoof-mac.py randomize ' + inter)
                            print "" + G + "[*] Done! " + C + "To change you MAC Address back to your original, restart your computer\n or set your MAC address to your original"
                        except:
                            print("" + R + "[!] " + color.UNDERLINE +
                                  "\033[91m" +
                                  "Oops.... Something went wrong!" + color.END)
                    elif spoofmac == "2":
                        try:
                            inter = raw_input('' + T + '' + color.UNDERLINE +
                                              'Interface>' + color.END)
                            setmac = raw_input('' + T + '' + color.UNDERLINE +
                                               'New MAC>' + color.END)
                            os.system('spoof-mac.py set ' + setmac + ' ' +
                                      inter)
                            print "" + C + "Keep in mind you won't have internet during the time of your spoofed MAC!"
                            print "" + G + "[*] Done!" + C + " To change you MAC Address back to your original, restart your computer\n or set your MAC address to your original"
                        except:
                            print("" + R + "[!] " + color.UNDERLINE +
                                  "\033[91m" +
                                  "Oops... Something went wrong!" + color.END)
                    elif spoofmac == "3":
                        os.system('spoof-mac.py list')
                    else:
                        print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                              "That is not an option!" + color.END)

            elif main == "sms":
                sms()
            elif main == "encode base64":
                encode()
            elif main == "decode base64":
                decode()
            elif main == "email":
                smtp()
            elif main == "quote":
                quote()
            elif main == "spoof email":
                spoofemail()
            elif main == "zip":
                zipfile()
            elif main == "decode hex":
                decode1()
            elif main == "encode hex":
                encode1()
            elif main == "google":
                googleSearch()
            elif main == "web":
                web()
            elif main == "clickjacking":
                clickjacking()
            elif main == "siteexists":
                siteexists()
            elif main == "qr":
                gen_qrcode()
            elif main == "twitter":
                twitter()
            elif main == "crack":
                gmail()
            elif main == "anonymous":
                anon()
            elif main == "contact":
                print('' + T + '' + color.UNDERLINE + 'Skype:' + W + '' +
                      color.BOLD + ' infamouzgaming' + color.END)
                print('' + T + '' + color.UNDERLINE + 'Instagram:' + W + '' +
                      color.BOLD + ' @_t0x1c - www.instagram.com/_t0x1c' +
                      color.END)
                print('' + T + '' + color.UNDERLINE + 'Email me:' + W + '' +
                      color.BOLD + ' [email protected]' + color.END)
                print('' + T + '' + color.UNDERLINE + 'XMPP:' + W + '' +
                      color.BOLD + ' [email protected]' + color.END)
            elif main == "ping":
                while True:
                    hostname = raw_input('' + T + '' + color.UNDERLINE +
                                         'Host>' + color.END)
                    os.system("ping " + hostname)
            elif main == "craft":
                while True:
                    table()
            elif main == "facebook":
                facebook()
            elif main == "whois":
                whoisweb()
            elif main == "admin":
                admin()
            elif main == "banner":
                os.system('clear')
                banner()
                banner1()
            elif main == "speak":
                while True:
                    speak = raw_input('' + T + '' + color.UNDERLINE +
                                      'What to say>' + color.END)
                    os.system('espeak "' + speak + '"')
            elif main == "echo":
                while True:
                    echo = raw_input('' + T + '' + color.UNDERLINE +
                                     'What to echo>' + color.END)
                    os.system('echo ' + echo)
            elif main == "clone":
                clone()
            elif main == "cd":
                try:
                    path = raw_input('' + T + '' + color.UNDERLINE +
                                     'Directory>' + color.END)
                    os.chdir(path)
                except OSError:
                    print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                          "That is not a directory!" + color.END)
            elif main == "ls":
                os.system('ls')
            elif main == "tool":
                print(color.UNDERLINE + '' + C + 'Version: 3.0.1' + color.END)
                print(color.UNDERLINE + '' + C +
                      'Time spent on it: 74 hours - 21 minutes' + color.END)
                print(color.UNDERLINE + '' + C + 'toxic is a sp00ky h4ck3r' +
                      color.END)
            elif main == "website":
                while True:
                    a = raw_input('' + T + '' + color.UNDERLINE + 'Website>' +
                                  color.END)
                    try:
                        print socket.gethostbyname(a)
                    except socket.gaierror:
                        print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                              "Apparently host is unknown! :/" + color.END)
            elif main == "ip":
                ip = raw_input('' + T + '' + color.UNDERLINE + 'IP>' +
                               color.END)
                if ip is None or ip == "":
                    sys.exit("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                             "Please enter an IP!" + color.END)
                reversed_dns = socket.getfqdn(ip)
                geoip = urllib.urlopen(
                    'http://api.hackertarget.com/geoip/?q=' +
                    ip).read().rstrip()
                print("" + G + "[*] " + color.UNDERLINE + "\033[91m" +
                      "IP Info" + color.END)
                print geoip
            elif main == "clear":
                os.system('clear')
            elif main == "exit":
                print("" + G + "[*] " + color.UNDERLINE + "\033[91m" +
                      "Exiting..." + color.END)
                print("" + G + "[*] " + color.UNDERLINE + "\033[92m" +
                      "GoodBye!" + color.END)
                time.sleep(0.2)
                sys.exit()
            elif main == "":
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "Please enter an option!" + color.END)
            else:
                print("" + R + "[!] " + color.UNDERLINE + "\033[91m" +
                      "That is not an option!" + color.END)
        except KeyboardInterrupt:
            print "\n"
            tritymain()
Пример #10
0
def tritymain():
    while True:
        try:
            main = raw_input(''+G+'' + color.BOLD + color.UNDERLINE + 'Tri>' + color.END)
            if main in swear:
                print(""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Watch your language!" + color.END)
	    elif main in spell:
                print(""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Do you know how to spell?!" + color.END)
            elif main == "joke":
                joke()
            elif main == "info":
                info()
            elif main == "help":
                print ""+W+"+----------------------------+"
                print ""+C+"help "+W+"- displays this help message"
                print ""+C+"clear "+W+"- clears the screen"
                print ""+C+"exit "+W+"- exits tool"
                print ""+C+"tool "+W+"- displays info about the tool"
                print ""+C+"info "+W+"- displays computer and network info"
                print ""+C+"cd "+W+"- change working directories"
                print ""+C+"ls "+W+"- see files in working directory"
                print ""+W+"+----------------------------+"
                print ""+P+"speak "+W+"- text to speech"
                print ""+P+"ping "+W+"- ping a host"
                print ""+P+"banner "+W+"- print a new banner"
                print ""+P+"joke "+W+"- tell a joke"
                print ""+P+"quote "+W+"- print a quote"
                print ""+P+"contact "+W+"- contact me"
                print ""+W+"+----------------------------+"
                print ""+R+"website "+W+"- enter a website and get its ip"
	        print ""+R+"clone"+W+" - clone a websites source "
	        print ""+R+"whois"+W+" - whois a website"
	        print ""+R+"web"+W+" - extract info from a website"
	        print ""+R+"siteexists"+W+" - check if a site exists"
	        print ""+R+"google"+W+" - find google results for a query"
	        print ""+R+"clickjacking"+W+" - test websites for clickjacking vulnerability"
                print ""+W+"+----------------------------+"
	        print ""+G+"ip "+W+"- geolocate an ip"
                print ""+W+"+----------------------------+"
	        print ""+T+"email "+W+"- bomb an email address"
	        print ""+T+"spoof email "+W+"- spoof an email address"
	        print ""+T+"sms"+W+" - spam text messages "
	        print ""+T+"crack"+W+" - bruteforce an email"
	        print ""+T+"anonymous"+W+" - send an anonymous email"
                print ""+T+"facebook"+W+" - bruteforce a facebook account"
                print ""+T+"twitter"+W+" - check the details of a twitter account"
                print ""+W+"+----------------------------+"
	        print color.CYAN + "craft"+W+" - generate useful scripts "
	        print color.CYAN + "qr"+W+" - generate a qr code"
	        print color.CYAN + "zip"+W+" - crack a password-protected zip file"
                print ""+W+"+----------------------------+"
	        print color.BLUE + "encode base64"+W+" - text to base64"
	        print color.BLUE + "decode base64"+W+" - base64 to text"
	        print color.BLUE + "encode hex"+W+" - text to hex"
	        print color.BLUE + "decode hex"+W+" - hex to text"
                print ""+W+"+----------------------------+"
	    elif main == "sms":
	        sms()
	    elif main == "encode base64":
	        encode()
	    elif main == "decode base64":
	        decode()
	    elif main == "email":
	        smtp()
	    elif main == "quote":
	        quote()
	    elif main == "spoof email":
	        os.system("python emaill.py")
	    elif main == "zip":
	        zipfile()
	    elif main == "decode hex":
	        decode1()
	    elif main == "encode hex":
	        encode1()
	    elif main == "google":
	        googleSearch()
	    elif main == "web":
	        web()
	    elif main == "clickjacking":
	        clickjacking()
	    elif main == "siteexists":
	        siteexists()
	    elif main == "qr":
	        gen_qrcode()
	    elif main == "twitter":
	        twitter()
	    elif main == "crack":
	        gmail()
	    elif main == "anonymous":
	        anon()
	    elif main == "contact":
	        print(''+T+'' + color.UNDERLINE + 'Facebook:'+W+'' + color.BOLD + ' https://www.facebook.com/Cyber.S3C.Professional' + color.END)
	        print(''+T+'' + color.UNDERLINE + 'GitHub:'+W+'' + color.BOLD + ' https://CybernetiX-S3C.github.io/' + color.END)
	    elif main == "ping":
		while True:
	            hostname = raw_input(''+T+'' + color.UNDERLINE + 'Host>' + color.END)
	            os.system("ping " + hostname)
	    elif main == "craft":
		while True:
	            table()
	    elif main == "facebook":
	        facebook()
	    elif main == "whois":
	        whoisweb()
	    elif main == "admin":
	        admin()
	    elif main == "banner":
	        os.system('clear')
	        banner()
	        banner1()
	    elif main == "speak":
		while True:
	            speak = raw_input(''+T+'' + color.UNDERLINE + 'What to say>' + color.END)
	            os.system('espeak "' + speak + '"')
	    elif main == "echo":
		while True:
	            echo = raw_input(''+T+'' + color.UNDERLINE + 'What to echo>' + color.END)
	            os.system('echo ' + echo)
	    elif main == "clone":
	        clone()
	    elif main == "cd":
	        try:
	            path = raw_input(''+T+'' + color.UNDERLINE + 'Directory>' + color.END)
	            os.chdir(path)
	        except OSError:
	            print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "That is not a directory!" + color.END)
	    elif main == "ls":
	        os.system('ls')
	    elif main == "tool":
	        print(color.UNDERLINE + ''+C+'Version: 4.2.1' + color.END)
	        print(color.UNDERLINE + ''+C+'Time spent on it: 98 hours - 54 minutes' + color.END)
	        print(color.UNDERLINE + ''+C+'John Modica @ CybernetiX S3C' + color.END)
	    elif main == "website":
		while True:
	            a = raw_input(''+T+'' + color.UNDERLINE + 'Website>' + color.END)
	            try:
	                print socket.gethostbyname(a)
	            except socket.gaierror:
	                print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Apparently host is unknown! :/" + color.END)
	    elif main == "ip":
	        ip = raw_input(''+T+'' + color.UNDERLINE + 'IP>' + color.END)
	        if ip is None or ip == "":
	            sys.exit(""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Please enter an IP!" + color.END)
	        reversed_dns = socket.getfqdn(ip)
	        geoip = urllib.urlopen('api.hackertarget.com/geoip/?q='
                               + ip).read().rstrip()
	        print (""+G+"[*] " + color.UNDERLINE + "\033[91m" + "IP Info" + color.END)
	        print geoip
	    elif main == "clear":
	        os.system('clear')
            elif main == "exit":
	        print (""+G+"[*] " + color.UNDERLINE + "\033[91m" + "Exiting..." + color.END)
	        print (""+G+"[*] " + color.UNDERLINE + "\033[92m" + "GoodBye!" + color.END)
	        time.sleep(0.2)
	        sys.exit()
	    elif main == "":
	        print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Please enter an option!" + color.END)
            else:
	        print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "That is not an option!" + color.END)
        except KeyboardInterrupt:
		print "\n"
		tritymain()
Пример #11
0
from twitter import *
t = twitter(auth=OAuth(<Access Token>,<Access Token Secret>,
                <Consumer Key>,<Consumer Secret>))
statusUpdate = t.statuses.update(status='Hello World!')
print(statusUpdate)
Пример #12
0
def tritymain():

    while True:

        try:

            main = raw_input(''+G+'' + color.BOLD + color.UNDERLINE + 'Tri>' + color.END)

            if main in swear:

                print(""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Watch your language!" + color.END)

	    elif main in spell:

                print(""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Do you know how to spell?!" + color.END)

            elif main == "joke":

                joke()

            elif main == "info":

                info()

            elif main == "help":

                print ""+W+"+----------------------------+"

                print ""+C+"help "+W+"- displays this help message"

                print ""+C+"clear "+W+"- clears the screen"

                print ""+C+"exit "+W+"- exits tool"

                print ""+C+"tool "+W+"- displays info about the tool"

                print ""+C+"info "+W+"- displays computer and network info"

                print ""+C+"cd "+W+"- change working directories"

                print ""+W+"+----------------------------+"

                print ""+P+"speak "+W+"- text to speech"

                print ""+P+"ping "+W+"- ping a host"

                print ""+P+"banner "+W+"- print a new banner"

                print ""+P+"joke "+W+"- tell a joke"

                print ""+P+"quote "+W+"- print a quote"

                print ""+P+"contact "+W+"- contact me"

                print ""+W+"+----------------------------+"

                print ""+R+"website "+W+"- enter a website and get its ip"

	        print ""+R+"clone"+W+" - clone a websites source "

	        print ""+R+"whois"+W+" - whois a website"

	        print ""+R+"web"+W+" - extract info from a website"

	        print ""+R+"siteexists"+W+" - check if a site exists"

	        print ""+R+"google"+W+" - find google results for a query"

                print ""+W+"+----------------------------+"

	        print ""+G+"ip "+W+"- geolocate an ip"

                print ""+W+"+----------------------------+"

	        print ""+O+"xss "+W+"- simple check for a xss vulnerability"

	        print ""+O+"sql "+W+"- basic check for a sql vulnerability"

	        print ""+O+"admin "+W+"- scan a website for its admin panel"

                print ""+W+"+----------------------------+"

	        print ""+T+"email "+W+"- bomb an email address"

	        print ""+T+"spoof email "+W+"- spoof an email address"

	        print ""+T+"anonymous "+W+"- send an anonymous email"

	        print ""+T+"sms"+W+" - spam text messages "

                print ""+T+"twitter"+W+" - check the details of a twitter account"

                print ""+W+"+----------------------------+"

	        print color.CYAN + "craft"+W+" - generate useful scripts "

	        print color.CYAN + "qr"+W+" - generate a qr code"

	        print color.CYAN + "zip"+W+" - crack a password-protected zip file"

                print ""+W+"+----------------------------+"

	        print color.BLUE + "encode base64"+W+" - text to base64"

	        print color.BLUE + "decode base64"+W+" - base64 to text"

	        print color.BLUE + "encode hex"+W+" - text to hex"

	        print color.BLUE + "decode hex"+W+" - hex to text"

                print ""+W+"+----------------------------+"

    	    elif main == "sms":

	        sms()

	    elif main == "xss":

	        xss()

	    elif main == "sql":

	        sql()

	    elif main == "anonymous":

	        anon()

	    elif main == "encode base64":

	        encode()

	    elif main == "decode base64":

	        decode()

	    elif main == "email":

	        smtp()

	    elif main == "quote":

	        quote()

	    elif main == "spoof email":

	        spoofemail()

	    elif main == "zip":

	        zipfile()

	    elif main == "decode hex":

	        decode1()

	    elif main == "encode hex":

	        encode1()

	    elif main == "google":

	        googleSearch()

	    elif main == "web":

	        web()

	    elif main == "siteexists":

	        siteexists()

	    elif main == "qr":

	        gen_qrcode()

	    elif main == "twitter":

	        twitter()

	    elif main == "anonymous":

	        anon()

	    elif main == "contact":

	        print(''+T+'' + color.UNDERLINE + 'Skype:'+W+'' + color.BOLD + ' [email protected]' + color.END)

	        print(''+T+'' + color.UNDERLINE + 'Instagram:'+W+'' + color.BOLD + ' @_t0x1c - www.instagram.com/_t0x1c' + color.END)

	        print(''+T+'' + color.UNDERLINE + 'Email me:'+W+'' + color.BOLD + ' [email protected]' + color.END)

	        print(''+T+'' + color.UNDERLINE + 'XMPP:'+W+'' + color.BOLD + ' [email protected]' + color.END)

		print(''+T+'' + color.UNDERLINE + 'Twitter:'+W+'' + color.BOLD + ' @toxicnull' + color.END)

	    elif main == "ping":

		while True:

	            hostname = raw_input(''+T+'' + color.UNDERLINE + 'Host>' + color.END)

	            os.system("ping " + hostname)

	    elif main == "craft":

		while True:

	            table()

	    elif main == "whois":

	        whoisweb()

	    elif main == "admin":

	        admin()

	    elif main == "banner":

	        os.system('clear')

	        banner()

	        banner1()

	    elif main == "speak":

		while True:

	            speak = raw_input(''+T+'' + color.UNDERLINE + 'What to say>' + color.END)

	            os.system('espeak "' + speak + '"')

	    elif main == "clone":

	        clone()

	    elif main == "cd":

	        try:

	            path = raw_input(''+T+'' + color.UNDERLINE + 'Directory>' + color.END)

	            os.chdir(path)

	        except OSError:

	            print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "That is not a directory!" + color.END)

	    elif main == "tool":

	        print(color.UNDERLINE + ''+C+'Version: ' + (VersionNum) + color.END)

		print(color.UNDERLINE + ''+C+'34 options to choose from!' + color.END)

	        print(color.UNDERLINE + ''+C+'Time spent on it: 76 hours - 14 minutes' + color.END)

	        print(color.UNDERLINE + ''+C+'hackingurwifi is a hacker' + color.END)

	    elif main == "website":

		while True:

	            a = raw_input(''+T+'' + color.UNDERLINE + 'Website>' + color.END)

	            try:

	                print socket.gethostbyname(a)

	            except socket.gaierror:

	                print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Apparently host is unknown! :/" + color.END)

	    elif main == "ip":

	        ip = raw_input(''+T+'' + color.UNDERLINE + 'IP>' + color.END)

	        if ip is None or ip == "":

	            sys.exit(""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Please enter an IP!" + color.END)

	        reversed_dns = socket.getfqdn(ip)

	        geoip = urllib.urlopen('http://api.hackertarget.com/geoip/?q='

                               + ip).read().rstrip()

	        print (""+G+"[*] " + color.UNDERLINE + "\033[91m" + "IP Info" + color.END)

	        print geoip

	    elif main == "clear":

	        os.system('clear')

            elif main == "exit":

	        print (""+G+"[*] " + color.UNDERLINE + "\033[91m" + "Exiting..." + color.END)

	        print (""+G+"[*] " + color.UNDERLINE + "\033[92m" + "GoodBye!" + color.END)

	        time.sleep(0.2)

	        sys.exit()

	    elif main == "":

	        print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "Please enter an option!" + color.END)

            else:

	        print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "That is not an option!" + color.END)

        except KeyboardInterrupt:

		print (""+R+"[!] " + color.UNDERLINE + "\033[91m" + "\nCtrl-C Pressed! Use 'exit' to close the tool!" + color.END)

		wyattmain()
Пример #13
0
#!/usr/bin/python

#-----------------------------------------------------------------------
# twitter-search
#  - performs a basic keyword search for tweets containing the keywords
#    "lazy" and "dog"
#-----------------------------------------------------------------------

from twitter import *

# create twitter API object
twitter=twitter()

# perform a basic search 
# twitter API docs: https://dev.twitter.com/docs/api/1/get/search
query = twitter.search(q = "#irq")

# print how quickly the search completed
print "Search complete (%f seconds)" % (query["completed_in"])

# loop through each of my statuses, and print its content
for result in query["results"]:
	print "(%s) @%s %s" % (result["created_at"], result["from_user"], result["text"])