kill virus in flashdrive

สถานการณ์

- เอา flash drive ไปเสียบเครื่อง windows แล้วติดไวรัสมา
- อาการของไวรัสคือ สร้าง exe file ขึ้นมาโดยชื่อจะเหมือนกับ directory ที่มันอยู่
- ถ้ามี directory สัก 3000 directory จะทำการลบแบบกด delete กด enter ก็คงลำบากขีวิตมาก

การแก้ไข

- เสียบ flash drive เข้ากับเครื่อง *nix (linux,freebsd,mac)
- เปิด terminal ขึ้นมา
- ตรวจสอบว่า size ของ exe ที่ ไวรัสสร้างมามีขนาดเท่าไหร่

$ ls -alh
total 14M
drwx——  4 code root  32K 2008-05-16 13:48 .
drwx—— 12 code root  16K 1970-01-01 07:00 ..
drwx——  4 code root  32K 2008-05-16 16:09 c450
-rwx——  1 code root  14M 2008-05-10 16:24 clj2600n-HB-pnp-win32-en.exe
drwx——  3 code root  32K 2008-05-16 13:48 HP1320
-rwx——  1 code root 603K 2008-02-09 21:46 printer .exe

- ใช้คำสั่ง find เพื่อค้นหา และทำลาย

$ find /media/NABONIDUS/ -size 603k -name “*.exe” -delete

อธิบาย

$ find <จะลบ directory ไหน> <size ของ file ที่จะลบมีขนาดเท่าไหร่> <นามสกุลของ file คืออะไร> <ลบทิ้ง>

No Responses

Note that comments are displayed in reverse chronological order with topmost comments being freshest. Subscribe | Comment

Leave a Reply



Warning: stristr() [function.stristr]: Empty delimiter in /usr/home/sourcode/web/sourcode.net/wp-content/plugins/wassup/wassup.php on line 2093