fix success/fail print statements

unstable
0a2940 2012-08-06 10:41:55 +02:00
parent 176f6ea41e
commit f5b3886e8c
1 changed files with 2 additions and 2 deletions

View File

@ -94,9 +94,9 @@ class Metasploit3 < Msf::Post
if cmd_exec("(grep Metasploit /etc/passwd > /dev/null && echo true) || echo false").include?("true")
then
print_good("Success. You should now be able to login or su to the 'metasploit' user with password 'metasploit'.")
print_good("Success. You should now be able to login or su to the '" + datastore['USERNAME'] + "' account")
else
print_error("Failed. You should manually verify the 'metasploit' user has not been added")
print_error("Failed. You should manually verify the '" + datastore['USERNAME'] + "' user has not been added")
end
# 0a2940: Initially the plan was to have this post module switch user, upload & execute a new payload
# However beceause the session is not a terminal, su will not always allow this.