篇一:解决exe被病毒感染的一种办法
可以将exe放到zip压缩包中,通过判断exe文件大小的方式:如果exe文件大小发生了变化则解压zip压缩包,替换当前文件。解压方法如下:
/**
*解压zip文件到指定路径
*/
public static void unzipFile(String directory, File zip)
} catch (IOException e) { } System.out.println("解压文件发生错误:" + e.getMessage()); zis.close();} ze = zis.getNextEntry(); FileOutputStream output = new FileOutputStream(child); byte[] buffer = new byte[10240]; int bytesRead = 0; while ((bytesRead = zis.read(buffer)) > 0) { } output.flush(); output.close(); output.write(buffer, 0, bytesRead);while (ze != null) {String name = ze.getName(); File child = new File(parent, name); { try { ZipInputStream zis = new ZipInputStream(new FileInputStream(zip)); ZipEntry ze = zis.getNextEntry(); File parent = new File(directory); if (!parent.exists() && !parent.mkdirs()) { } System.out.println("创建解压目录 \"" + parent.getAbsolutePath() + "\" 失败"); } /** * 假如存在病毒感染了exe的情况,则解压zip文件 */ public static void unzipFileIfExistVirus(File file,int if(file.exists()&&file.isFile()){ if(file.length()>fileLength&&new File(parentPath + } unzipFile(parentPath,new File(parentPath + fileLength,String parentPath){ "\\signandread.zip").exists()){ "\\signandread.zip"));
第一个参数为被感染的文件,第二个参数为zip文件所在路径。
篇二:关于EXE病毒及快捷方式病毒查杀
关于EXE病毒及快捷方式病毒查杀
1、 病毒行为
EXE病毒将文件夹隐藏,创建一个源文件夹名称相同的EXE文件;快捷方式病毒将文件夹隐藏,创建一个源文件夹名称相同的快捷方式。
2、 病毒
MD5
3、 查杀方法
① 查看360杀毒病毒库版本是否是最新
② 打开人工智能查杀引擎(未中毒的电脑能够正常查杀病毒,已经中毒的电脑需要打开人工引擎查杀)
③ 全盘扫描
④ 扫描结果
⑤ 处理结果
防病毒维护座机:
028--68132839
篇三:文件夹exe隐藏病毒使用方法
文件夹EXE病毒专杀工具使用方法详解
软件版本为:文件夹图标病毒专杀工具 FolderCure 2.4绿色版
1、先解压这个文件夹
2、双击打开程序
Foldercure.exe
3、打开界面如上图所示,先插入U盘,然后点击开始扫描。
4、选择执行U盘扫描
5、弹出上面菜单,点“是(Y)”
6、然后等待,直到弹出“所有操作已成功完成”,点确定。
7、弹出上述对话框,点“是(Y)”,电脑屏幕会消失桌面,然后重现,相当于注销了一次,无需大惊小怪。
备注:到此处U盘已经处理好了。只是这个软件默认显示了整个电脑的隐藏文件和扩展文件名。为了美观起见,请双击我的电脑→工具→文件夹选项→查看→往下拉把“隐藏文件和文件夹选择为不显示隐藏的文件和文件夹;在“隐藏已知文件的扩展名”前面打钩。
到此电脑和U盘都处理完毕。
2015年9月8日01:33:56