oops, forgot to update fmtstr_count_printed
git-svn-id: file:///home/svn/framework3/trunk@7785 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d56daab7d8
commit
318750c68c
|
@ -192,9 +192,10 @@ module Exploit::FormatString
|
|||
arr.each do |el|
|
||||
prec = fmtstr_target_short(el[0], npr)
|
||||
# this gets popped in order to advance the column (dpa doesn't need these)
|
||||
if not @use_dpa and prec > 0
|
||||
if not @use_dpa and prec >= 8
|
||||
num += 4
|
||||
end
|
||||
|
||||
# account for the addr to write to
|
||||
num += 4
|
||||
npr = el[0]
|
||||
|
@ -203,7 +204,7 @@ module Exploit::FormatString
|
|||
end
|
||||
|
||||
#
|
||||
# generate the number to be used for precision that will create
|
||||
# Generate the number to be used for precision that will create
|
||||
# the specified value to write
|
||||
#
|
||||
def fmtstr_target_short(value, num_printed)
|
||||
|
@ -214,7 +215,7 @@ module Exploit::FormatString
|
|||
end
|
||||
|
||||
#
|
||||
# generate a fmt that will advance the printed count by the specified amount
|
||||
# Generate a fmt that will advance the printed count by the specified amount
|
||||
#
|
||||
def fmtstr_advance_count(prec)
|
||||
|
||||
|
@ -248,7 +249,7 @@ module Exploit::FormatString
|
|||
end
|
||||
|
||||
#
|
||||
# read a single 32-bit integer from the stack at the specified offset
|
||||
# Read a single 32-bit integer from the stack at the specified offset
|
||||
#
|
||||
def fmtstr_stack_read(offset, extra = '')
|
||||
|
||||
|
|
Loading…
Reference in New Issue