Quick actions

cmd+k|ctrl+k

Navigation

Languages

test_escapeshellcmd

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2019-09-19T03:27:55Z

Updated

2019-09-19T03:27:55Z

<?php

// 我们故意允许任意数量的参数
$command = './configure '.$_POST['configure_options'];

$escaped_command = escapeshellcmd($command);

 
system($escaped_command);

?>
INFO