/var/www/inject.php:
<?php
# Das kann es auch sein! Nicht immer ist (wegen xml!) short-tags aktiviert
$stdin = fopen('php://stdin', 'r'); # Das wartet auf eine Eingabe?
while($line = fgets($stdin)){
#$line = preg_replace('/a/','A',$line); # zu teuer
$line = str_replace('a', 'A', $line);
#fwrite($stdout, $line);
# PHP Notice: Undefined variable: stdout in /tmp/test.php on line 7
# PHP Warning: fwrite() expects parameter 1 to be resource, null given in /tmp/test.php on line 7
#damit gehts erst mal bis geklärt ist, was $stdout sein soll.
echo $line;
}
?>
Jörg Reinholz