lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_helper.rb in librex-0.0.63 vs lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_helper.rb in librex-0.0.65
- old
+ new
@@ -30,11 +30,11 @@
module Railgun
#
# shared functions
#
-#
+#
module DLLHelper
# converts ruby string to zero-terminated ASCII string
def str_to_ascii_z(str)
return str+"\x00"
@@ -131,18 +131,18 @@
#puts " adding #{buffer.length} bytes to heap blob"
layout[param_desc[1]] = BufferItem.new(param_idx, blob.length, buffer.length, param_desc[0])
blob += buffer
# sf: force 8 byte alignment to satisfy x64, wont matter on x86.
while( blob.length % 8 != 0 )
- blob += "\x00"
+ blob += "\x00"
end
#puts " heap blob size now #{blob.length}"
end
end
end
#puts " built buffer: #{direction}"
return [layout, blob]
end
-
+
end
-end; end; end; end; end; end;
+end; end; end; end; end; end;