Update bad config error.
parent
b652ebb44f
commit
6d3255a3b5
|
@ -35,8 +35,12 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
print_status "Stepping program to find PC..."
|
print_status "Stepping program to find PC..."
|
||||||
gdb_pc, gdb_arch = process_info.values_at :pc, :arch
|
gdb_pc, gdb_arch = process_info.values_at :pc, :arch
|
||||||
|
|
||||||
unless arch.include? gdb_arch
|
unless payload.arch.include? gdb_arch
|
||||||
fail_with('The payload architecture is incorrect.')
|
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
|
end
|
||||||
|
|
||||||
print_status "Writing payload at #{gdb_pc}..."
|
print_status "Writing payload at #{gdb_pc}..."
|
||||||
|
|
Loading…
Reference in New Issue