diff --git a/lib/msf/core/exploit/http/server.rb b/lib/msf/core/exploit/http/server.rb index 3ea4f57af8..53b02bf42a 100644 --- a/lib/msf/core/exploit/http/server.rb +++ b/lib/msf/core/exploit/http/server.rb @@ -545,8 +545,8 @@ protected # Returns the heaplib javascript, including any custom javascript supplied # by the caller. # - def heaplib(custom_js = '') - Rex::Exploitation::HeapLib.new(custom_js).to_s + def heaplib(custom_js = '', opts = {}) + Rex::Exploitation::HeapLib.new(custom_js, opts).to_s end def js_base64