Example #1
0
                    raise

            except urllib2.URLError, e:
                print colors.BGRED + "(x) Error: The host seems to be down!" + colors.RESET + "\n"
                sys.exit(0)

            except httplib.BadStatusLine, e:
                print e.line, e.message
                pass

        else:
            print colors.BGRED + "(x) Error: You must specify the target URL." + colors.RESET + "\n"
            sys.exit(0)

    #Check if defined "--proxy" option.
        if menu.options.proxy:
            proxy.do_check(url)

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

    except (KeyboardInterrupt, SystemExit):
        print ""
        sys.exit(0)


if __name__ == '__main__':
    main()

#eof
Example #2
0
        
      except httplib.BadStatusLine, e:
          print "[ " + Fore.RED + "FAILED" + Style.RESET_ALL + " ]"
          print e.line, e.message
          pass
        
    else:
      print Back.RED + "(x) Error: You must specify the target URL." + Style.RESET_ALL + "\n"
      sys.exit(0)

    # Check if defined "--proxy" option.
    if menu.options.proxy:
      proxy.do_check(url)

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

  except KeyboardInterrupt: 
    print "\n" + Back.RED + "(x) Aborted: Ctrl-C was pressed!" + Style.RESET_ALL
    logs.logs_notification(filename)
    print ""
    sys.exit(0)

  except SystemExit: 
    print ""
    sys.exit(0)

if __name__ == '__main__':
    main()
    
#eof
Example #3
0
      except urllib2.URLError, e:
	  print "[ " + colors.RED + "FAILED" + colors.RESET + " ]"
	  print colors.BGRED + "(x) Error: The host seems to be down!" + colors.RESET + "\n"
	  sys.exit(0)
	
      except httplib.BadStatusLine, e:
	  print "[ " + colors.RED + "FAILED" + colors.RESET + " ]"
	  print e.line, e.message
	  pass
	
    else:
      print colors.BGRED + "(x) Error: You must specify the target URL." + colors.RESET + "\n"
      sys.exit(0)
      
   #Check if defined "--proxy" option.
    if menu.options.proxy:
      proxy.do_check(url)

    # Launch injection and exploitation controller.
    controller.do_check(url)
    
  except (KeyboardInterrupt, SystemExit): 
    print ""
    sys.exit(0)
    
if __name__ == '__main__':
    main()
    
#eof