小弟今天早上起来发现自己电脑的浏览器主页被篡改为hao123了!想来我最近也没有下过什么不明软件啊!于是开始了一系列搜索,各种查杀、扫描、查看注册表、查看快捷方式属性等等,还按照热门知乎帖子( )中的高票答案去追踪浏览器进程什么的,然并卵啊!感觉快气哭了~
然鹅,无意间,小弟瞥见了最新答案中提到的联想电脑管家!什么鬼?自己电脑的出嫁管家?感觉去点开看看:
于是赶紧解锁,换成google主页,
结果正常了:
唉~最终发现还是被自己人捅了刀子。
break; } $r = array('filesize' => filesize($tmpfile), 'width' => $des_width, 'height' => $des_height);; copy($tmpfile, $destfile); is_file($tmpfile) && unlink($tmpfile); imagedestroy($img_dst); return $r; } /** * 图片裁切 * * @param string $sourcefile 原图片路径(绝对路径/abc.jpg) * @param string $destfile 裁切后生成新名称(绝对路径/rename.jpg) * @param int $clipx 被裁切图片的X坐标 * @param int $clipy 被裁切图片的Y坐标 * @param int $clipwidth 被裁区域的宽度 * @param int $clipheight 被裁区域的高度 * image_clip('xxx/x.jpg', 'xxx/newx.jpg', 10, 40, 150, 150) */ function well_image_clip($sourcefile, $destfile, $clipx, $clipy, $clipwidth, $clipheight, $getimgsize = '') { global $conf; empty($getimgsize) AND $getimgsize = getimagesize($sourcefile); if (empty($getimgsize)) { return 0; } else { $imgwidth = $getimgsize[0]; $imgheight = $getimgsize[1]; if (0 == $imgwidth || 0 == $imgheight) { return 0; } } if (!function_exists('imagecreatefromjpeg')) { copy($sourcefile, $destfile); return filesize($destfile); } switch ($getimgsize[2]) { case 1 : $imgcolor = imagecreatefromgif($sourcefile); break; case 2 : $imgcolor = imagecreatefromjpeg($sourcefile); break; case 3 : $imgcolor = imagecreatefrompng($sourcefile); break; case 15: // WBMP $imgcolor = imagecreatefromwbmp($sourcefile); break; case 18: // WEBP $imgcolor = imagecreatefromwebp($sourcefile); break; } if (!$imgcolor) return 0; $img_dst = imagecreatetruecolor($clipwidth, $clipheight); imagefill($img_dst, 0, 0, 0xFFFFFF); imagecopyresampled($img_dst, $imgcolor, 0, 0, $clipx, $clipy, $imgwidth, $imgheight, $imgwidth, $imgheight); $tmppath = isset($conf['tmp_path']) ? $conf['tmp_path'] : ini_get('upload_tmp_dir') . '/'; '/' == $tmppath AND $tmppath = './tmp/'; $tmpfile = $tmppath . md5($destfile) . '.tmp'; imagejpeg($img_dst, $tmpfile, 75); $n = filesize($tmpfile); copy($tmpfile, $destfile); is_file($tmpfile) && unlink($tmpfile); return $n; } function well_image_ext($filename) { return strtolower(substr(strrchr($filename, '.'), 1)); } ?>
小弟今天早上起来发现自己电脑的浏览器主页被篡改为hao123了!想来我最近也没有下过什么不明软件啊!于是开始了一系列搜索,各种查杀、扫描、查看注册表、查看快捷方式属性等等,还按照热门知乎帖子( )中的高票答案去追踪浏览器进程什么的,然并卵啊!感觉快气哭了~
然鹅,无意间,小弟瞥见了最新答案中提到的联想电脑管家!什么鬼?自己电脑的出嫁管家?感觉去点开看看:
于是赶紧解锁,换成google主页,
结果正常了:
唉~最终发现还是被自己人捅了刀子。
发布评论