示例#1
0
def srism():
    jar_file = 'SendRoutingInfoforSM.jar'

    try:
        srism = check_call(
            ['java', '-jar',
             os.path.join(srism_path, jar_file)])
        if srism == 0:
            lt = raw_input(
                '\nWould you like to go back to LocationTracking Menu? (y/n): '
            )
            if lt == 'y' or lt == 'yes':
                ss7main.ss7tracking()
            elif lt == 'n' or lt == 'no':
                attack_menu = raw_input(
                    'Would you like to choose another attacks category? (y/n): '
                )
                if attack_menu == 'y' or attack_menu == 'yes':
                    ss7main.attacksMenu()
                elif attack_menu == 'n' or attack_menu == 'no':
                    main_menu = raw_input(
                        'Would you like to go back to the main menu? (y/exit): '
                    )
                    if main_menu == 'y' or main_menu == 'yes':
                        sigploit.mainMenu()
                    elif main_menu == 'exit':
                        print 'TCAP End...'
                        sys.exit(0)

    except CalledProcessError as e:
        print "\033[31m[-]Error:\033[0m%s Failed to Launch, %s" % (jar_file,
                                                                   e.message)
        time.sleep(2)
        ss7main.ss7tracking()
示例#2
0
def psi():
    jar_file = 'ProvideSubscriberInfo.jar'

    try:
        psi = check_call(['java', '-jar', os.path.join(psi_path, jar_file)])
        if psi == 0:
            lt = raw_input(
                '\nWould you like to go back to LocationTracking Menu? (y/n): '
            )
            if lt == 'y' or lt == 'yes':
                ss7main.ss7tracking()
            elif lt == 'n' or lt == 'no':
                attack_menu = raw_input(
                    'Would you like to choose another attacks category? (y/n): '
                )
                if attack_menu == 'y' or attack_menu == 'yes':
                    ss7main.attacksMenu()
                elif attack_menu == 'n' or attack_menu == 'no':
                    main_menu = raw_input(
                        'Would you like to go back to the main menu? (y/exit): '
                    )
                    if main_menu == 'y' or main_menu == 'yes':
                        sigploit.mainMenu()
                    elif main_menu == 'exit':
                        print 'TCAP End...'
                        sys.exit(0)

    except CalledProcessError as e:
        print "\033[31m[-]Error:\033[0m" + jar_file + " Failed to Launch, " + e.message
        time.sleep(2)
        ss7main.ss7tracking()