Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: A USB Virus Detector

  1. #1
    MXTECH is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    46
    Rep Power
    15

    Talking A USB Virus Detector

    Hey Peeps in the spirt of sharing i have posted here my companys Virus Guard Version 2.0, This program will locate and erase USB Viruses on any drive you tell it to. If you have any ideas on how to improve it let me know and it mite make it into version 3

    Code:
    Sub Main()
            On Error Resume Next
            Console.Title = "STINGER SOFTWARE SYSTEMS - VIRUS GUARD 2.2 (Pre-Release Build)"
            Console.ForegroundColor = ConsoleColor.White
            Dim targetdrive As String = "c:\"
            Console.WriteLine("STINGER SOFTWARE SYSTEMS - VIRUS GUARD C-2008")
            Console.WriteLine("DESIGNED BY: Jared Woodruff")
    Console.WriteLine("http://schoolsecurity.vipsudio.com/?page_id=80")
            Console.WriteLine("Version 2.2(Pre-Release Build) - 22/09/2008")
            Console.WriteLine("")
            Console.WriteLine("Please Wait, Virus Detection Engine Booting...")
            Console.WriteLine("Detecting Scanable Drives...")
            For Each drive As DriveInfo In My.Computer.FileSystem.Drives
                Console.WriteLine("Drive " & drive.Name & " Scannable? " & drive.IsReady)
                Dim drvset As String = drive.VolumeLabel
            Next
            Console.WriteLine("")
            Console.WriteLine("Enter a Drive to Scan: ")
            Console.WriteLine("Example= (C:\).")
            Console.Write("Drive=")
            targetdrive = Console.ReadLine()
            Console.WriteLine("")
            Console.WriteLine("Target Drive = " + targetdrive)
            Console.WriteLine("Starting USB Viral Process Removal Service....")
            'Deff 20/09/2008
            Dim Svcvirus As Boolean
            Dim Svcvirus2 As Boolean
            Dim Svcvirus3 As Boolean
            Dim Rcyvirus As Boolean
            Svcvirus = My.Computer.FileSystem.FileExists(targetdrive + "windows\system32\service.exe")
            Svcvirus2 = My.Computer.FileSystem.FileExists(targetdrive + "windows\service.exe")
            Svcvirus3 = My.Computer.FileSystem.FileExists(targetdrive + "service.exe")
            Rcyvirus = My.Computer.FileSystem.DirectoryExists(targetdrive + "recycler")
            'Deff 18/09/2008
            Dim sscvihost As Boolean
            Dim sscvihost2 As Boolean
            Dim blastclnnn As Boolean
            Dim waveautorun As Boolean
            Dim waveautorun2 As Boolean
            Dim printautorun As Boolean
            sscvihost = My.Computer.FileSystem.FileExists(targetdrive + "windows\SSCVIHOST.exe")
            sscvihost2 = My.Computer.FileSystem.FileExists(targetdrive + "windows\system32\SSCVIHOST.exe")
            blastclnnn = My.Computer.FileSystem.FileExists(targetdrive + "windows\system32\blastclnnn.exe")
            waveautorun = My.Computer.FileSystem.FileExists(targetdrive + "windows\system32\autorun.ini")
            waveautorun2 = My.Computer.FileSystem.FileExists(targetdrive + "windows\system32\settings.ini")
            printautorun = My.Computer.FileSystem.FileExists(targetdrive + "windows\tasks\at1.job")
            'Deff 15/09/2008
            Dim autoprotect As Boolean
            Dim winsurf78 As Boolean
            Dim Genautorun As Boolean
            Dim Genautorun2 As Boolean
            winsurf78 = My.Computer.FileSystem.DirectoryExists(targetdrive + "Autorun")
            autoprotect = My.Computer.FileSystem.DirectoryExists(targetdrive + "Autoprotect")
            Genautorun = My.Computer.FileSystem.FileExists(targetdrive + "Autorun.inf")
            Genautorun2 = My.Computer.FileSystem.FileExists(targetdrive + "Autorun.ini")
    
    
            'Killing Virus Processes thread
            Console.WriteLine("Starting Illegal Process Termination....")
            Dim Virus1() As Process
            Virus1 = Process.GetProcessesByName("DrvMonitor")
            For Each proc As Process In Virus1
                proc.Kill()
                Console.WriteLine("Terminated DrvMonitor Illegal Process")
            Next
            Dim Virus2() As Process
            Virus2 = Process.GetProcessesByName("sscvihost")
            For Each proc As Process In Virus2
                proc.Kill()
                Console.WriteLine("Terminated sscvihost Illegal Process")
            Next
            Dim Virus3() As Process
            Virus3 = Process.GetProcessesByName("blastclnnn")
            For Each proc As Process In Virus3
                proc.Kill()
                Console.WriteLine("Terminated Blastclnnn Illegal Process")
            Next
            Dim Virus4() As Process
            Virus4 = Process.GetProcessesByName("service")
            For Each proc As Process In Virus4
                proc.Kill()
                Console.WriteLine("Terminated Service Illegal Process")
            Next
            Console.WriteLine("Finished Illegal Process Termination.")
            On Error Resume Next
    
    
            'General Threat Files NON-Background runners
            Console.WriteLine("Starting Virus Host file Termination....")
            If Rcyvirus = True Then
                My.Computer.FileSystem.DeleteDirectory(targetdrive + "recycler", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus Recycler @ " + DateAndTime.Now)
            End If
            If Svcvirus = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\system32\service.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Svcvirus.1 @ " + DateAndTime.Now)
            End If
            If Svcvirus2 = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\service.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Svcvirus.2 @ " + DateAndTime.Now)
            End If
            If Svcvirus3 = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "service.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Svcvirus.3 @ " + DateAndTime.Now)
            End If
    
            If winsurf78 = True Then
                My.Computer.FileSystem.DeleteDirectory(targetdrive + "Autorun", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Winsurf78.w @ " + DateAndTime.Now)
            End If
    
            If autoprotect = True Then
                My.Computer.FileSystem.DeleteDirectory(targetdrive + "Autoprotect", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Winsurf78.w @ " + DateAndTime.Now)
            End If
    
            If Genautorun2 = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "Autorun.ini", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Autorun.w @ " + DateAndTime.Now)
            End If
    
            If Genautorun = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "Autorun.inf", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Autorun.w @ " + DateAndTime.Now)
            End If
            'New Deffs 18/09/2008
            If sscvihost = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\SSCVIHOST.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.SSCVIHOST.w @ " + DateAndTime.Now)
            End If
            If sscvihost2 = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\system32\SSCVIHOST.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.SSCVIHOST.w2 @ " + DateAndTime.Now)
            End If
            If blastclnnn = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\system32\blastclnnn.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.blastclnnn.w @ " + DateAndTime.Now)
            End If
            If waveautorun = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\system32\autorun.ini", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Autorun.w @ " + DateAndTime.Now)
            End If
            If waveautorun2 = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\system32\settings.ini", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.Autorun.b @ " + DateAndTime.Now)
            End If
            If printautorun = True Then
                My.Computer.FileSystem.DeleteFile(targetdrive + "windows\tasks\at1.job", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
                Console.WriteLine("Removed Virus W32.printautorun.w @ " + DateAndTime.Now)
            End If
    
            Console.WriteLine("Finished Virus Host file Termination.")
            Console.WriteLine("")
            Console.WriteLine(targetdrive + " is secure, No USB Viruses Remaining on " + targetdrive)
            Console.WriteLine("")
            Console.WriteLine("STINGER SOFTWARE SYSTEMS 2008")
            Console.WriteLine("www.vipsudio.com")
            Console.WriteLine("")
            Console.WriteLine("Press Anykey to close.")
    
    
            Console.Read()
            'Terminate Program
            End
    
    
        End Sub
    Enjoy People!

    By Jared Woodruff
    Stinger Software systems ceo
    STINGER SOFTWARE SYSTEMS

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: A USB Virus Detector

    I'm sorry, but this is crap.

  4. #3
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: A USB Virus Detector

    I don't really think it's that efficient at all. Like is it that efficient to use a If statement to delete every possible USB virus file?

  5. #4
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: A USB Virus Detector

    And it isn't even close to being one percent of all the known virii.

  6. #5
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: A USB Virus Detector

    Not only that, any time a new virus comes out, or an old one is changed to try to prevent it being detected you would have to rewrite the entire program.

  7. #6
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Re: A USB Virus Detector

    Hi MXTEC,

    I think your program is a good start. All killer apps start somewhere
    It might be a good idea to store your virus detect info in a text file
    and read it in with your main program, then you would just update the definition
    file and not your app.

    mike

  8. #7
    MXTECH is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    46
    Rep Power
    15

    Re: A USB Virus Detector

    Quote Originally Posted by mike.blankenship View Post
    Hi MXTEC,

    I think your program is a good start. All killer apps start somewhere
    It might be a good idea to store your virus detect info in a text file
    and read it in with your main program, then you would just update the definition
    file and not your app.

    mike
    Hey dude, thanks
    Yeah it was just a simple app i made cos at my work we use symantec and all the Viruses that this thing kills are all the Viruses symantec doesnt get.
    In the case of USB Drive scaning it is useful in the sense that most people dont put "Autorun.ini" in their usb root path so if it just suddenly pop's up then this app will kill it, i was working with the Idea of textfile stuff but i wouldnt know how to sort the list like:
    Virus name: exampleVirus
    Virus Root: C:\win\etc

    but how do you get something like that to work?
    and if you put a usb drive into the computer is there some code i can do to make it scan automaticly?

    i'm new to this stuff mainly my company specialises in Anti-Network misue stuff like Program killers and network monitoring tools.

    Any help would be great for this hobbie project though

  9. #8
    MXTECH is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    46
    Rep Power
    15

    Re: A USB Virus Detector

    Quote Originally Posted by chili5 View Post
    Not only that, any time a new virus comes out, or an old one is changed to try to prevent it being detected you would have to rewrite the entire program.
    Yeah it was just a simple app i made cos at my work we use symantec and all the Viruses that this thing kills are all the Viruses symantec doesnt get.
    In the case of USB Drive scaning it is useful in the sense that most people dont put "Autorun.ini" in their usb root path so if it just suddenly pop's up then this app will kill it, i was working with the Idea of textfile stuff but i wouldnt know how to sort the list like:
    Virus name: exampleVirus
    Virus Root: C:\win\etc
    but how do you get something like that to work?
    and if you put a usb drive into the computer is there some code i can do to make it scan automaticly?

  10. #9
    Steve.L's Avatar
    Steve.L is offline Programming Expert
    Join Date
    Sep 2008
    Location
    Ottawa,ON
    Posts
    445
    Rep Power
    15

    Re: A USB Virus Detector

    Uhh... So what's stopping a virus from simply terminating your program on launch?

    Epic fail.

  11. #10
    Zai
    Zai is offline Newbie
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    0

    Re: A USB Virus Detector

    Think my apps for detecting virus : SmadAV (smadav.net)

    Created with Pure API + VB

    It's useful in my country, Indonesia

Closed Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Have a virus, can't run any of my anti-virus tools. Help please.
    By zeroradius in forum Computer Software/OS
    Replies: 8
    Last Post: 06-14-2011, 04:37 PM
  2. p'-p=2k detector
    By espber in forum C and C++
    Replies: 11
    Last Post: 06-03-2010, 02:24 PM
  3. On your side: Lie detector
    By nicckk in forum The Lounge
    Replies: 8
    Last Post: 05-14-2009, 10:48 PM
  4. USB Drive Detector
    By MXTECH in forum Visual Basic Programming
    Replies: 1
    Last Post: 11-30-2008, 01:49 AM
  5. motion detector in C#
    By tansc in forum C# Programming
    Replies: 1
    Last Post: 01-13-2008, 05:59 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