From feb4fea19e400a9b4240080515568f196552648c Mon Sep 17 00:00:00 2001 From: Dhayalan Date: Wed, 22 May 2019 00:55:33 +0200 Subject: [PATCH] Update vsftpd.py Importing DOWNLOAD_TIMEOUT from the model --- monkey/infection_monkey/exploit/vsftpd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/infection_monkey/exploit/vsftpd.py b/monkey/infection_monkey/exploit/vsftpd.py index ab848cc0d..5ecbcdd1d 100644 --- a/monkey/infection_monkey/exploit/vsftpd.py +++ b/monkey/infection_monkey/exploit/vsftpd.py @@ -7,7 +7,7 @@ from common.utils.exploit_enum import ExploitType from infection_monkey.exploit import HostExploiter from infection_monkey.exploit.tools import build_monkey_commandline from infection_monkey.exploit.tools import get_target_monkey, HTTPTools, get_monkey_depth -from infection_monkey.model import MONKEY_ARG, CHMOD_MONKEY, RUN_MONKEY, WGET_HTTP_UPLOAD +from infection_monkey.model import MONKEY_ARG, CHMOD_MONKEY, RUN_MONKEY, WGET_HTTP_UPLOAD, DOWNLOAD_TIMEOUT from infection_monkey.network.tools import check_tcp_port from infection_monkey.exploit.web_rce import WebRCE from logging import getLogger @@ -24,7 +24,6 @@ ULIMIT_V = "ulimit -v " # To increase the memory limit UNLIMITED = "unlimited;" USERNAME = b'USER D3fa1t:)\n'# Ftp Username PASSWORD = b'PASS please\n' # Ftp Password -DOWNLOAD_TIMEOUT = 300 FTP_TIME_BUFFER = 1 # In seconds class VSFTPDExploiter(HostExploiter):