Clear autorun. inf batch processing and vbs

Source: Internet
Author: User

Kill. bat CopyCode The Code is as follows: @ echo off
Taskkill/f/IM virus .exe
CD \
For/d % I in (C, D, E, F, G, H, I, K, L, M, N, O, P, Q, R, s, T, U, V, W, X, Y, Z) Do attrib-s-a-r-H % I: \ autorun. INF & attrib-s-a-r-H % I: \ virus .exe & del % I: \ autorun. INF

Kill. vbsCopy codeThe Code is as follows: on error resume next

Ciker_path = inputbox ("BenProgramIt helps you clear the autorun. inf virus. "& Vbcr &" Enter Autorun below. INF Directory: "& vbcr &" by ciker 08.03.30 "," autorun. INF clear "," C: \ autorun. INF ")

Ciker_exe = inputbox ("Enter the directory of the EXE Virus File below:" & vbcr & "by ciker 08.03.30", "autorun. INF clear "," C: \ target.exe ")

Set FSO = Createobject ("scripting. FileSystemObject ")
Set fl0 = FSO. GetFile (ciker_path)
Set FL1 = FSO. GetFile (ciker_exe)
Fl0.delete
Fl1.delete
Msgbox "cleared successfully! "
Wscript. Quit

Immune. batCopy codeThe Code is as follows: setacl.exe CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ mountpoints2/Registry/deny everyone/full

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.