From ff263812fc9d13c8fd3d0cc30db9d07c1d0c8084 Mon Sep 17 00:00:00 2001 From: Brandon Knight Date: Fri, 28 Apr 2017 21:26:53 -0400 Subject: [PATCH] Fix msftidy warnings Remove explicitly loading msf/core and self.class from the register_ functions. --- modules/exploits/windows/local/ps_wmi_exec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/exploits/windows/local/ps_wmi_exec.rb b/modules/exploits/windows/local/ps_wmi_exec.rb index 7db87777c2..e332ddf623 100644 --- a/modules/exploits/windows/local/ps_wmi_exec.rb +++ b/modules/exploits/windows/local/ps_wmi_exec.rb @@ -49,7 +49,7 @@ class MetasploitModule < Msf::Exploit::Local OptString.new('PASSWORD', [false, "Password to authenticate with"]), OptString.new('DOMAIN', [false, "Domain or machine name"]), - ], self.class) + ]) register_advanced_options( [ @@ -60,7 +60,7 @@ class MetasploitModule < Msf::Exploit::Local false ]), - ], self.class) + ]) end