allow no test targets

This commit is contained in:
worawit
2017-07-16 21:12:31 +07:00
parent 4f7b840caf
commit 3a4b8183b3

View File

@@ -748,10 +748,10 @@ def exploit(target, pipe_name):
if server_os.startswith("Windows 7 ") or server_os.startswith("Windows Server 2008 R2"): if server_os.startswith("Windows 7 ") or server_os.startswith("Windows Server 2008 R2"):
info['os'] = 'WIN7' info['os'] = 'WIN7'
info['method'] = exploit_matched_pairs info['method'] = exploit_matched_pairs
elif server_os.startswith("Windows 8") or server_os.startswith("Windows Server 2012 ") or server_os.startswith("Windows Server 2016 "): elif server_os.startswith("Windows 8") or server_os.startswith("Windows Server 2012 ") or server_os.startswith("Windows Server 2016 ") or server_os.startswith("Windows 10"):
info['os'] = 'WIN8' info['os'] = 'WIN8'
info['method'] = exploit_matched_pairs info['method'] = exploit_matched_pairs
elif server_os.startswith("Windows Server (R) 2008"): elif server_os.startswith("Windows Server (R) 2008") or server_os.startswith('Windows Vista'):
info['os'] = 'WIN7' info['os'] = 'WIN7'
info['method'] = exploit_fish_barrel info['method'] = exploit_fish_barrel
elif server_os.startswith("Windows Server 2003 "): elif server_os.startswith("Windows Server 2003 "):