Skip to content

Commit 0e18d69

Browse files
committed
Add extended mode to prevent service from dying.
1 parent 4293500 commit 0e18d69

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/msf/core/exploit/gdb.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ def run(filename)
158158
read_response
159159
end
160160

161+
def enable_extended_mode
162+
send_cmd("!")
163+
read_response
164+
end
165+
161166
# Performs a handshake packet exchange
162167
# @param features [String] the list of supported features to tell the remote
163168
# host that the client supports (defaults to +DEFAULT_GDB_FEATURES+)

modules/exploits/multi/gdb/gdb_server_exec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def exploit
4343
print_status "Performing handshake with gdbserver..."
4444
handshake
4545

46+
enable_extended_mode
47+
4648
begin
4749
print_status "Stepping program to find PC..."
4850
gdb_data = process_info

0 commit comments

Comments
 (0)