コード例 #1
0
ファイル: decoder_hashs.py プロジェクト: awbx/DecoderHashs
def decode(**kwargs):
    algorithm = kwargs['algorithm']
    hashvalue = kwargs['hashvalue']
    wordlist = kwargs['wordlist']
    try:
        os.system('clear && clear')
        logo.logo()
        print(logo.bcolors.HEADER, 'please Wiat...!')
        with open(wordlist, 'r+') as file:
            reads = file.readlines()
            start = time.strftime('%s')
            for i in reads:
                i = i.strip('\n')
                h = hashlib.new(algorithm)
                value = bytes(i, encoding='utf8')
                h.update(value)
                res = h.hexdigest()
                if res == hashvalue:
                    print('Password Cracked :[%s : %s]' % (hashvalue, i))
                    end = time.strftime('%s')
                    totaltime = int(end) - int(start)
                    print('Password Cracked in %s Second' % totaltime)
                    return True
                    break
    except KeyboardInterrupt:
        print('\rGood Bye ^_^')
        sys.exit()
    except FileNotFoundError as e:
        print('Wordlist Not Found : %s ' % e)
    except ValueError as e:
        print('Algorithm Unknown : %s' % e)
    except:
        print('Error ')
        sys.exit()
コード例 #2
0
def menu():
    cleaner.clear()
    logo.logo()
    print("""
Opciones disponibles:
    1 => Ingresar datos de la línea
    2 => Hacer resumen
    3 => Reiniciar semana
    4 => Consultas parciales
    5 => Salir
    """)
    option = input("Ingresa alguna de las opciones =>")
    if(option == '1'):
        import addData
    elif(option == '2'):
        import makeSumary
    elif(option == '3'):
        import rebootWeek
    elif(option == '4'):
        import partialConsult
    elif(option == '5'):
        pass
        return 'false'
    else:
        print("No existe ninguna opcion para esto")
コード例 #3
0
def clear():
    if name == 'nt':
        _ = system('cls')
    else:
        _ = system('clear')
        logo.logo()
    pass
コード例 #4
0
ファイル: demo.py プロジェクト: abelthf/opengl-demo
    def __init__(self):
        # Initialise pygame
        pygame.init()
        self.screen = pygame.display.set_mode(self.size,self.flags)
        self.clock = pygame.time.Clock()

        self.logo_a = logo(100, 100)
        self.logo_b = logo(150, 150)
        self.logo_c = logo(200, 200, "zel.jpg")
        self.logo_d = logo(path="OpenGL_logo.jpg")

        # Initialise the OpenGL stuff
        glViewport(0, 0, self.size[0], self.size[1])
        glDisable(GL_DEPTH_TEST)
コード例 #5
0
    def init(self, ledtoolkitobject):
        self.facedata = faceicon.faceicon()
        self.logodata = logo.logo()
        self.bgimagedata = bgimage.bgimage()
        self.freeworddata = freeword.freeword()
        self.anniversedata = anniverse.anniverse()
        self.endtransdata = endtrans.endtrans()
        self.dqxcal = dqxcalender.dqxcalender()
        self.clock = ledclock.ledclock()

        self.facedata.init(ledtoolkitobject)
コード例 #6
0
def main():
    os.system("cls")
    logo.logo()
    os.system("cls")

    # Initialise first player
    first = Player(input("Enter your name, captain:\n[o] > "))
    field_one = Field()
    while first.request_field(field_one) != "2":
        field_one = Field()
    input("Hit [Enter] to give control to other player:")

    # Initialise second player
    os.system('cls')
    second_in = input("Enter your name, captain:\n[o] >")
    while second_in == first.get_name():
        print("Enter other name:")
        second_in = input("Enter your name, captain:\n[o] >")
    second = Player(second_in)

    field_two = Field()
    while second.request_field(field_two) != "2":
        field_two = Field()

    input("Hit [Enter] to give control to other player step [1/2]:")
    os.system("cls")
    input("Hit [Enter] to give control to other player step [2/2]:")
    os.system("cls")

    # Start game
    x = Game({
        first.get_name(): field_one,
        second.get_name(): field_two
    }, [first, second], first)
    x.run()
    if input("Play again?").upper() == "YES":
        main()
コード例 #7
0
def corr(df):
    if __name__ == "__main__":
        a = parm(df)
        b = a.turn_out()
        c = logo(b)
        if len(c[1].split('.')[0]) == 1:  #方便字符串排序
            c[1] = '00' + c[1]
        if len(c[1].split('.')[0]) == 2 and c[1].split('.')[0][0] != '-':
            c[1] = '0' + c[1]
        if len(c[1].split('.')[0]) == 2 and c[1].split('.')[0][0] == '-':
            c[1] = '-00' + c[1][1:]
        if len(c[1].split('.')[0]) == 3 and c[1].split('.')[0][0] == '-':
            c[1] = '-0' + c[1][1:]
        c.append(c[0] + c[4])
    return c
コード例 #8
0
def main(a):

    spaced(500)
    logo(valuedLogo)
    spaced(5)
    print('Running ' + platformType)
    spaced(1)
    print('Type \'help\' for a list of commands')
    spaced(2)
    if (a):
        while (a):
            spaced(1)

            firstCommand = input('> ')

            spaced(1)

            if (firstCommand == 'help' or firstCommand == 'Help'
                    or firstCommand == 'HELP'):
                spaced(2)
                help()
                spaced(2)

            elif (firstCommand == 'gui' or firstCommand == 'Gui'
                  or firstCommand == 'GUI'):
                webpage = "index.html"
                webbrowser.get('firefox').open(webpage)
                webbrowser.get('chrome').open(webpage)
                os.system('start ' + webpage)

                if (webbrowser.Error()):
                    print('Error: Could not launch applet')
                else:
                    print('Launched')

            elif (firstCommand == 'I know'):
                I_Know()
            elif (firstCommand == 'sike8' or firstCommand == 'Sike8'
                  or firstCommand == 'SIKE8'):
                spaced(2)
                sike8()
                spaced(2)

            elif (firstCommand == 'random' or firstCommand == 'Random'
                  or firstCommand == 'RANDOM'):
                spaced(1)
                randomGen()
                spaced(1)

            elif (firstCommand == 'hackermode' or firstCommand == 'Hackermode'
                  or firstCommand == 'HACKERMODE'):
                print('Function stills to be written')

            elif (firstCommand == 'logo' or firstCommand == 'Logo'
                  or firstCommand == 'LOGO'):
                spaced(10)
                logo(valuedLogo)

            elif (firstCommand == 'clear' or firstCommand == 'Clear'
                  or firstCommand == 'CLEAR'):
                spaced(300)

            elif (firstCommand == 'exit' or firstCommand == 'Exit'
                  or firstCommand == 'EXIT'):
                spaced(2)
                print('Entering normal terminal mode')
                spaced(2)
                a = False
                exit
            else:
                print('Command \"' + firstCommand + '\" Unrecognized')

    else:
        spaced(2)
        print('Entering normal terminal mode')
        spaced(2)
        exit
コード例 #9
0
ファイル: rq1.py プロジェクト: rahlk/Bellwether
def relink():
    print("Relink\n------\n```")
    for file in ["Apache", "Safe", "Zxing"]:
        print('### ' + file)
        simulate(file, type='relink', tune=False).bellwether()
    print("```")


def other():
    print("Other\n------\n```")
    files = [x[0].split('/')[-1] for x in walk('Data/other/')][1:]
    for file in files:
        print('### ' + file)
        simulate(file, type='other', tune=False).bellwether()
    print("```")


if __name__ == "__main__":
    logo()  # Print logo
    # other()
    # nasa()
    jur()
    # aeeem()
    # relink()
    # attributes('jur')
    # attributes('nasa')
    # attributes('aeeem')
    # print("")
    # attributes('relink')
コード例 #10
0
ファイル: main.py プロジェクト: duy8208427/quark-engine
            print("")
            print("\t\t" + "Sequence show up in:")
            for seq_methon in self.same_sequence_show_up:
                print("\t\t" + repr(seq_methon))
        if self.check_item[4]:

            COLOR_OUTPUT_RED("\t[" + u"\u2713" + "]")
            COLOR_OUTPUT_GREEN(bold("5.Native API Use Same Parameter"))
            print("")
            for seq_operation in self.same_operation:
                print("\t\t" + repr(seq_operation))


if __name__ == "__main__":

    logo()

    parser = argparse.ArgumentParser()
    parser.add_argument("-e",
                        "--easy",
                        action="store_true",
                        help="show easy report")
    parser.add_argument("-d",
                        "--detail",
                        action="store_true",
                        help="show detail report")
    parser.add_argument("-a", "--apk", help="APK file", required=True)
    parser.add_argument("-r",
                        "--rule",
                        help="Rules folder need to be checked",
                        required=True)
コード例 #11
0
import webbrowser
import PruebaFunciones as PF
import Opciones as op
import logo as l
from tabulate import tabulate
import PersistenciayEstadisticas as pe
import os

#Creando archivo CSV de datos de usuario
nombre_archivo_usuario = "datos_usuario.csv"
datos_usuario = ["Carné", "Nombre", "Edad", "Carrera"]
op.comprobar_archivo(nombre_archivo_usuario,
                     datos_usuario)  #abriendo archivo o creando si no existe

l.logo()
print("\n\tINGRESO DE DATOS PERSONALES")
#Ingreso del carne del usuario
carne = input('Ingrese su carné:  ')

#Ingreso del nombre del usuario
nombre = input('Ingrese su nombre completo:  ')

#Ingreso de edad
edad = input('Ingrese su edad:  ')
edad = PF.comprobar(edad)

#Ingreso de carrera
carrera = input('Ingrese su carrera:  ')

datos_del_usuario = [carne, nombre, edad, carrera]
コード例 #12
0
    print(Yellow + Bold + "\n Em-Bomber starting...", end="\r")
    try:
        email = smtplib.SMTP("smtp.gmail.com", 587)
        email.starttls()
    except:
        print(" Unable to start.      ")
        print(Bold + White + Bg_red +
              "\n Make sure you have internet connection !")
        print(Clear)
        sys.exit()

    print(Bold + Green + " Em-Bomber started...")
    time.sleep(1)
    os.system("clear")
    #print banar
    print(logo.logo())
    print(" ")
    user_gmail = input(Cyan + Bold + "\n Attacker Email ID : ")
    user_password = getpass.getpass(Cyan + Bold + "\n Email password : "******"clear")
        print(Bold + White + Bg_red +
              "\n\tMake sure email and password both are correct !")
        print(Clear)
        email.quit()
        sys.exit()
    print(" ")
    receiver_gmail = input(Bold + Cyan + "\n Receiver Email ID : ")
    print(" ")