I want to know about virus programing in C/C++ and some example with
Virus Programming in C/C++Basics about virus programing in C/C++ and some example
16 Replies - 16436 Views - Last Post: 08 August 2009 - 06:05 AM
Replies To: Virus Programming in C/C++
#4
Re: Virus Programming in C/C++
Posted 18 March 2008 - 05:20 AM
Virus programming often leads to illegal activities, and as such, the site cannot provide or promote any code that would be used in a virus.
I'll leave the thread open for the moment, to see if the user can provide an acceptable explanation as to why he/she may want virus code. We have no problem with the discussion of viruses, but I will delete any code that may be used in the creation of a software virus.
I'll leave the thread open for the moment, to see if the user can provide an acceptable explanation as to why he/she may want virus code. We have no problem with the discussion of viruses, but I will delete any code that may be used in the creation of a software virus.
#5
Re: Virus Programming in C/C++
Posted 18 March 2008 - 05:57 AM
Quote
If you know the enemy
and know yourself, you need not fear the result of a
hundred battles.
and know yourself, you need not fear the result of a
hundred battles.
thats the only reason I can think of. he want to create an antivirus program and because of that, he needs to 'know' the enemy(virus) first
#6
Re: Virus Programming in C/C++
Posted 18 March 2008 - 10:23 AM
the best way to learn how to make virus is to study the ones that have been made. Though i only suggest making viruses if you were making one as a prank. Also most viruses i found were coded in Visual Basic, so that might be a plus.
admin edit: link to virus source code site removed - Amadeus
admin edit: link to virus source code site removed - Amadeus
This post has been edited by Amadeus: 18 March 2008 - 10:25 AM
#7
Re: Virus Programming in C/C++
Posted 18 March 2008 - 10:30 AM
If you have to ask how to make a virus, then it is beyond your ability, and you shouldn't be making one anyways.
#8
Re: Virus Programming in C/C++
Posted 18 March 2008 - 10:32 AM
Here comes the lock!
#9
Re: Virus Programming in C/C++
Posted 18 March 2008 - 11:50 AM
Actually virus programming is quite interesting. Because of its nature it can be a little difficult to find information on the topic. There are a number of books that go into detail -- but you will find most of them out of date.
I find that searching for things like "programming viruses" does not turn up much information, but if you take it from the other side and search the security sites you can find quite in-depth discussions (including source code).
I find that searching for things like "programming viruses" does not turn up much information, but if you take it from the other side and search the security sites you can find quite in-depth discussions (including source code).
#10
Re: Virus Programming in C/C++
Posted 19 March 2008 - 09:47 AM
Quote
Actually virus programming is quite interesting. Because of its nature it can be a little difficult to find information on the topic.
Very true.
Let me also state that C with Assembly Inserts can make viruses more 'interesting'
#11
Re: Virus Programming in C/C++
Posted 07 April 2008 - 09:24 PM
If you are an experienced coder most especially in Windows API. Writing a virus is not difficult. For me, C/C++ is one of the best languages.
#12
Re: Virus Programming in C/C++
Posted 07 April 2008 - 09:30 PM
red_4900, on 18 Mar, 2008 - 08:57 AM, said:
Quote
If you know the enemy
and know yourself, you need not fear the result of a
hundred battles.
and know yourself, you need not fear the result of a
hundred battles.
thats the only reason I can think of. he want to create an antivirus program and because of that, he needs to 'know' the enemy(virus) first
Actually, I would disagree with this comment. For two reasons:
1.) What would writing viruses have to teach you about how an Anti Virus works? Since Anti Viruses work with the binary executable, the how & why of virus code is irrelevant.
2.) Anti Viruses don't really care what a Virus does (or how it works). An Anti Virus simply hooks the Windows API Messenger, & simply scans for known "Strings". That's why "new" viruses that are simply re-writes of existing code are considered new breakouts & get those funky .a .b & what have you extensions (that I've seen with McAfee anyhow).
#13
Re: Virus Programming in C/C++
Posted 08 April 2008 - 07:32 AM
There are lots of reasons to learn about virus programming. First of all there is a great benefit to understand what is going on. Sometimes Anti-Virus software is not enough because as No2 points out they tend to look for known viruses. But they can also check for some known behaviors (like writing info to MBR).
There is also a mindset that goes along with virus programming. When we develop software we tend to think about how to solve problems and meet requirements etc. and we try to make our systems expandable and manageable. And we tend to write in security holes in the process. We didn't mean to, but our mind set was focused on how to make things work, not "how can I use this to take advantage?"
There are many viruses which exploit very innocuous looking features.
side note: I have a friend who is amazing at building decks for Magic the Gathering. The reason is that he can see the loop holes. He takes seemingly harmless cards and sees how they can be leveraged with other cards to create killer combinations. -- I have always said that he could make a great deal of money in computer security (wearing either the black or white hat).
So learning to critique your software from a virus programmers point of view helps you see the potential exploits (which you may not be able to avoid, but at least you can know take steps to make it harder to exploit).
And then there are times when this point of view can be VERY helpful. We tend to use things roughly as they were designed to be used, but sometimes some of the most elegant solutions are actually an unintended use of a software feature. For example meta-template-programming in C++ was *discovered* not designed. Its an exploit of preexisting system.
Many many inventions are actually just creative uses for existing systems. Virus programming is all about this type of thinking: Using systems/protocals/APIs/Software features etc to achieve unintended results.
There is also a mindset that goes along with virus programming. When we develop software we tend to think about how to solve problems and meet requirements etc. and we try to make our systems expandable and manageable. And we tend to write in security holes in the process. We didn't mean to, but our mind set was focused on how to make things work, not "how can I use this to take advantage?"
There are many viruses which exploit very innocuous looking features.
side note: I have a friend who is amazing at building decks for Magic the Gathering. The reason is that he can see the loop holes. He takes seemingly harmless cards and sees how they can be leveraged with other cards to create killer combinations. -- I have always said that he could make a great deal of money in computer security (wearing either the black or white hat).
So learning to critique your software from a virus programmers point of view helps you see the potential exploits (which you may not be able to avoid, but at least you can know take steps to make it harder to exploit).
And then there are times when this point of view can be VERY helpful. We tend to use things roughly as they were designed to be used, but sometimes some of the most elegant solutions are actually an unintended use of a software feature. For example meta-template-programming in C++ was *discovered* not designed. Its an exploit of preexisting system.
Many many inventions are actually just creative uses for existing systems. Virus programming is all about this type of thinking: Using systems/protocals/APIs/Software features etc to achieve unintended results.
#14
Re: Virus Programming in C/C++
Posted 29 July 2008 - 06:57 PM
I know that this topic is dead but this is for others that come across this.
I have written viruses before and its not hard at all. If you want to learn to write one then google is your best friend but if you want to learn how they "Think" then this is for you!!
Virus want to survive and be a pain in the A**. In order for them to survive they have to block off certain programs and become silent. They block others by the title of the window so for instance Windows Task Manager is the title of Task manager, That is what it looks for.
The best way to stop a new virus that i have found is to use the Taskkill function in ms dos prompt.
if you compile a code like this it will allow you to use Command Prompt
Hope this helps someone
I have written viruses before and its not hard at all. If you want to learn to write one then google is your best friend but if you want to learn how they "Think" then this is for you!!
Virus want to survive and be a pain in the A**. In order for them to survive they have to block off certain programs and become silent. They block others by the title of the window so for instance Windows Task Manager is the title of Task manager, That is what it looks for.
The best way to stop a new virus that i have found is to use the Taskkill function in ms dos prompt.
if you compile a code like this it will allow you to use Command Prompt
#include <iostream>
using namespace std;
void main(void) //some rather prude compilers wont allow void for a function type
{
start:;
char Input[100];
cout << "Command: ";
cin >> Input;
system(Input);
goto start;
}
Hope this helps someone
#15
Re: Virus Programming in C/C++
Posted 29 July 2008 - 07:07 PM
I don't think "true" virii impacts as many these days as it used to... virii meaning a program that spreads itself by modifying other programs (in the literal sense). There have been quite a few programs that spread themselves via. email, which is sort of an automated social engineering technique. Yes, sometimes these programs actually exploit flawed software to do such. I'm more worried about rootkits than actually being infected with a virus these days.
|
|

New Topic/Question
This topic is locked




MultiQuote













|