JnK13

fb react by wangur team

May 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. <?php
  2.  
  3. $versi='3.3';
  4. $server='http://wangur.uk.to';
  5. $dsc='Fitur Baru.. Silahkan Di Update Sekarang Bro.';
  6. echo'<style>hr {
  7. margin : 3px;
  8. border-color : #f0f0f0 #fff #fff;
  9. border-style : solid;
  10. border-width : 1px;
  11. }
  12. </style>';
  13.  
  14. if(file_exists('dataLog.php')){
  15. include'dataLog.php';
  16. }
  17.  
  18. $bot = new bot($wangur);
  19. $bot-> kopling=$koplinge;
  20.  
  21. class bot{
  22. private $wangur;
  23. public $kopling;
  24.  
  25. private function get_contents($url,$type=null,$fields=null){
  26. $opts = array(
  27. 42 => false,
  28. 19913 => 1,
  29. 10002 => $url,
  30. 52 => false,
  31. 10018 => 'Opera/9.80 (Series 60; Opera Mini/6.5.27309/34.1445; U; en) Presto/2.8.119 Version/11.10',
  32. 78 => 5,
  33. 13 => 5,
  34. 47 => false,
  35. );
  36. $ch=curl_init();
  37. if($type){
  38. if($type == 1){
  39. $opts[10082] = 'coker_log';
  40. }
  41. if($type == 3){
  42. $opts[42] = false;
  43.  
  44. }
  45. $opts[10031] = 'coker_log';
  46. }
  47. if($fields){
  48. $opts[47] = false;
  49. $opts[10015] = $fields;
  50. }
  51. curl_setopt_array($ch,$opts);
  52. $result = curl_exec($ch);
  53. curl_close($ch);
  54. return $result;
  55. }
  56.  
  57. public function cek(){
  58. $url = $this->getUrl('m','home.php');
  59. $getToken = $this->get_contents($url,3);
  60. $cek=strstr($getToken,'buddylist.php');
  61. if($cek){
  62. return true;
  63. }
  64. else{ return false;
  65. }
  66. }
  67. public function home(){
  68.  
  69. $url = $this->getUrl('m','home.php');
  70. $getToken = $this->get_contents($url,3);
  71. $konten = strstr($getToken,'class="_3-8w">');
  72. $ft_id = explode('/reactions/picker/',$konten);
  73. $limit=6; //count($ft_id);
  74. echo'<hr><hr><b>Type Reaction: <font color="red">'.$this->ubah($this->kopling,true).'</font></b><hr>';
  75.  
  76.  
  77. for($i=0; $i<=$limit; $i++){
  78. $id=$this->cut($ft_id[$i],'ft_id=','&');
  79. echo'<br>[-] '.$id;
  80. if($id){
  81.  
  82. if($this->getLog($id)){
  83.  
  84. echo' <font color="green">[ Ok ]</font>';
  85. $this -> getReaction($id);
  86. }else{
  87. echo' <font color="red">Success..</font>';
  88. }
  89. }
  90. }
  91. }
  92.  
  93.  
  94. public function getReaction($edo){
  95. $gerr ='https://mobile.facebook.com/reactions/picker/?ft_id='.$edo;
  96. $sukaa= $this->get_contents($gerr,3);
  97. $suka= $this->cut($sukaa,'tanggapan</h1>','<div id="static');
  98. $ha= explode('/ufi/reaction/',$suka);
  99. $liha= count($ha);
  100.  
  101. for($hai=0; $hai<=$liha; $hai++){
  102. $getha= $this -> cut($ha[$hai],$this->ubah($this->kopling,false),'"');
  103.  
  104. if($getha){
  105. $hajarm='https://mobile.facebook.com/ufi/reaction/?ft_ent_identifier='.$edo.'&amp;reaction_'.$this->ubah($this->kopling,false).''.$getha;
  106. $hajar= str_replace('&amp;','&',$hajarm);
  107. echo $this->get_contents($hajar,3);
  108.  
  109. }
  110. }
  111. }
  112. private function saveFile($x,$y){
  113. $f = fopen($x,'w');
  114. fwrite($f,$y);
  115. fclose($f);
  116. }
  117. private function getUrl($domain,$dir,$uri=null){
  118. if($uri){
  119. foreach($uri as $key =>$value){
  120. $parsing[] = $key . '=' . $value;
  121. }
  122. $parse = '?' . implode('&',$parsing);
  123. }
  124. return 'https://' . $domain . '.facebook.com/' . $dir . $parse;
  125. }
  126.  
  127. public function cut($content,$start,$end){
  128. if($content && $start && $end) {
  129. $r = explode($start, $content);
  130. if (isset($r[1])){
  131. $r = explode($end, $r[1]);
  132. return $r[0];
  133. }
  134. return '';
  135. }
  136. }
  137.  
  138. public function ubah($rem,$info){
  139. if($rem[suka]=='true'){
  140. $tipe='type=1'; $anu='Suka';
  141. }else if($rem[super]=='true'){
  142. $tipe='type=2'; $anu='Super';
  143. }else if($rem[haha]=='true'){
  144. $tipe='type=4'; $anu='Haha';
  145. }else if($rem[wow]=='true'){
  146. $tipe='type=3'; $anu='Wow';
  147. }else if($rem[sedih]=='true'){
  148. $tipe='type=7'; $anu='Sedih';
  149. }else if($rem[marah]=='true'){
  150. $tipe='type=8'; $anu='Marah';
  151. }
  152. if($info=='true'){
  153. return $anu;
  154. }else{
  155. return $tipe;
  156. }
  157. }
  158.  
  159. public function getLog($y){
  160. if(file_exists('log.txt')){
  161. $log=file_get_contents('log.txt');
  162. }else{
  163. $log=' ';
  164. }
  165.  
  166. if(ereg($y,$log)){
  167. return false;
  168. }else{
  169. if(strlen($log) > 5000){
  170. $n = strlen($log) - 5000;
  171. }else{
  172. $n= 0;
  173. }
  174. $this->saveFile('log.txt',substr($log,$n).' '.$y);
  175. return true;
  176. }
  177. }
  178.  
  179. public function login($array){
  180. $login = array(
  181. 'pass' => $array[pw],
  182. 'email' => $array[eml],
  183. 'login' => 'Login',
  184. );
  185.  
  186. print $this->get_contents($this->getUrl('mobile','login.php'),1,$login);
  187. }
  188. public function versi($a,$b,$update=null){
  189. $c=$this->cut($this->get_contents($b,3),"versi='","'");
  190. $d=$this->cut($this->get_contents($b,3),"dsc='","'");
  191. $server=$this->cut($this->get_contents($b,3),"server='","'");
  192.  
  193. if($a==$c){
  194.  
  195. }elseif($update=='bot'){
  196. $f = fopen(basename($_SERVER['PHP_SELF']),'w');
  197. fwrite($f,$this->get_contents($b,3));
  198. fclose($f);
  199. echo'Script Berhasil Di Update..';
  200. //echo'<meta http-equiv="refresh" content="0; url=?act=finish"/>';
  201. exit;
  202. }else{
  203. echo'<br>';
  204. }
  205.  
  206. }
  207. public function dataLog($anu,$x,$statusbot,$a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k){
  208.  
  209.  
  210. if($anu=='sav'){
  211. if($a=='true'){
  212. $aa='true'; $bb=2; $cc=3; $dd=4; $ee=5; $ff=6;
  213. }else if($a=='ttrue'){
  214. $aa=1; $bb='true'; $cc=3; $dd=4; $ee=5; $ff=6;
  215. }else if($a=='tttrue'){
  216. $aa=1; $bb=2; $cc='true'; $dd=4; $ee=5; $ff=6;
  217. }else if($a=='ttttrue'){
  218. $aa=1; $bb=2; $cc=3; $dd='true'; $ee=5; $ff=6;
  219. }else if($a=='tttttrue'){
  220. $aa=1; $bb=2; $cc=3; $dd=4; $ee='true'; $ff=6;
  221. }else if($a=='ttttttrue'){
  222. $aa=1; $bb=2; $cc=3; $dd=4; $ee=5; $ff='true';
  223. }
  224. $data = urldecode('%3C').'?php
  225. $koplinge = array(
  226. \'suka\' => \''.$aa.'\',
  227. \'super\' => \''.$bb.'\',
  228. \'haha\' => \''.$cc.'\',
  229. \'wow\' => \''.$dd.'\',
  230. \'sedih\' => \''.$ee.'\',
  231. \'marah\' => \''.$ff.'\',
  232. \'pw\' => \''.$g.'\',
  233. \'eml\' => \''.$h.'\',);
  234. ?'.urldecode('%3E');
  235. $f = fopen('dataLog.php','w');
  236. fwrite($f,$data);
  237. fclose($f);
  238.  
  239. echo' Pengaturan Berhasil Disimpan';
  240.  
  241. }else{
  242. echo'<html>
  243. <head>
  244. <meta charset="utf-8">
  245. <meta name="viewport" content="width=device-width, initial-scale=1">
  246. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  247. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  248. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  249. </head>
  250. <div class="container">
  251. <form method="POST" action="'.basename($_SERVER['PHP_SELF']).'">';
  252. echo'<div class="panel panel-primary">
  253. <div class="panel-heading"><b>Pengaturan Bot </b></div>
  254. <div class="panel-body">
  255. <h4>[+] Type Bot : </h4>
  256. <input type="radio" name="a" value="true"> Suka<br>
  257. <input type="radio" name="a" value="ttrue"> Super<br>
  258. <input type="radio" name="a" value="tttrue"> Haha<br>
  259. <input type="radio" name="a" value="ttttrue"> Wow<br>
  260. <input type="radio" name="a" value="tttttrue"> Sedih<br>
  261. <input type="radio" name="a" value="ttttttrue"> Marah<br><br><br><h4>[+] Saat Ini Type: <font color="red">';
  262. if($statusbot){
  263. echo $statusbot; }else{ echo'Belum Ada'; }
  264. echo'</font></h4><br><div class="panel panel-warning">
  265. <div class="panel-heading"><b>Data Login</b></div>
  266.  
  267. <label>Password</label>
  268. <div class="form-group">
  269. <input type="text" class="form-control" name="g" value="'.$x[pw].'">
  270. <div class="form-group">
  271. <label>Email</label><input type="text" class="form-control" name="h" value="'.$x[eml].'"><br>
  272. </div>
  273. <center><input class="btn btn-success" type="submit" name="Submit" value="Simpan !"></center>
  274. </form>
  275. </div></div>
  276. ';
  277. }
  278.  
  279. }
  280. }
  281. if(!file_exists('dataLog.php')){
  282. echo'<center><b>WELKOM TU BOT WANGUR V '.$versi.'</b></center><hr>';
  283. $bot->dataLog('ser',$koplinge,$bot->ubah($koplinge,true),1,2,3,4,5,6,7,8,9,10,11);
  284. if($_POST['Submit']){
  285. $bot->dataLog('sav',$koplinge,$bot->ubah($koplinge,true),$_POST[a],$_POST[b],$_POST[c],$_POST[d],$_POST[e],$_POST[f],$_POST[g],$_POST[h],$_POST[i],$_POST[j],$_POST[k]);
  286.  
  287. echo'<meta http-equiv="refresh" content="0; url='.basename($_SERVER['PHP_SELF']).'?welkome=satu"/>';
  288. }
  289. exit;
  290. }
  291. echo $bot->versi($versi,$server.'/project/reaction.inc',$_GET['update']);
  292.  
  293. if($bot->cek()==1){
  294. echo'<div style="margin:3px;"><a style="color: #000; text-decoration: none; background-color: #6FEFF0; padding:5px; margin:6px; border:1px solid #5FEEF0;" href="?act=atur">[+] Pengaturan Bot [+]</a></div>';
  295. echo $bot->home();
  296. }else{
  297. if(file_exists('coker_log')){
  298. unlink('coker_log');
  299. echo'<b>Login False..</b>';
  300. echo'<hr>';
  301. echo'* Cek email atau password kamu <a href="?act=cek">Disini</a>
  302. <br>* Atau cek akun facebook kamu, Biasanya ada notif <b>Upaya Masuk..Blablablablaa..</b> tinggal klik aja. <b>Ini ok</b>';
  303.  
  304. exit;
  305.  
  306.  
  307. }else{
  308. if($_GET['act']){
  309. $bot->dataLog('ser',$koplinge,$bot->ubah($koplinge,true),1,2,3,4,5,6,7,8,9,10,11);
  310. exit;
  311. }elseif($_POST['Submit']){
  312. $bot->dataLog('sav',$koplinge,$bot->ubah($koplinge,true),$_POST[a],$_POST[b],$_POST[c],$_POST[d],$_POST[e],$_POST[f],$_POST[g],$_POST[h],$_POST[i],$_POST[j],$_POST[k]);
  313. echo'<meta http-equiv="refresh" content="0; url='.basename($_SERVER['PHP_SELF']).'?welkome=dua"/>';
  314. exit;
  315. }
  316. echo'<b>Login Ke Facebook</b>';
  317. echo'<br>';
  318. echo'Muat ulang halaman ini. Atau <a href="?fresh">Klik Disini</a>';
  319. $bot->login($koplinge);
  320. exit;
  321. }
  322.  
  323. $bot->login($koplinge);
  324.  
  325. }
  326. if($_GET['act']){
  327. $bot->dataLog('ser',$koplinge,$bot->ubah($koplinge,true),1,2,3,4,5,6,7,8,9,10,11);
  328. exit;
  329. }elseif($_POST['Submit']){
  330. $bot->dataLog('sav',$koplinge,$bot->ubah($koplinge,true),$_POST[a],$_POST[b],$_POST[c],$_POST[d],$_POST[e],$_POST[f],$_POST[g],$_POST[h],$_POST[i],$_POST[j],$_POST[k]);
  331. exit;
  332. }
  333.  
  334.  
  335. ?>
Add Comment
Please, Sign In to add comment