Land #4731, fix fail_with message
commit
1f7bee35b5
|
@ -144,7 +144,7 @@ class Metasploit3 < Msf::Post
|
||||||
# Check whether target system is locked
|
# Check whether target system is locked
|
||||||
locked = client.railgun.user32.GetForegroundWindow()['return']
|
locked = client.railgun.user32.GetForegroundWindow()['return']
|
||||||
if locked == 0
|
if locked == 0
|
||||||
fail_with(Failure::Unknown, "Target system is locked. This post module cannot click on Outlooks security warning when the target system is locked")
|
fail_with(Failure::Unknown, "Target system is locked. This post module cannot click on Outlook's security warning when the target system is locked.")
|
||||||
end
|
end
|
||||||
|
|
||||||
case action.name
|
case action.name
|
||||||
|
|
|
@ -109,7 +109,7 @@ class Metasploit3 < Msf::Post
|
||||||
# Check whether target system is locked
|
# Check whether target system is locked
|
||||||
locked = client.railgun.user32.GetForegroundWindow()['return']
|
locked = client.railgun.user32.GetForegroundWindow()['return']
|
||||||
if locked == 0
|
if locked == 0
|
||||||
fail_with(Failure::Unknown, "Target system is locked. This post module cannot click on Outlooks security warning when the target system is locked")
|
fail_with(Failure::Unknown, "Target system is locked. This post module cannot start the loginprompt when the target system is locked.")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Switch to check whether a specific process needs to be monitored, or just show the popup immediatly.
|
# Switch to check whether a specific process needs to be monitored, or just show the popup immediatly.
|
||||||
|
|
Loading…
Reference in New Issue