Update vsftpd.py

Importing DOWNLOAD_TIMEOUT from the model
This commit is contained in:
Dhayalan 2019-05-22 00:55:33 +02:00
parent 8d55229ce7
commit feb4fea19e
1 changed files with 1 additions and 2 deletions

View File

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