Code Mẫu:
<?php
$sites = array("http://www.md5cracker.com/index.php");
$post = array("?pass=21232f297a57a5a743894a0e4a801fc3&option=crack&send=Go+%3E%3E");
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $sites[0]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_REFERER, $sites[0]);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post[0]);
$res=curl_exec($ch);
curl_close($ch);
print_r($res);
?>
<?php
$sites = array("http://www.md5cracker.com/index.php");
$post = array("?pass=21232f297a57a5a743894a0e4a801fc3&option=crack&send=Go+%3E%3E");
for ($i = 0; $i<=count($sites); $i++){
$site = $sites[$i];
$postfield = $post[$i];
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_REFERER, $site);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfield);
$res=curl_exec($ch);
curl_close($ch);
}
print_r($res);
|
|