Update vsftpd.py

Better exception log
This commit is contained in:
Dhayalan 2019-03-12 19:44:45 +01:00
parent bb8a1c5c01
commit 47baea039a
1 changed files with 5 additions and 4 deletions

View File

@ -42,8 +42,8 @@ class VSFTPDExploiter(HostExploiter):
ftp_socket.close()
LOG.info('[+] Triggered backdoor')
except Exception:
LOG.info('[!] Failed to trigger backdoor on %s' , self.host.ip_addr)
except socket.error as e:
LOG.error('[!] Failed to trigger backdoor on %s' , self.host.ip_addr)
try:
LOG.info('[*] Attempting to connect to backdoor...')
@ -111,8 +111,9 @@ class VSFTPDExploiter(HostExploiter):
self._exploit_info['Vulnerability'] = {"Success":"True"}
except Exception:
LOG.info('[!] Failed to connect to backdoor on %s:6200', self.host.ip_addr)
except socket.error as e:
LOG.error('[!] Failed to connect to backdoor on %s:6200', self.host.ip_addr)
LOG.error('Error Connecting to backdoor. Error: %s' % e)
return False
return True