Skip to content

Commit 0d573e1

Browse files
bcolesh00die
authored andcommitted
Support shell sessions
1 parent 45249d5 commit 0d573e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/exploits/linux/local/glibc_origin_expansion_priv_esc.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ def exploit
223223

224224
# Launch exploit
225225
print_status 'Launching exploit...'
226-
output = cmd_exec "#{exp_path}&"
226+
# The echo at the end of the command is required
227+
# else the original session may die
228+
output = cmd_exec "#{exp_path}& echo "
227229
output.each_line { |line| vprint_status line.chomp }
228230
end
229231
end

0 commit comments

Comments
 (0)