Running this cURL script you can anonymously log into your Facebook account for some penny amount of time. For more details please comment and give feedback or ask questions .
<?php
$post_data['username'] = '###'; /*insert your facebook username/phone number*/
$post_data['password'] = '###'; /* your facebook password*/
//traverse array and prepare data for posting (key1=value1)
foreach ( $post_data as $key => $value) {
$post_items[] = $key . '=' . $value;
}
//create the final string to be posted using implode()
$post_string = implode ('&', $post_items);
//create cURL connection
$curl_connection = curl_init('https://www.facebook.com/login.php');
//set options
curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
//set data to be posted
curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);
//perform our request
$result = curl_exec($curl_connection);
if (stristr($result, "loginerrors"))
{
echo "There was an error. You were not logged in!";
}else{
echo "Succes! You were logged in!";
}
//close the connection
curl_close($curl_connection);
?>
No comments:
Post a Comment