Land #10491, fix error generating PPC NOPS

GSoC/Meterpreter_Web_Console
Brent Cook 2018-08-20 15:54:17 -05:00
commit 484c340520
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class MetasploitModule < Msf::Nop
badchars = opts['BadChars'] || ''
random = opts['Random'] || datastore['RandomNops']
if( random and random.match(/^(t|y|1)/i) )
if random
1.upto(1024) do |i|
regs_d = (rand(0x8000 - 0x0800) + 0x0800).to_i
regs_b = [regs_d].pack('n').unpack('B*')[0][1, 15]