Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php set_time_limit(0); error_reporting(E_ALL); ini_set('display_errors', 'On'); /*..
Decoded Output download
<?php
set_time_limit(0);
error_reporting(E_ALL);
ini_set('display_errors', 'On');
/**
* @author Aris Wibowo <[email protected]>
* @license MIT
* @version 0.0.1
*/
class ARSWB
{
var $username;
var $password;
var $reaction_type;
var $login;
var $home;
var $react_detail = array();
var $user_agent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 10.0; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)";
public function urlRequest($url, $post = null)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_HEADER, true);
if ($post != null) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/' . $this->username . '.cookie');
curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/' . $this->username . '.cookie');
$exec = curl_exec($ch);
curl_close($ch);
return $exec;
}
public function execute()
{
$furl = "https://mbasic.facebook.com/";
$a = $this->urlRequest($furl);
$s = explode("type=\"submit\"", $a, 2);
$s = explode("<", $s[0]);
$s = explode("value=\"", end($s));
$s = explode("\"", $s[1]);
$s = $s[0];
$a = explode("<form", $a, 2);
if (count($a) < 2) {
return false;
}
$a = explode("</form>", $a[1], 2);
$a = explode("<input type=\"hidden\"", $a[0]);
$ps = '';
$act = explode("action=\"", $a[0], 2);
$act = explode("\"", $act[1], 2);
$act = html_entity_decode($act[0], ENT_QUOTES, 'UTF-8');
for ($i = 1; $i < count($a); $i++) {
$b = explode("name=\"", $a[$i], 2);
$b = explode("\"", $b[1], 2);
$c = explode("value=\"", $a[$i], 2);
$c = explode("\"", $c[1], 2);
$ps .= urlencode($b[0]) . '=' . urlencode($c[0]) . '&';
}
$ps .= "email=" . urlencode($this->username) . "&pass=" . urlencode($this->password) . "&login=" . urlencode($s);
return $this->login = $this->urlRequest($act, $ps);
}
public function reactpost()
{
$this->home = $this->urlRequest("https://mbasic.facebook.com");
preg_match_all("/<a href=\"\/reactions\/picker\/(.*?)\">/", $this->home, $this->react_detail);
$logs = file_exists(dirname(__FILE__) . "/" . $this->username . ".logs") ? file_get_contents(dirname(__FILE__) . "/" . $this->username . ".logs") : file_put_contents(dirname(__FILE__) . "/" . $this->username . ".logs", "1 ", FILE_APPEND | LOCK_EX) && file_get_contents(dirname(__FILE__) . "/" . $this->username . ".logs");
for ($i = 0; $i < count($this->react_detail[0]); $i++) {
$status_id = explode("ft_id=", $this->react_detail[0][$i]);
$status_id = explode("&", $status_id[1]);
$status_id = $status_id[0];
if (!strpos($logs, $status_id)) {
preg_match("/href=\"(.*?)\"/", $this->react_detail[0][$i], $react_link);
$post = $this->urlRequest("https://mbasic.facebook.com" . $react_link[1]);
preg_match_all("/<a href=\"\/ufi\/reaction\/(.*?)\"/", $post, $reaction);
$this->reaction_type = strtoupper($this->reaction_type);
$reactlist = array('LIKE' => 0, 'LOVE' => 1, 'HAHA' => 2, 'WOW' => 3, 'SAD' => 4, 'ANGRY' => 5);
$this->urlRequest("https://mbasic.facebook.com/ufi/reaction/" . html_entity_decode($reaction[1][$reactlist[$this->reaction_type]], ENT_QUOTES, "UTF-8"));
file_put_contents(dirname(__FILE__) . "/" . $this->username . ".logs", $status_id . " ", FILE_APPEND | LOCK_EX);
echo('<p style="color:green;">' . $status_id . ' Success! </p>');
} else {
echo('<p style="color:red;">' . $status_id . ' Skip! </p>');
}
}
}
}
/**
* Bot Configs
*/
$bot = new ARSWB;
$bot->username = "yayangkasep.id"; // username
$bot->password = "hwhw2haha1"; // password
$bot->reaction_type = "SAD"; // LIKE,LOVE,HAHA,WOW,SAD,ANGRY
$bot->execute();
$bot->reactpost();
var_dump($bot);
?>
Did this file decode correctly?
Original Code
<?php
set_time_limit(0);
error_reporting(E_ALL);
ini_set('display_errors', 'On');
/**
* @author Aris Wibowo <[email protected]>
* @license MIT
* @version 0.0.1
*/
class ARSWB
{
var $username;
var $password;
var $reaction_type;
var $login;
var $home;
var $react_detail = array();
var $user_agent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 10.0; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)";
public function urlRequest($url, $post = null)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_HEADER, true);
if ($post != null) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/' . $this->username . '.cookie');
curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/' . $this->username . '.cookie');
$exec = curl_exec($ch);
curl_close($ch);
return $exec;
}
public function execute()
{
$furl = "https://mbasic.facebook.com/";
$a = $this->urlRequest($furl);
$s = explode("type=\"submit\"", $a, 2);
$s = explode("<", $s[0]);
$s = explode("value=\"", end($s));
$s = explode("\"", $s[1]);
$s = $s[0];
$a = explode("<form", $a, 2);
if (count($a) < 2) {
return false;
}
$a = explode("</form>", $a[1], 2);
$a = explode("<input type=\"hidden\"", $a[0]);
$ps = '';
$act = explode("action=\"", $a[0], 2);
$act = explode("\"", $act[1], 2);
$act = html_entity_decode($act[0], ENT_QUOTES, 'UTF-8');
for ($i = 1; $i < count($a); $i++) {
$b = explode("name=\"", $a[$i], 2);
$b = explode("\"", $b[1], 2);
$c = explode("value=\"", $a[$i], 2);
$c = explode("\"", $c[1], 2);
$ps .= urlencode($b[0]) . '=' . urlencode($c[0]) . '&';
}
$ps .= "email=" . urlencode($this->username) . "&pass=" . urlencode($this->password) . "&login=" . urlencode($s);
return $this->login = $this->urlRequest($act, $ps);
}
public function reactpost()
{
$this->home = $this->urlRequest("https://mbasic.facebook.com");
preg_match_all("/<a href=\"\/reactions\/picker\/(.*?)\">/", $this->home, $this->react_detail);
$logs = file_exists(dirname(__FILE__) . "/" . $this->username . ".logs") ? file_get_contents(dirname(__FILE__) . "/" . $this->username . ".logs") : file_put_contents(dirname(__FILE__) . "/" . $this->username . ".logs", "1 ", FILE_APPEND | LOCK_EX) && file_get_contents(dirname(__FILE__) . "/" . $this->username . ".logs");
for ($i = 0; $i < count($this->react_detail[0]); $i++) {
$status_id = explode("ft_id=", $this->react_detail[0][$i]);
$status_id = explode("&", $status_id[1]);
$status_id = $status_id[0];
if (!strpos($logs, $status_id)) {
preg_match("/href=\"(.*?)\"/", $this->react_detail[0][$i], $react_link);
$post = $this->urlRequest("https://mbasic.facebook.com" . $react_link[1]);
preg_match_all("/<a href=\"\/ufi\/reaction\/(.*?)\"/", $post, $reaction);
$this->reaction_type = strtoupper($this->reaction_type);
$reactlist = array('LIKE' => 0, 'LOVE' => 1, 'HAHA' => 2, 'WOW' => 3, 'SAD' => 4, 'ANGRY' => 5);
$this->urlRequest("https://mbasic.facebook.com/ufi/reaction/" . html_entity_decode($reaction[1][$reactlist[$this->reaction_type]], ENT_QUOTES, "UTF-8"));
file_put_contents(dirname(__FILE__) . "/" . $this->username . ".logs", $status_id . " ", FILE_APPEND | LOCK_EX);
echo('<p style="color:green;">' . $status_id . ' Success! </p>');
} else {
echo('<p style="color:red;">' . $status_id . ' Skip! </p>');
}
}
}
}
/**
* Bot Configs
*/
$bot = new ARSWB;
$bot->username = "yayangkasep.id"; // username
$bot->password = "hwhw2haha1"; // password
$bot->reaction_type = "SAD"; // LIKE,LOVE,HAHA,WOW,SAD,ANGRY
$bot->execute();
$bot->reactpost();
var_dump($bot);
?>
Function Calls
ini_set | 1 |
set_time_limit | 1 |
error_reporting | 1 |
Stats
MD5 | 2af58aef05fecee0ef2f3133608c497f |
Eval Count | 0 |
Decode Time | 115 ms |