forked from p15670423/monkey
Agent: Fix function arguments in HTTPTools
This commit is contained in:
parent
fbfe229cf1
commit
399a344619
|
@ -16,9 +16,11 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
class HTTPTools(object):
|
||||
@staticmethod
|
||||
def try_create_locked_transfer(host, src_path, local_ip=None, local_port=None):
|
||||
def try_create_locked_transfer(
|
||||
host, src_path, agent_repository, local_ip=None, local_port=None
|
||||
):
|
||||
http_path, http_thread = HTTPTools.create_locked_transfer(
|
||||
host, src_path, local_ip, local_port
|
||||
host, src_path, agent_repository, local_ip, local_port
|
||||
)
|
||||
if not http_path:
|
||||
raise Exception("Http transfer creation failed.")
|
||||
|
@ -33,6 +35,7 @@ class HTTPTools(object):
|
|||
Create http server for file transfer with a lock
|
||||
:param host: Variable with target's information
|
||||
:param src_path: Monkey's path on current system
|
||||
:param agent_repository: Repository to download Monkey agents
|
||||
:param local_ip: IP where to host server
|
||||
:param local_port: Port at which to host monkey's download
|
||||
:return: Server address in http://%s:%s/%s format and LockedHTTPServer handler
|
||||
|
|
Loading…
Reference in New Issue