Closed opcache closed 1 year ago
@opcache you can use -form
with variables like this:
shell2http -form / 'sh -c "$v_cmd"'
curl 'http://localhost:8080/?cmd=echo+123'
@opcache you can use
-form
with variables like this:shell2http -form / 'sh -c "$v_cmd"'
curl 'http://localhost:8080/?cmd=echo+123'
Oh, Thank you so much!
I want to define an interface that can execute any command. The executed command is passed through the shell parameter, such as curl 127.0.0.1:8080/get? shell="df -h"