7 Replies - 1161 Views - Last Post: 05 August 2010 - 01:14 PM

#1 frag384  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 30-July 10

i need help/advice on anti-virus software programming

Posted 30 July 2010 - 12:28 AM

i am going to try to create a anti-virus software program, but i have no clue where to start and what to do. i am asking for some advice to get me started, thanks i appreciate it.
Is This A Good Question/Topic? 0
  • +

Replies To: i need help/advice on anti-virus software programming

#2 Eric115  Icon User is offline

  • coderさん
  • member icon

Reputation: 63
  • View blog
  • Posts: 697
  • Joined: 19-January 09

Re: i need help/advice on anti-virus software programming

Posted 30 July 2010 - 02:27 AM

Well fist of all if you intend to write it yourself, you will need to know a programming language. For anti-virus I have heard that C or C++ are good (I don't program them so i'm not sure). You will also have to have a good knowledge of how viruses operate and what they do to computers. You will need to learn how to create things like bait file which attract the viruses to them so you can be warned if your computer is infected. The other and very important thing you will need to know is how to stop a virus from disabiling your anti-virus. If I were to recomend one of these things to do first it would be to read up on how other virus software works and then on how viruses operate and how they are stopped. You will also need to implement some sort of update feature (Virus writers never sleep...).
Good luck with your project!

This post has been edited by Eric115: 30 July 2010 - 02:28 AM

Was This Post Helpful? 0
  • +
  • -

#3 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 452
  • View blog
  • Posts: 797
  • Joined: 08-June 10

Re: i need help/advice on anti-virus software programming

Posted 30 July 2010 - 05:43 AM

You will need to learn a lot about hooking, code injection, and rootkits.

Then you will need to become intimately familiar with the you're OS's programming APIs and system calls.
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9579
  • View blog
  • Posts: 36,291
  • Joined: 12-June 08

Re: i need help/advice on anti-virus software programming

Posted 30 July 2010 - 07:27 AM

Preemptive heads up - writing it in managed code like VB.NET or C#.NET is *not* a good path.
Was This Post Helpful? 1
  • +
  • -

#5 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10816
  • View blog
  • Posts: 40,315
  • Joined: 27-December 08

Re: i need help/advice on anti-virus software programming

Posted 30 July 2010 - 07:34 AM

frag384, I don't mean to be discouraging, but as a fair warning you might be biting off too much on this project if you don't even know where to start. Writing an anti-virus program takes teams of senior developers months or more to complete. This is a very in-depth and difficult project to complete. I wish you luck with it if you choose to continue. :)
Was This Post Helpful? 0
  • +
  • -

#6 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5677
  • View blog
  • Posts: 12,209
  • Joined: 02-June 10

Re: i need help/advice on anti-virus software programming

Posted 30 July 2010 - 09:02 AM

frag384 introduction said:

hello, i am a completely new to this world you could say, i am here because i want to try to make i anti-virus software and add some stuff to it to make it harder to hack. i hope i can find the information i need here. so at the moment i know just about nothing and how to create the anti-virus software, i hope that changes soon


As mentioned first you need to learn to program at a LOW level. Then you need to become an expert on Windows and it's vulnerabilities. Then you need to become an expert on how those vulnerabilities are currently being exploited by exisiting viruses. Then you need to become an expert on all the other virus software on the market. Then you need to understand how existing attacks on those antiviruses are happening since you want to make a better one that is harder to hack.

Buy a REALLY comfy chair: You've got about 10 years ahead of you on this project.

Quick and easy custom events
Bulding an application - Part 1
Building an application - Part 2

Calculator tutorial
Serial port communication
(de)Compression tutorial
Adding sound to your C# application
Working with environmental variables
Loading assemblies by reflection
C# application deployment project
Writing a text file tutorial.
MSDN asynch communication
Thumbnail handlers

Visual Studio Keyboard Shortcuts



I am going to guess that you are trying to teach yourself C# without much guidance, a decent book or without knowing where to look. Sometimes just knowing where to look can make all the difference. Google is your friend.
Search with either "C#" or "MSDN" as the first word:
"C# picturebox load image openfiledialog" Its all the key parts of your question
Any new control like a picturebox is fully explained on the MSDN with example code so this works: "MSDN Picturebox"

But honestly, just typing away and seeing what pops up in Intellisense is going to make your self-education take 20 years. You can learn by trying to reverse engineer the language through banging on the keyboard - or you can learn by doing the tutorials and following a good "How to learn C#" book.

May I suggest picking up a basic C# introductory book? It's not that people here don't want to be helpful, but there is a certain amount of basic learning work that one should really take upon themselves before asking for help. There are so many great "How do I build my first application" tutorials on the web... There are dozens of "Learn C# in 21 days", "My first C# program" books at your look book seller or even public library... Asking a forum, any forum, to hand-hold you through it is just redundant. In many ways it disrespects the people who have invested dozens of hours in the on-line tutorials and those that spent thousands of hours in authoring books.

Build a Program Now! in Visual C# by Microsoft Press, ISBN 0-7356-2542-5
is a terrific book that has you build a Windows Forms application, a WPF app, a database application, your own web browser.

C# Cookbooks
Are a great place to get good code, broken down by need, written by coding professionals. You can use the code as-is, but take the time to actually study it. These professionals write in a certain style for a reason developed by years of experience and heartache.

Microsoft Visual Studio Tip, 251 ways to improve your productivity, Microsoft press, ISBN 0-7356-2640-5
Has many, many great, real-world tips that I use all the time.

The tutorials below walk through making an application including inheritance, custom events and custom controls.
Quick and easy custom events
Bulding an application - Part 1
Building an application - Part 2
Working with environmental variables

Writing a text file is always one of the first things people want to do, in order to store data like high-scores, preferences and so on
Writing a text file tutorial.

These are just good every-day references to put in your bookmarks.
MSDN C# Developers Center with tutorials
Welcome to Visual Studio

Have you seen the MSDN Code Samples? They spent a lot of time creating samples and demos. It seems a shame to not use them.

  • Anonymous Delegates: Demonstrates the use of unnamed delegates to reduce application complexity.
  • Arrays: Shows how to use arrays.
  • Attributes: Shows how to create custom attribute classes, use them in code, and query them through reflection.
  • Collection Classes: Shows how to make non-generic collection classes that can be used with the foreach statement.
  • COM Interop Part I: Shows how to use C# to interoperate with COM objects.
  • COM Interop Part II: Shows how to a use a C# server together with a C++ COM client.
  • Commandline: Demonstrates simple command-line processing and array indexing.
  • Condiational Methods: Demonstrates conditional methods, which provide a powerful mechanism by which calls to methods can be included or omitted depending on whether a symbol is defined.
  • Delegates: Shows how delegates are declared, mapped to static and instance methods, and combined into multicast delegates.
  • Events: Shows how to declare, invoke, and configure events in C#.
  • Explicit Interface: Demonstrates how to explicitly implement interface members and how to access those members from interface instances.
  • Generics: Shows how to make generic collection classes that can be used with the foreach statement.
  • Hello World: A Hello World application.
  • Indexers Part I: Shows how C# classes can declare indexers to provide array-like access to objects.
  • Indexers Part II: Shows how to implement a class that uses indexed properties. Indexed properties enable you to use a class that represents an array-like collection.
  • Libraries: Shows how to use compiler options to create a DLL from multiple source files; also, how to use the library in other programs
  • Named and Optional (C# 4.0): Demonstrates Named and Optional parameters, an alternative to method overloads
  • Nullable: Demonstrates value types, such as double and bool, that can be set to null
  • Office Sample (C# 4.0): Demonstrates how Dynamic and COM Interop make it easy to call Microsoft Office in C# 4.0
  • OLEDB: Demonstrates how to use a Microsoft Access database from C# by creating a dataset and adding tables to it.
  • Operator Overloading: Shows how user-defined classes can overload operators
  • Partial Types: Demonstrates how classes and structures can be defined in multiple C# source-code files
  • PInvoke: Shows how to call exported DLL functions from C#
  • Properties: Shows how properties are declared and used; also demonstrates abstract properties
  • Python Sample (C# 4.0): Learn how to call a Python script by using the Dynamic feature in C# 4.0
  • Security: Discusses .NET Framework security and shows how to modify security permissions in C# by using permission classes and permission attributes
  • Simple Variance (C# 4.0): See how Covariance and Contravariance are supported in generic interfaces and delegates
  • Structs: Shows how to use structs in C#.
  • Threading: Demonstrates various thread activities such as creating and executing a thread, synchronizing threads, interacting between threads, and using a thread pool
  • Unsafe: Shows how to use unmanaged code (code that uses pointers) in C#
  • User Conversions: Shows how to define conversions to and from user-defined types
  • Versioning: Demonstrates versioning in C# by using the override and new keywords
  • XML Documents: Shows how to document code by using XML
  • Yield: Demonstrates how to use the yield keyword to filter items in a collection

Was This Post Helpful? 4
  • +
  • -

#7 tinaCEO  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 8
  • Joined: 30-July 10

Re: i need help/advice on anti-virus software programming

Posted 31 July 2010 - 08:12 AM

First of all, you should learn the software developing and programming languages.then you will be able to create Anti-virus programme

ok........
Was This Post Helpful? -4
  • +
  • -

#8 Aeternalis  Icon User is offline

  • D.I.C Regular

Reputation: 28
  • View blog
  • Posts: 291
  • Joined: 13-July 09

Re: i need help/advice on anti-virus software programming

Posted 05 August 2010 - 01:14 PM

A very simplistic implementation of this could be just an application that accesses the file system on the host computer, and compares the files on the system with a database list of known virus file names.

This is not a complicated implementation, and can easily be extended to check registry hives and other information against different database tables.

This will not get you a robust and comprehensive anti virus system, but if you are looking to use it as a project to learn from, this might get you started.

Aet
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1