Skip to content

Commit

Permalink
allow no tested target
Browse files Browse the repository at this point in the history
  • Loading branch information
worawit committed Jul 17, 2017
1 parent 6f47613 commit eafb47d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eternalblue_exploit7.py
Expand Up @@ -12,6 +12,7 @@
- Windows 7 SP1 x64
- Windows 2008 R2 SP1 x64
- Windows 7 SP1 x86
- Windows 2008 SP1 x64
- Windows 2008 SP1 x86
Reference:
Expand Down Expand Up @@ -475,7 +476,7 @@ def exploit(target, shellcode, numGroomConn):
conn.login_standard('', '')
server_os = conn.get_server_os()
print('Target OS: '+server_os)
if not (server_os.startswith("Windows 7 ") or (server_os.startswith("Windows Server ") and ' 2008 ' in server_os)):
if not (server_os.startswith("Windows 7 ") or (server_os.startswith("Windows Server ") and ' 2008 ' in server_os) or server_os.startswith("Windows Vista")):
print('This exploit does not support this target')
sys.exit()

Expand Down

0 comments on commit eafb47d

Please sign in to comment.