We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b652ebb commit 6d3255aCopy full SHA for 6d3255a
modules/exploits/multi/gdb/gdb_server_exec.rb
@@ -35,8 +35,12 @@ def exploit
35
print_status "Stepping program to find PC..."
36
gdb_pc, gdb_arch = process_info.values_at :pc, :arch
37
38
- unless arch.include? gdb_arch
39
- fail_with('The payload architecture is incorrect.')
+ unless payload.arch.include? gdb_arch
+ fail_with(
40
+ Msf::Exploit::Failure::BadConfig,
41
+ "The payload architecture is incorrect: "+
42
+ "the payload is #{payload.arch.first}, but #{gdb_arch} was detected from gdb."
43
+ )
44
end
45
46
print_status "Writing payload at #{gdb_pc}..."
0 commit comments