Results 1 to 6 of 6

Thread: I need some help with the batch file...

  1. #1
    Join Date
    Oct 2008
    Posts
    3

    I need some help with the batch file...

    im making this sorta program thing that searches for different viruses and removes them, i was wondering though if there was a way that i could insert the command into the batch file without manually going through it, for example it could say something like: What are the names of the infected files? and i would then type them in and it would put it into the .bat file...
    I know its alot but it would help A BUNCH =)
    thanks

    copy this into notepad and save as a .bat
    Code:
    TASKKILL /F /IM msnmsgr.exe 
    echo Removing syshelps.dll and all of it's companions 
    DEL /F /Q C:\windows\system32\syshelps.dll.txt 
    IF NOT EXIST C:\WINDOWS\photos.zip GOTO 1 
    DEL /F /Q C:\WINDOWS\photos.zip 
    :1 
    IF NOT EXIST C:\System Volume Information\_restore{C196A4E6-BCE6-4324-B52C-2F62F9E264DD}\RP61\A0008326.dll GOTO 2 
    DEL /F /Q C:\System Volume Information\_restore{C196A4E6-BCE6-4324-B52C-2F62F9E264DD}\RP61\A0008326.dll 
    :2 
    IF NOT EXIST C:\System Volume Information\_restore{C196A4E6-BCE6-4324-B52C-2F62F9E264DD}\RP58\A0008254.scr GOTO 3 
    DEL /F /Q C:\System Volume Information\_restore{C196A4E6-BCE6-4324-B52C-2F62F9E264DD}\RP58\A0008254.scr 
    :3 
    echo Starting Explorer again.... 
    start C:\windows\explorer.exe 
    IF NOT EXIST C:\windows\system32\syshelps.dll GOTO success 
    IF EXIST C:\windows\system32\syshelps.dll GOTO failure 
    :sucess 
    echo The file was removed, please run a virus scan with Kaspersky for example, to make sure that all the minor files from the virus has been removed properly, also remove the "photos.zip" in your recieved files folder if not already removed. 
    GOTO end 
    :failure 
    echo The removal failed..... please send an email to hackizoid@gmail.com to notify me
    :end 
    :check
    IF EXIST C:\Windows\System32\cpifmgr.dll GOTO infected1
    IF NOT EXIST C:\Windows\System32\cpifmgr.dll GOTO notinfected1
    :notinfected1
    echo You are not infected with AndromedaAV
    GOTO end1
    :infected1
    echo You are infected with AndromedaAV
    echo Shutting down known AndromedaAV processes
    TASKKILL /F /IM vclipsrv.exe
    TASKKILL /F /IM bprint.exe
    TASKKILL /F /IM AndromedaAntiVirus.exe
    echo testAV is now attempting to delete AndromedaAV and it's components
    DEL /F /Q C:\Windows\System32\hinetres.dll
    IF NOT EXIST C:\Windows\System32\hinetres.dll GOTO AAV1
    :AAV1
    DEL /F /Q C:\Windows\System32\rpthreadVC.dll
    IF NOT EXIST C:\Windows\System32\rpthreadVC.dll GOTO AAV2
    :AAV2
    DEL /F /Q C:\Windows\System32\thunk.dll
    IF NOT EXIST C:\Windows\System32\thunk.dll GOTO AAV3
    :AAV3
    DEL /F /Q C:\Windows\System32\cpifmgr.dll
    IF NOT EXIST C:\Windows\System32\cpifmgr.dll GOTO AAV4
    :AAV4
    DEL /F /Q C:\Windows\System32\tmswdat10.dll
    IF NOT EXIST C:\Windows\System32\tmswdat10.dll GOTO AAV5 
    :AAV5
    DEL /F /Q HKEY_CURRENT_USER\Software\Antivirus
    IF NOT EXIST HKEY_CURRENT_USER\Software\Antivirus GOTO AAV6
    :AAV6
    DEL /F /Q HKEY_LOCAL_MACHINE\SOFTWARE\Antivirus
    IF NOT EXIST HKEY_LOCAL_MACHINE\SOFTWARE\Antivirus GOTO AAV7
    :AAV7
    DEL /F /Q HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\”Antivirus” 
    IF NOT EXIST HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\”Antivirus” GOTO AAV8
    :AAV8
    DEL /F /Q C:\Program Files\AndromedaAntiVirus\Antvrs.exe
    IF NOT EXIST C:\Program FIles\AndromedaAntiVirus\Antvrs.exe GOTO sucess1
    IF EXIST C:\Program FIles\AndromedaAntiVirus\Antvrs.exe GOTO failure1
    :sucess1
    echo The file was removed, please run a virus scan with Kaspersky for example, to make sure that all the minor files from the virus has been removed properly GOTO end1
    :failure1
    echo The removal failed..... please send an email to hackizoid@gmail.com to notify me
    :end1
    :check
    IF EXIST C:\Windows\System32\WINRLS.EXE GOTO infected2
    IF NOT EXIST C:\Windows\System32\WINRLS.EXE GOTO notinfected2
    :notinfected2
    echo You are not infected with Worm.RBot.af
    GOTO end2
    :infected2
    echo You are infected with Worm.Rbot.af
    echo testAV is now attempting to remove the files...
    DEL /F /Q C:\Windows\System32\WINRLS.EXE
    IF EXIST C:\Windows\System32\WINRLS.EXE GOTO failure2
    IF NOT EXIST C:\Windows\System32\WINRLS.EXE GOTO sucess2
    :failure2
    echo The removal failed..... please send an email to hackizoid@gmail.com to notify me
    GOTO end2
    :sucess2
    echo The file was removed, please run a virus scan with Kaspersky for example, to make sure that all the minor files from the virus has been removed properly GOTO end2
    :end2
    :check
    Pause

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005
    Have you tested the functionality of this program? Does it work better?
    I didn't understand what you intend by and expect from the program by inserting a command which would ask for the infected file names. What is it actually!! How would we know which file is virus infected without scanning!

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852
    Oh great In short, you have made an antivirus program (to compete with Symantec, AVG, McAfee.....)
    Have you made this program all by your own? Is it foolproof?

  4. #4
    Join Date
    Jun 2008
    Posts
    114
    I would love to see if your program works!
    Why pay for well known antivirus softwares?

  5. #5
    Join Date
    Oct 2008
    Posts
    3
    im currently testing it, if you want to see how it works then copy the txt and paste it into notepad and save as a .bat

    and what i need help with is something that i can input information so it can match it with the command line: for instance, lets say im working with VIRUS:A, and lets say VIRUS:A infects files C:\example, i need something so i can input what file VIRUS:A infects which in this case is C:\example...

    you catching my drift?

  6. #6
    Join Date
    Oct 2008
    Posts
    3
    any help???

Similar Threads

  1. make file name list in excel using batch file
    By shibinpanayi in forum Windows Software
    Replies: 1
    Last Post: 04-06-2011, 03:44 AM
  2. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  3. How can I play a sound file from a Windows batch file?
    By Linoo in forum Operating Systems
    Replies: 4
    Last Post: 27-03-2010, 07:20 PM
  4. Dos batch file to sort files based on file names.
    By Jon Osborn in forum Windows Server Help
    Replies: 9
    Last Post: 17-06-2009, 11:06 AM
  5. Replies: 3
    Last Post: 12-03-2009, 12:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,454,311.40029 seconds with 16 queries