Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: PHP Decoder v2
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- set_time_limit(400);
- $cookie = tempnam("/tmp", "CURLCOOKIE");
- $uid = isset($_REQUEST["uid"]) ? trim($_REQUEST["uid"]) : "9899999999";
- $pwd = isset($_REQUEST["pwd"]) ? trim($_REQUEST["pwd"]) : "99999";
- $start = 1;
- $server = "sms.ultoo.com";
- $url = "$server/login.php";
- $url_h = "$server/home.php";
- $url_a = "$server/AnswereIt.php";
- $url_ap = "$server/AnswereItGraph.php";
- $agent = "Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0";
- echo "<font color=maroon><b>Script by DIP<br><br></b></font>";
- $file = "ans.txt";
- $handle = fopen($file, "r");
- $read = file_get_contents($file);
- $lines = explode(";", $read);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "$url");
- curl_setopt($ch, CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
- curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: */*"
- ));
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_REFERER, "$url");
- curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
- $html = curl_exec($ch);
- if (preg_match("/input name=\"(.*?)\" type=\"text\" class=\"existing_user round_four\" id=\"(.*?)\"/i", $html, $n)) {
- $usr = $n[1];
- } else {
- echo "<font color=red><b>Error occured. Try again<br></b></font>";
- goto error;
- }
- if (preg_match("/input name=\"(.*?)\" type=\"password\" class=\"existing_user round_four\" id=\"(.*?)\"/i", $html, $n)) {
- $pass = $n[1];
- } else {
- echo "<font color=red><b>Error occured. Try again<br></b></font>";
- goto error;
- }
- $data1 = "Rpidci=&$usr=$uid&$pass=$pwd&RememberMe=1&login_btn=login here";
- curl_setopt($ch, CURLOPT_URL, "$url");
- curl_setopt($ch, CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_ENCODING, "gzip");
- curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: */*"
- ));
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_REFERER, "$url");
- curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "$data1");
- $html = curl_exec($ch);
- if (!preg_match("/mywallet.php(.*?)'/i", $html) && !preg_match("/home.php(.*?)'/i", $html, $matches)) {
- print "Login Error<br>";
- } else {
- while ($start <= 51) {
- curl_setopt($ch, CURLOPT_URL, "$url_a");
- curl_setopt($ch, CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
- curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: */*"
- ));
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_REFERER, "$url_a");
- curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
- $html = curl_exec($ch);
- if (preg_match("/<p class=\"qtionfont\">Question number:-(.*?)<\/p>/i", $html, $n)) {
- $qno = $n[1];
- } else {
- echo "<font color=red><b>Error occured. Try again<br></b></font>";
- goto error;
- }
- if (preg_match("/name=\"qxci\" value=\"(.*?)\"/i", $html, $matches)) {
- $qxci = urlencode($matches[1]);
- } else {
- echo "<font color=red><b>Error occured. Try again<br></b></font>";
- goto error;
- }
- if (preg_match("/name=\"QuestionId\" value=\"(.*?)\"/i", $html, $matches)) {
- $qid = $matches[1];
- } else {
- echo "<font color=red><b>Error occured. Try again<br></b></font>";
- goto error;
- }
- if (preg_match("/input type=\"text\" name=\"(.*?)\" id=\"(.*?)\" class=\"inputtxt\"/i", $html, $matches)) {
- $ans = $matches[1];
- } else {
- echo "<font color=red><b>Error occured. Try again<br></b></font>";
- goto error;
- }
- $anstxt = $lines[$qno - 1];
- $post_data = "$ans=$anstxt&zxcoiesesscd=&qxci=$qxci&QuestionId=$qid&submit=Submit";
- curl_setopt($ch, CURLOPT_URL, "$url_a");
- curl_setopt($ch, CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_ENCODING, "gzip");
- curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
- "Content-Type: application/x-www-form-urlencoded",
- "Accept: */*"
- ));
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_REFERER, "$url_ap");
- curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "$post_data");
- $html = curl_exec($ch);
- if (preg_match("/AnswereItGraph.php(.*?)'/i", $html, $matches)) {
- echo "<font color=blue><b>$qno No Quiz Question submitted successfully<br></b></font>";
- $start++;
- } else {
- echo "<font color=red><b>Question not submitted successfully<br></b></font>";
- goto error;
- }
- if ($qno == 50)
- break;
- }
- }
- flush();
- ob_flush();
- error:
- echo "<hr>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement