Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix modules broken by @wchen-r7 's 4275a65407389f2d04d4cf72e788d826ee… #7069

Merged
merged 1 commit into from
Jul 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/exploits/windows/local/bthpan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def exploit
fail_with(Failure::None, 'Session is already elevated')
end

unless check == Exploit::CheckCode::Vulnerable
if check == Exploit::CheckCode::Safe
fail_with(Failure::NotVulnerable, "Exploit not available on this system")
end

Expand Down
4 changes: 3 additions & 1 deletion modules/exploits/windows/local/mqac_write.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def exploit

# Running on Windows XP versions that aren't listed in the supported list
# results in a BSOD and so we should not let that happen.
return unless check == Exploit::CheckCode::Appears
if check == Exploit::CheckCode::Safe
fail_with(Failure::NotVulnerable, "Exploit not available on this system")
end

base_addr = 0xffff
handle = open_device('\\\\.\\MQAC', 'FILE_SHARE_WRITE|FILE_SHARE_READ', 0, 'OPEN_EXISTING')
Expand Down
6 changes: 3 additions & 3 deletions modules/exploits/windows/local/ms13_053_schlamperei.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def initialize(info={})
def check
os = sysinfo["OS"]
unless (os =~ /windows/i)
return Exploit::CheckCode::Unknown
return Exploit::CheckCode::Safe
end

file_path = expand_path("%windir%") << "\\system32\\win32k.sys"
Expand All @@ -81,7 +81,7 @@ def check
return Exploit::CheckCode::Appears if revision < 22348
end
end
return Exploit::CheckCode::Unknown
return Exploit::CheckCode::Safe
end


Expand All @@ -96,7 +96,7 @@ def exploit
fail_with(Failure::NoTarget, "Running against 64-bit systems is not supported")
end

unless check == Exploit::CheckCode::Vulnerable
if check == Exploit::CheckCode::Safe
fail_with(Failure::NotVulnerable, "Exploit not available on this system")
end

Expand Down
2 changes: 1 addition & 1 deletion modules/exploits/windows/local/ms14_070_tcpip_ioctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def exploit
fail_with(Failure::NoTarget, "Running against 64-bit systems is not supported")
end

unless check == Exploit::CheckCode::Vulnerable
if check == Exploit::CheckCode::Safe
fail_with(Failure::NotVulnerable, "Exploit not available on this system")
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def exploit
fail_with(Failure::NoTarget, "Running against 64-bit systems is not supported")
end

unless check == Exploit::CheckCode::Vulnerable
if check == Exploit::CheckCode::Safe
fail_with(Failure::NotVulnerable, "Exploit not available on this system")
end

Expand Down