Bugfix SecureWarning, Feature URL Scheme Detection

pull/16/head v1.0-alpha
Swissky 2017-09-09 12:11:23 +02:00
parent ab4c5076bb
commit e78cfda969
3 changed files with 14 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Dependencies
``` ```
pip install requests pip install requests
pip install tornado pip install tornado
pip install lxml
``` ```
Install Install

View File

@ -33,6 +33,16 @@ def display(msg):
return "\033[0m | " + msg + "\033[0m" return "\033[0m | " + msg + "\033[0m"
"""
name : format_url()
description : will format the URL to provide an http
"""
def format_url(url):
if not "http" in url:
return "http://"+url
return url
""" """
name : database_update() name : database_update()
description : download and update the database from wpscan website description : download and update the database from wpscan website

View File

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import requests import requests
import argparse import argparse
from requests.packages.urllib3.exceptions import InsecureRequestWarning # Required for bad https website
from engine.core import * from engine.core import *
from engine.load_plugins import * from engine.load_plugins import *
from engine.wordpress import * from engine.wordpress import *
@ -36,6 +37,7 @@ if __name__ == "__main__":
# Check wordpress url # Check wordpress url
if results.url != None: if results.url != None:
# Disable warning for ssl verify=False # Disable warning for ssl verify=False
# NOTE: This should not be removed until a correct solution is found
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# Update scripts # Update scripts
@ -43,7 +45,7 @@ if __name__ == "__main__":
database_update() database_update()
# Build a new wordpress object # Build a new wordpress object
wp = Wordpress(results.url, results.random_agent, results.nocheck) wp = Wordpress(format_url(results.url), results.random_agent, results.nocheck)
# Launch bruteforce # Launch bruteforce
Brute_Engine(wp, results.brute) Brute_Engine(wp, results.brute)