diff --git a/lib/rex/post/meterpreter/extensions/railgun/railgun.rb b/lib/rex/post/meterpreter/extensions/railgun/railgun.rb index aaa9acfe3c..911415a99b 100644 --- a/lib/rex/post/meterpreter/extensions/railgun/railgun.rb +++ b/lib/rex/post/meterpreter/extensions/railgun/railgun.rb @@ -121,6 +121,17 @@ module Rex end end + class BufferItem + attr_reader :belongs_to_param_n, :addr, :length_in_bytes, :datatype + + def initialize(belongs_to_param_n, addr, length_in_bytes, datatype) + @belongs_to_param_n = belongs_to_param_n + @addr = addr + @length_in_bytes = length_in_bytes + @datatype = datatype + end + end + # shared functions module DLLHelper @@ -230,17 +241,6 @@ module Rex include DLLHelper - class BufferItem - attr_reader :belongs_to_param_n, :addr, :length_in_bytes, :datatype - - def initialize(belongs_to_param_n, addr, length_in_bytes, datatype) - @belongs_to_param_n = belongs_to_param_n - @addr = addr - @length_in_bytes = length_in_bytes - @datatype = datatype - end - end - attr_accessor :functions def initialize(dll_path, client, win_consts) #