Example #1
0
    def loadFile(self):
        lines = [line.strip() for line in open(const.norm_dataset)]

        print "Total list entries are ", len(lines)

        for i in range(0, 6000, 3):
            #print "The default is: ", lines[i]
            #print "Cleaned is: ", lines[i+1]

            self.norm_list.append(sms(lines[i], lines[i + 1]))
Example #2
0
 def standardDef(self, modelname, histo, obsLimits, expLimits, energy, lumi, preliminary):
     # which SMS?
     self.model = sms(modelname)
     self.OBS = obsLimits
     self.EXP = expLimits
     self.lumi = lumi
     self.energy = energy
     self.preliminary = preliminary
     # create the reference empty histo
     self.emptyhisto = self.emptyHistogramFromModel()
Example #3
0
    def loadFile(self):
        lines = [line.strip() for line in open(const.norm_dataset)]

        print "Total list entries are ", len(lines)

        for i in range(0,6000,3):
            #print "The default is: ", lines[i]
            #print "Cleaned is: ", lines[i+1]

            self.norm_list.append(sms(lines[i], lines[i+1]))
Example #4
0
 def standardDef(self, modelname, histo, obsLimits, expLimits, energy, lumi, preliminary):
     # which SMS?
     self.model = sms(modelname)
     self.OBS = obsLimits
     self.EXP = expLimits
     self.lumi = lumi
     self.energy = energy
     self.preliminary = preliminary
     # create the reference empty histo
     self.emptyhisto = self.emptyHistogramFromModel()
 def standardDef(self, modelname, histo, sig1Limits, sig2Limits, sig3Limits,
                 energy, lumi, preliminary, boxes):
     # which SMS?
     self.model = sms(modelname)
     self.SIG1 = sig1Limits
     self.SIG2 = sig2Limits
     self.SIG3 = sig3Limits
     self.lumi = lumi
     self.energy = energy
     self.preliminary = preliminary
     self.boxes = boxes
     # create the reference empty histo
     self.emptyhisto = self.emptyHistogramFromModel()
Example #6
0
 def standardDef(self, modelname, histo, obsLimits, expLimits, expLimits2,
                 energy, lumi, preliminary, boxes):
     # which SMS?
     self.model = sms(modelname)
     print "model:", self.model.modelname, self.model.label, self.model.Xmin, self.model.Xmax, self.model.Zmin, self.model.Zmax
     self.OBS = obsLimits
     self.EXP = expLimits
     self.EXP2 = expLimits2
     self.lumi = lumi
     self.energy = energy
     self.preliminary = preliminary
     self.boxes = boxes
     # create the reference empty histo
     self.emptyhisto = self.emptyHistogramFromModel()
Example #7
0
 def standardDef(self, modelname, histo, syst0Limits, syst1Limits,
                 syst2Limits, syst3Limits, syst4Limits, energy, lumi,
                 preliminary, boxes):
     # which SMS?
     self.model = sms(modelname)
     self.SYST0 = syst0Limits
     self.SYST1 = syst1Limits
     self.SYST2 = syst2Limits
     self.SYST3 = syst3Limits
     self.SYST4 = syst4Limits
     self.lumi = lumi
     self.energy = energy
     self.preliminary = preliminary
     self.boxes = boxes
     # create the reference empty histo
     self.emptyhisto = self.emptyHistogramFromModel()
Example #8
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()
Example #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()
Example #10
0
    
    win_plot = nihms.QtGui.QWidget()
    uiplot = nihms.Ui_Form()
    uiplot.setupUi(win_plot)
    start()
    uiplot.lcdNumber.display(heartrate)
    uiplot.lcdNumber_2.display(spo2)
  
    
    n=1000
    x=numpy.arange(n)
    y=scipy.tan(2*3.14*x)
    
    uiplot.pushButton_2.clicked.connect(lambda: timer.setInterval(5))
    uiplot.pushButton.clicked.connect(lambda: timer.setInterval(10000))
    uiplot.pushButton_3.clicked.connect(sms())
    
    
    
    c=Qwt.QwtPlotCurve()
    c.attach(uiplot.plot)
    
    timer = QtCore.QTimer()
    timer.start(5.0)
    win_plot.connect(timer, QtCore.SIGNAL('timeout()'),plot)
     
    win_plot.show()
    sys.exit(app.exec_())
    

Example #11
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()
Example #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()