Fixed HTTP protocol exiting during setup and pass pol enumeration

main
byt3bl33d3r 2017-05-05 15:10:42 -06:00
parent c26d993db4
commit c71692e576
2 changed files with 8 additions and 8 deletions

View File

@ -17,13 +17,6 @@ from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += ':ANY:ALL'
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
try:
from splinter import Browser
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
except ImportError:
print highlight('[!] HTTP protocol requires splinter and phantomjs', 'red')
exit(1)
class http(connection):
def __init__(self, args, db, host):
@ -34,6 +27,13 @@ class http(connection):
self.transport = None
self.port = None
try:
from splinter import Browser
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
except ImportError:
print highlight('[!] HTTP protocol requires splinter and phantomjs', 'red')
exit(1)
if self.hostname.startswith('http://') or self.hostname.startswith('https://'):
port_dict = {'http': 80, 'https': 443}
self.url = self.hostname

View File

@ -70,7 +70,7 @@ class PassPolDump:
def __init__(self, connection):
self.logger = connection.logger
self.addr = connection.host
self.protocol = connection.args.smb_port
self.protocol = connection.args.port
self.username = connection.username
self.password = connection.password
self.domain = connection.domain