regen payload after updating req.id, fixes #2341

git-svn-id: file:///home/svn/framework3/trunk@10042 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-08-18 20:01:55 +00:00
parent 0955e804df
commit 056711e186
2 changed files with 2 additions and 2 deletions

View File

@ -341,10 +341,10 @@ class Metasploit3 < Msf::Auxiliary
# Reuse our Racket object # Reuse our Racket object
n.l4.src_port = 53 n.l4.src_port = 53
n.l4.dst_port = sport.to_i n.l4.dst_port = sport.to_i
n.l4.payload = req.encode
xidbase.upto(xidbase+numxids-1) do |id| xidbase.upto(xidbase+numxids-1) do |id|
req.id = id req.id = id
n.l4.payload = req.encode
barbs.each do |barb| barbs.each do |barb|
n.l3.src_ip = barb[:addr].to_s n.l3.src_ip = barb[:addr].to_s
n.l4.fix!(n.l3.src_ip, n.l3.dst_ip) n.l4.fix!(n.l3.src_ip, n.l3.dst_ip)

View File

@ -332,10 +332,10 @@ class Metasploit3 < Msf::Auxiliary
# Reuse our Racket object # Reuse our Racket object
n.l4.src_port = 53 n.l4.src_port = 53
n.l4.dst_port = sport.to_i n.l4.dst_port = sport.to_i
n.l4.payload = req.encode
xidbase.upto(xidbase+numxids-1) do |id| xidbase.upto(xidbase+numxids-1) do |id|
req.id = id req.id = id
n.l4.payload = req.encode
barbs.each do |barb| barbs.each do |barb|
n.l3.src_ip = barb[:addr].to_s n.l3.src_ip = barb[:addr].to_s
n.l4.fix!(n.l3.src_ip, n.l3.dst_ip) n.l4.fix!(n.l3.src_ip, n.l3.dst_ip)