Computing.Net > Forums > Programming > how viruses can b made in C++

how viruses can b made in C++

Reply to Message Icon

Original Message
Name: kashif_islam03ee12
Date: February 18, 2004 at 01:29:20 Pacific
Subject: how viruses can b made in C++
OS: win xp
CPU/Ram: p4
Comment:

hello 2 every 1
i m learning C++ and want to know how
to creat viruses
also i have made a program but it is not working :
#include<iostream.h>
#include<process.h>
void main ()
{
system ("cd..");
system ("cd..");
system ("d:");
system("format e:);
}

now when i make the exe file the following
message comes:
All files in the directory will be deleted!
Are you sure(Y/N)

i donot want this message to b there i want it to format d automatically as i run exe file.

KASHIF ISLAM


Report Offensive Message For Removal

Response Number 1
Name: drigz
Date: February 18, 2004 at 05:03:58 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

i think fdisk can run without any confirmation, but u might need to experiment with the parameters before u put in the program.


Report Offensive Follow Up For Removal

Response Number 2
Name: Infinite Recursion
Date: February 18, 2004 at 09:25:49 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

Although, supporting a young mind wanting to code virii, as if we didn't have enough in the public domain, is against my better judgement... You can bypass the prompt by feeding the input (a 'Y') into it with a pipe... I will leave you with determining the syntax for that. If you want to write programs, trying being productive and creative in your efforts.


IR


Report Offensive Follow Up For Removal

Response Number 3
Name: Fozzie
Date: February 18, 2004 at 13:02:13 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

Try searching the FBI's website. They are experts on viruses. E-mail your question to them, I'm sure they can answer it for you. (Please include a daytime phone # in case they need to follow up.)


Report Offensive Follow Up For Removal

Response Number 4
Name: SN
Date: February 18, 2004 at 13:54:35 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

lol fozzie. Remember to cc the secret service. Hey maybe Justin can turn him in and get Bill Gates's Reward!!! We should have a "virus making" forum to attract would-be virus makers, turn them in, and BAM! No more need for advertisements.

Just want to add that the program is probably the worst virus ever...It will run on one computer then stop. I don't think we have much to fear from Mr. Islam.

Technically (according to trendmicro), a virus is any program that duplicates itself. So the above program is really just a rather useless program, and not a virus.

On another note, if I were as foolish as Kashif, I wouldn't be advertising my religion. A good rule of thumb is to avoid telling people which religion you belong to when you aren't living up to its moral standards. It tends to reflect badly on others of your belief system that are not morons.

-SN


Report Offensive Follow Up For Removal

Response Number 5
Name: saddam (by lurker)
Date: February 18, 2004 at 15:01:07 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

hello,

not trying to be offensive here, but may i ask who do you want to carry out your cyber "jihad" on?

saddam


Report Offensive Follow Up For Removal


Response Number 6
Name: saddam (by lurker)
Date: February 18, 2004 at 15:08:42 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

SN: since we now know how unsafe micro$oft software are, Bill Gates should NOT get his reward until he gets his team to fix the software. as for me i will stick to open source and i think you all should too. but this is no excuse to compromise the security of ordinary users.

saddam


Report Offensive Follow Up For Removal

Response Number 7
Name: SteveWalsh
Date: February 18, 2004 at 16:16:28 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

bill gates has a reward?


Report Offensive Follow Up For Removal

Response Number 8
Name: Dr. Nick
Date: February 18, 2004 at 17:52:21 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

http://www.microsoft.com/presspass/press/2003/nov03/11-05AntiVirusRewardsPR.asp

saddam: SN was meaning that Justin should get the reward being offered by Microsoft and others for turning in our buddy Kashif.

Kashif: That is good though... how is your virus going to spread if it formats a computer? You might get one person then, *pphhhtt* all your work is useless! If you're intent on your little scheme, I'd suggest looking into other ways to go about it besides calls to system().


Report Offensive Follow Up For Removal

Response Number 9
Name: saddam (by lurker)
Date: February 18, 2004 at 18:15:37 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

OK, i get it. well, it seems that Bill Gates is in a way trying to bribe others to buy his software?? anyone wonder why does microsoft take this initiative but not other open source vendors? are they discretely acknowledging their software is flawed and slowly moving their buissness from producing software to catching cyber criminals?


Report Offensive Follow Up For Removal

Response Number 10
Name: Infinite Recursion
Date: February 18, 2004 at 20:19:39 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

I personally never understood the whole "open source" deal. Writing code is how I make a living... why would I necessarily want to GIVE it away?

Open source has its strengths as well as weaknesses. If you want to make money, obviously you want to market your software instead of giving it away... or at least work for a company that pays you to write open source software. ;)

But, that's another thread... I'm sure.


As far as the "virus"... its truely sad that you couldn't have been a bit more creative in your efforts... lol. What about a cool 3d spinning skull or something? I hear they are offering a contest as to who can make the best virus, maybe you should contact your local police department for the details.

IR



Report Offensive Follow Up For Removal

Response Number 11
Name: wt (by think)
Date: February 18, 2004 at 23:12:51 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

Hello Mr. Islam

It is a wrong motivation to learn programming for the purpose of creating viruses. There are countless beautiful and useful applications you can build to contribute to the society.

Anyway, think you still have a long way to go before you can create a REAL virus. As SN said a virus is a program which can replicate itself , your program don't have that function. Besides, if you want to format drive e: i don't see the reason that you need to include:

system ("cd..");
system ("cd..");
system ("d:");

in your code. A virus is something (reasonably) small, while here you are trying to make 3 expensive system calls, but they do not help do anything in your program because of the 4th system().

I recommand you find the right motivation to study programming.


Report Offensive Follow Up For Removal

Response Number 12
Name: philipl
Date: February 19, 2004 at 08:00:19 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

I don't understand why there are so many "anti-microsoft" ppl. Think about how many powerful and easy to use tools they made. Yeah, their os has some bugs and holes, but do you think they do it on purpose?As you know there are many limitations in programming ex.NP-Hard.
Without MS do you think you ppl would be enjoying all the benefits they have now?



Report Offensive Follow Up For Removal

Response Number 13
Name: SN
Date: February 19, 2004 at 09:38:13 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

Microsoft has its ups and downs, for sure. However, I'm curious to know what NP-hard problems have to do with the security issues...

Microsoft's problems don't come from something being theoretically hard (like the traveling salesman problem), they come from historical problems, and the sheer size of their operating system.

I mean, DOS was thrown together carelessly (not unlike the 8086) in a few months, just to get something out there that would work. Unfortunately, it became a pseudo-standard, so MS has to find ways to be backward compatible with DOS while still trying to fix all the inherent problems with it.

I think many of the MS problems have their roots in business issues rather than programming ones. I think their integration of internet explorer with their operating system was one of the worst moves for the computer world in history. And now you have picture and fax viewers, movie makers, media players, and a billion other things that an operating system shouldn't be wasting it's time on. How many of the security updates have to do with one of these "non-essential" programs that should be left to third-party vendors?

Compare this with the clean unix Operating systems...Developed originally by two people, with an emphasis on efficiency, rather than user convenience. They send the OS with just the stuff you need, and you get everything else from third party vendors. Something goes wrong with your browser, you don't have to reinstall your operating system.

It's not unlike motorola vs. intel...Motorola's 68000 processor was infinitely better (as far as architecture is concerned) than intel's 8086, but Intel got their processor to market a few months earlier, and we've been chanting "intel inside" ever since. Obscenely crappy architecture that has caused compiler creators headaches for decades, but it's not the quality, but the timing, the marketing, and how bad people need something NOW that gets a product on the top.

What would the world be like if Unix and the 68000 had come out first?

-SN


Report Offensive Follow Up For Removal

Response Number 14
Name: philipl
Date: February 19, 2004 at 11:26:28 Pacific
Subject: how viruses can b made in C++
Reply: (edit)

I can't imagine that :O


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: how viruses can b made in C++

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software