break only if 'make_nops' is able generate the nop sled
parent
f14776ab63
commit
b788772215
|
@ -1034,12 +1034,11 @@ class Exploit < Msf::Module
|
|||
nop_sled = nop.generate_sled(count,
|
||||
'BadChars' => payload_badchars || '',
|
||||
'SaveRegisters' => save_regs)
|
||||
break
|
||||
rescue
|
||||
wlog("#{self.refname}: Nop generator #{nop.refname} failed to generate sled for exploit: #{$!}",
|
||||
'core', LEV_0)
|
||||
end
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
nop_sled
|
||||
|
|
Loading…
Reference in New Issue