Skip to content

Commit

Permalink
needrestart improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Nov 25, 2024
1 parent d4bd00d commit 1939496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/exploits/linux/local/ubuntu_needrestart_lpe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def initialize(info = {})
)
)
register_advanced_options [
OptString.new('WritableDir', [ true, 'A directory where we can write files', '/tmp' ])
OptString.new('WritableDir', [ true, 'A directory where we can write and execute files', '/tmp' ])
]
end

Expand Down Expand Up @@ -149,7 +149,7 @@ def exploit

# Launch exploit with a timeout. We also have a vprint_status so if the user wants all the
# output from the exploit being run, they can optionally see it
timeout = 86_400 # 24 hours
timeout = 90_000 # 25 hours
print_status 'Launching exploit, and waiting for needrestart to run...'
output = cmd_exec "PYTHONPATH=\"#{base_dir}\" python3 '#{py_stub_path}'", nil, timeout
output.each_line { |line| vprint_status line.chomp }
Expand Down

0 comments on commit 1939496

Please sign in to comment.