Remove exception stuff from the payloads

bug/bundler_fix
OJ 2013-12-06 09:26:46 +10:00
parent 5a0a2217dc
commit ccbf305de1
2 changed files with 4 additions and 20 deletions

View File

@ -51,16 +51,8 @@ module Payload::Windows::ReflectiveDllInject
end
def stage_payload(target_id=nil)
dll = ""
offset = 0
begin
dll, offset = load_rdi_dll(library_path)
raise "Can't find an exported ReflectiveLoader function!" unless offset
rescue
print_error( "Failed to read and parse Dll file: #{$!}" )
return
end
# Exceptions will be thrown by the mixin if there are issues.
dll, offset = load_rdi_dll(library_path)
exit_funk = [ @@exit_types['thread'] ].pack( "V" ) # Default to ExitThread for migration

View File

@ -51,16 +51,8 @@ module Payload::Windows::ReflectiveDllInject_x64
end
def stage_payload
dll = ""
offset = 0
begin
dll, offset = load_rdi_dll(library_path)
raise "Can't find an exported ReflectiveLoader function!" unless offset
rescue
print_error( "Failed to read and parse Dll file: #{$!}" )
return
end
# Exceptions will be thrown by the mixin if there are issues.
dll, offset = load_rdi_dll(library_path)
exit_funk = [ @@exit_types['thread'] ].pack( "V" ) # Default to ExitThread for migration