Skip to content

Commit

Permalink
Added space between command and stderr/stout redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
jheysel-r7 committed Jul 3, 2024
1 parent 9cfaa2e commit 1d602da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/exploits/linux/http/zyxel_parse_config_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def exploit
payload_filepath = "#{datastore['WRITABLE_DIR']}/#{filename}.qsr"

command = payload.raw
command += ' '
command += <<~CMD
2>/var/log/ztplog 1>/var/log/ztplog
(sleep 10 && /bin/rm -rf #{payload_filepath}) &
Expand Down

0 comments on commit 1d602da

Please sign in to comment.