I might be totally wrong about this issue, but here if goes.
It is a security issue when using shell escapes (in CGI).
I have a program like
This generates this outputmy $cmd="ls"; my $arg1=" file; ls"; my $arg2=" file"; system($cmd,$arg1,$arg2); warn qx/$cmd $arg1 $arg2/; warn `$cmd $arg1 $arg2`;
What I want to achieve, is to capture the output of a command, which system will not allow.
Any suggestions?
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium
In reply to system versus qx security by mce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |