print "[ " + Fore.RED + "FAILED" + Style.RESET_ALL + " ]"
                if len(e.line) > 2:
                    print e.line, e.message
                pass

        else:
            err_msg = "You must specify the target URL."
            print settings.print_error_msg(err_msg)
            sys.exit(0)

        # Launch injection and exploitation controller.
        controller.do_check(url, filename)

    except KeyboardInterrupt:
        abort_msg = "Ctrl-C was pressed!"
        print "\n" + settings.print_abort_msg(abort_msg)
        if settings.SHOW_LOGS_MSG == True:
            logs.logs_notification(filename)
        print ""
        if menu.options.url:
            session_handler.clear(menu.options.url)
        sys.exit(0)

    except SystemExit:
        if settings.SHOW_LOGS_MSG == True:
            logs.logs_notification(filename)
        print ""
        if menu.options.url:
            session_handler.clear(menu.options.url)
        sys.exit(0)
Exemple #2
0
    else:
      err_msg = "You must specify the target URL."
      print settings.print_critical_msg(err_msg)
      sys.exit(0)

    # Retrieve everything from the supported enumeration options.
    if menu.options.enum_all:
      checks.enable_all_enumeration_options()

    # Launch injection and exploitation controller.
    controller.do_check(url, filename)

  except KeyboardInterrupt: 
    abort_msg = "Ctrl-C was pressed!"
    print "\n" + settings.print_abort_msg(abort_msg)
    if settings.SHOW_LOGS_MSG == True:
      logs.logs_notification(filename)
    print ""
    if menu.options.url:
      session_handler.clear(menu.options.url)
    sys.exit(0)

  except SystemExit: 
    if settings.SHOW_LOGS_MSG == True:
      logs.logs_notification(filename)
    print ""
    if menu.options.url:
      session_handler.clear(menu.options.url)
    sys.exit(0)
  
Exemple #3
0
            if response != False:
                filename = logs_filename_creation()
                main(filename, url)

except KeyboardInterrupt:
    abort_msg = "User aborted procedure "
    abort_msg += "during the " + checks.assessment_phase()
    abort_msg += " phase (Ctrl-C was pressed)."
    new_line = "\n"
    if settings.FILE_BASED_STATE or \
       settings.TEMPFILE_BASED_STATE :
        if not settings.DETECTION_PHASE and \
           settings.EXPLOITATION_PHASE:
            if settings.VERBOSITY_LEVEL != 0:
                new_line = ""
    print(new_line + settings.print_abort_msg(abort_msg))
    try:
        logs.print_logs_notification(filename, url)
        print("")
    except NameError:
        raise SystemExit()

except SystemExit:
    print("")
    raise SystemExit()

except EOFError:
    err_msg = "Exiting, due to EOFError."
    print(settings.print_error_msg(err_msg))
    raise SystemExit()
Exemple #4
0
      if response != False:
        filename = logs_filename_creation()
        main(filename, url)

except KeyboardInterrupt:
  abort_msg = "User aborted procedure "
  abort_msg += "during the " + checks.assessment_phase() 
  abort_msg += " phase (Ctrl-C was pressed)."
  new_line = "\n"
  if settings.FILE_BASED_STATE or \
     settings.TEMPFILE_BASED_STATE :
     if not settings.DETECTION_PHASE and \
        settings.EXPLOITATION_PHASE:
      if settings.VERBOSITY_LEVEL != 0: 
        new_line = ""
  print new_line + settings.print_abort_msg(abort_msg)
  try:
    logs.print_logs_notification(filename, url)
    print ""
  except NameError:
    raise SystemExit()

except SystemExit: 
  print ""
  raise SystemExit()

except EOFError:
  err_msg = "Exiting, due to EOFError."
  print settings.print_error_msg(err_msg)
  raise SystemExit()