Skip to content

Commit 6d3255a

Browse files
committed
Update bad config error.
1 parent b652ebb commit 6d3255a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/exploits/multi/gdb/gdb_server_exec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ def exploit
3535
print_status "Stepping program to find PC..."
3636
gdb_pc, gdb_arch = process_info.values_at :pc, :arch
3737

38-
unless arch.include? gdb_arch
39-
fail_with('The payload architecture is incorrect.')
38+
unless payload.arch.include? gdb_arch
39+
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+
)
4044
end
4145

4246
print_status "Writing payload at #{gdb_pc}..."

0 commit comments

Comments
 (0)