Update bad config error.

bug/bundler_fix
Joe Vennix 2014-08-25 14:43:23 -05:00
parent b652ebb44f
commit 6d3255a3b5
No known key found for this signature in database
GPG Key ID: 127B05FB3E85A2B0
1 changed files with 6 additions and 2 deletions

View File

@ -35,8 +35,12 @@ class Metasploit3 < Msf::Exploit::Remote
print_status "Stepping program to find PC..."
gdb_pc, gdb_arch = process_info.values_at :pc, :arch
unless arch.include? gdb_arch
fail_with('The payload architecture is incorrect.')
unless payload.arch.include? gdb_arch
fail_with(
Msf::Exploit::Failure::BadConfig,
"The payload architecture is incorrect: "+
"the payload is #{payload.arch.first}, but #{gdb_arch} was detected from gdb."
)
end
print_status "Writing payload at #{gdb_pc}..."