diff --git a/modules/exploits/windows/local/persistence_service.rb b/modules/exploits/windows/local/persistence_service.rb index 771e41e2dc..2690d38ca3 100644 --- a/modules/exploits/windows/local/persistence_service.rb +++ b/modules/exploits/windows/local/persistence_service.rb @@ -21,7 +21,6 @@ class MetasploitModule < Msf::Exploit::Local }, 'License' => MSF_LICENSE, 'Author' => [ 'Green-m ' ], - 'Version' => '$Revision:1$', 'Platform' => [ 'windows' ], 'Targets' => [['Windows', {}]], 'SessionTypes' => [ 'meterpreter', 'shell'], @@ -40,7 +39,6 @@ class MetasploitModule < Msf::Exploit::Local OptString.new('SERVICE_NAME', [false, 'The name of service. Random string as default.' ]), OptString.new('SERVICE_DESCRIPTION', [false, 'The description of service. Random string as default.' ]) ]) - end # Run Method for when run command is issued @@ -139,7 +137,6 @@ class MetasploitModule < Msf::Exploit::Local fd.close end - # Function for creating log folder and returning log path #------------------------------------------------------------------------------- def log_file @@ -172,7 +169,6 @@ class MetasploitModule < Msf::Exploit::Local @clean_up_rc = "execute -H -f sc.exe -a \"delete #{@service_name}\"\n" + @clean_up_rc @clean_up_rc = "execute -H -f sc.exe -a \"stop #{@service_name}\"\n" + @clean_up_rc - end def metsvc_template(buf)