5,693,062 members and growing! (20,360 online)
Email Password   helpLost your password?
Languages » C# » General     Intermediate

Virus Fix tool

By Taha Amin

Virus Fix tool
C#Windows, .NET, .NET 1.1, Win2K, WinXP, Win2003VS.NET2003, Visual Studio, Dev

Posted: 9 Jun 2004
Updated: 9 Jun 2004
Views: 25,242
Bookmarked: 8 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
9 votes for this Article.
Popularity: 2.05 Rating: 2.15 out of 5
5 votes, 55.6%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
1 vote, 11.1%
4
3 votes, 33.3%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article

Virus Fix tool

Introduction

This tutorial not to learn how to make a virus but to help you to make you own fix tool For any virus you get information about it (like it's what it does, its size, where it put it's,fingerprint), This tutorial to fix a virus called Gheady, it's a simple virus infect exe files and put its fingerprint 'T' At '0x6c' in exe file, replacing 'This program cannot be run in DOS mode' with 'this program cannot be run in TOS mode'.

Background

What is a Virus?

A virus is a piece of software designed and written to make additional copies of itself and spread from location to location, typically without user knowledge or permission. Thus a virus is "self-reproducing code." Many viruses go beyond "quiet" operation, and are coded to avoid detection by the most common methods used. Such stealth qualities are now found in both viruses infecting files ("file viruses") and those infecting boot areas ("boot viruses").

There are computer viruses that were written specifically for operating systems (DOS, Windows 3.x, Windows 95, Windows NT, OS/2, and UNIX) and specific machines (Intel CPU machines, Amiga, Mac, and Atari.). The most common viruses today are operating system independent: they will run under any operating system if other conditions are met.

Macro viruses infect documents and templates supported by the application supporting the macro language. The most common macro viruses are those infecting MS Word documents (*.DOC) and templates (*.DOT). When Word loads an infected document, it executes any "autoexecute" macro in the file; if such a macro is a virus, it may spread its code to other locations. Because Word runs on many platforms (DOS, Windows 3.x, Windows 95, Windows NT, Macintosh, UNIX, OS/2, etc.), such macro viruses can spread across all of these platforms. They are application dependent, but both operating system independent and CPU independent.
All boot viruses require an Intel 80xx CPU, and are operating system independent, since they load before the operating system has loaded. Boot viruses, therefore, will infect DOS, Windows 3.x, Windows 95, Windows NT, Macintosh, UNIX, OS/2 and other systems if they are running on an 80xx CPU.

The largest category of viruses, however, is not the most prevalent. For years, the greatest number of different viruses have been file viruses - viruses which infected programs, such as DOS COM and EXE files. Such viruses never accounted for the greatest number of infections - back in the days of DOS, boot viruses were more common than file viruses - but have always accounted for the biggest headache for vendors of anti-virus products. The sheer number of file viruses, and their continued high rate of emergence, has always kept developers busy.

You can find more information about virus and fix tech. at:vx.netlux.org.

Using the code

The fix tool makes search for all exe file in you system and you provide the way of cleaning in a method called 'private static void CheckFile(string fileName,out int infected,out int cleaned)'. you put yor code in this method and the program will handle all the search mechanism.

Points of Interest

I am trying now to make a tool to prevent access to any exe.

History

Keep a running update of any changes or improvements you've made here.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Taha Amin


B/OSS.
Occupation: Team Leader
Company: http://www.linkdev.com/
Location: Egypt Egypt

Other popular C# articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 4 of 4 (Total in Forum: 4) (Refresh)FirstPrevNext
Generalvirus mischeifmemberPyro Joe17:04 15 Oct '04  
GeneralRe: virus mischeifmemberTaha Zayed21:51 15 Oct '04  
GeneralRe: virus mischeifmemberMyszka23:25 2 May '05  
GeneralRe: virus mischeifmemberreinux18:12 17 Aug '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 9 Jun 2004
Editor:
Copyright 2004 by Taha Amin
Everything else Copyright © CodeProject, 1999-2008
Web19 | Advertise on the Code Project