Coverage for /private/tmp/im/impacket/impacket/examples/ntlmrelayx/utils/config.py : 23%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Config utilities # # Author: # Dirk-jan Mollema / Fox-IT (https://www.fox-it.com) # # Description: # Configuration class which holds the config specified on the # command line, this can be passed to the tools' servers and clients
self.daemon = True
# Set the value of the interface ip address self.interfaceIp = None
self.listeningPort = None
self.domainIp = None self.machineAccount = None self.machineHashes = None self.target = None self.mode = None self.redirecthost = None self.outputFile = None self.attacks = None self.lootdir = None self.randomtargets = False self.encoding = None self.ipv6 = False self.remove_mic = False
# WPAD options self.serve_wpad = False self.wpad_host = None self.wpad_auth_num = 0 self.smb2support = False
# WPAD options self.serve_wpad = False self.wpad_host = None self.wpad_auth_num = 0 self.smb2support = False
# SMB options self.exeFile = None self.command = None self.interactive = False self.enumLocalAdmins = False
# LDAP options self.dumpdomain = True self.addda = True self.aclattack = True self.validateprivs = True self.escalateuser = None
# MSSQL options self.queries = []
# Registered protocol clients self.protocolClients = {}
# SOCKS options self.runSocks = False self.socksServer = None
# HTTP options self.remove_target = False
# WebDAV options self.serve_image = False
self.smb2support = value
self.protocolClients = clients
self.interfaceIp = ip
self.listeningPort = port
self.runSocks = socks self.socksServer = server
self.outputFile = outputFile
self.target = target
self.exeFile = filename
self.command = command
self.enumLocalAdmins = enumLocalAdmins
self.encoding = encoding
self.mode = mode
self.attacks = attacks
self.lootdir = lootdir
self.redirecthost = redirecthost
# Don't set this if we're not exploiting it if not self.remove_target: return if machineAccount is None or machineHashes is None or domainIp is None: raise Exception("You must specify machine-account/hashes/domain all together!") self.machineAccount = machineAccount self.machineHashes = machineHashes self.domainIp = domainIp
self.randomtargets = randomtargets
self.dumpdomain = dumpdomain self.addda = addda self.aclattack = aclattack self.validateprivs = validateprivs self.escalateuser = escalateuser self.addcomputer = addcomputer self.delegateaccess = delegateaccess
self.queries = queries
self.interactive = interactive
self.keyword = keyword self.mailbox = mailbox self.dump_all = dump_all self.dump_max = dump_max
self.ipv6 = use_ipv6
if wpad_host is not None: self.serve_wpad = True self.wpad_host = wpad_host self.wpad_auth_num = wpad_auth_num
self.remove_mic = remove_mic self.remove_target = remove_target
self.serve_image = serve_image |