break only if 'make_nops' is able generate the nop sled

bug/bundler_fix
jvazquez-r7 2015-10-16 13:28:37 -05:00
parent f14776ab63
commit b788772215
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 1 additions and 2 deletions

View File

@ -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