Пример #1
0
def main():
    try:
        move_paths_manager_to_internal_web2board_path()
        log.info("starting")
        try:
            set_w2b_path()
            start_logger()
        except:
            start_logger()  # starting logger in default
            log.exception("Unable to get custom web2board path")

        pm.RES_PATH = join(pm.MAIN_PATH, 'res')
        pm.RES_ICO_PATH = join(pm.RES_PATH, 'Web2board.ico')
        pm.RES_ICONS_PATH = join(pm.RES_PATH, 'icons')

        log.info("web2boardPath: %s", web2board_path)
        utils.kill_process("web2board")

        perform_factory_reset_if_needed()
        update_if_necessary()

        if should_start_app() and (msg_box is None or msg_box.successfully_ended):
            if is_factory_reset():
                sys.argv.pop(1)
            if not utils.is_windows():
                subprocess.call(['chmod', '0777', web2board_path])
            utils.open_file(web2board_path)
    except:
        log.exception("Unable to launch web2board")
        raise
Пример #2
0
def main():
    filename, frame = parse_args(sys.argv)
    f = open_file(filename)
    seqs = create_seqs(f)
    f.close()
    seqs_ORF_len = open_reading_frame(frame, seqs)
    print("The tupple containing open reading frames: %s " %
          pretty_print(seqs_ORF_len))
def main():
    filename, n = parse_args(sys.argv)
    f = open_file(filename)
    seqs = create_seqs(f)
    f.close()
    seqs_repeat = find_repeats(seqs, n)
    sorted_seqs_repeat = sorted(seqs_repeat.items(),
                                key=operator.itemgetter(1))
    print("The tupple containing repeats and number of repeats: %s" %
          sorted_seqs_repeat)
Пример #4
0
def brute_force(ip_address):
    file_name = './temp/' + ip_address + "_ssh.txt"
    command = 'hydra -t 10 -V -f -L ./resources/common_users.txt -P ./resources/common_passwords.txt ssh://' + ip_address + '>' + file_name
    utils.execute_enum_cmd1(hydra_brute, command)
    
    return utils.open_file(file_name)