Agent: Fix function arguments in HTTPTools

This commit is contained in:
Shreya Malviya 2022-03-11 19:57:45 +05:30 committed by Ilija Lazoroski
parent fbfe229cf1
commit 399a344619
1 changed files with 5 additions and 2 deletions

View File

@ -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