Does any one know anything about running commands?[SOLVED?]
Posted: Wed Nov 24, 2004 12:50 pm
Hi All. I have a php form, Code is given, and I can NOT change it:
If I have - echo `$testecho`; end in the form enter UNIX command it runs.
How should I enter command into the form to make it run when I have "echo $testecho;"?
If I have - echo $testecho; And enter whoami i get -
Entered value dispayed here: whoami
BUT if I have - echo `$testecho`; And enter whoami i get -
Entered value dispayed here: username
Thanx alot!
Code: Select all
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Echo test</title> </head>
<body>
<p> Entered value dispayed here:
<?
if (isset($testecho))
{
echo $testecho;
}
?>
</p><br>
<form action="testecho.php" method="get">
<input type="text" name="testecho" value="<?= $testecho ?>">
<input type="submit" value="enter" name="enter">
</form>
</body></html>How should I enter command into the form to make it run when I have "echo $testecho;"?
If I have - echo $testecho; And enter whoami i get -
Entered value dispayed here: whoami
BUT if I have - echo `$testecho`; And enter whoami i get -
Entered value dispayed here: username
Thanx alot!