Thread: What is a virus

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Kansas City
    Posts
    76

    What is a virus

    Are there rules that decide if a given program is a virus?

    If I maka a simple program that creates a txt file somewhere in system directory (ex. WINDOWS\system32) and via a infinite loop writes text to the file eventualy filling up a hard drive, is that program a virus ?

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Suchy View Post
    Are there rules that decide if a given program is a virus?

    If I maka a simple program that creates a txt file somewhere in system directory (ex. WINDOWS\system32) and via a infinite loop writes text to the file eventualy filling up a hard drive, is that program a virus ?
    No. A virus is a program which embeds itself in another program, and uses the execution of the infected program as a means of spreading itself. The program you are describing is a plain old denial-of-service attack.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    My definition is any type of program whose intent is malicious and therefore contains malicious code.
    Anyway, here's wikipedia's take on it: http://en.wikipedia.org/wiki/Computer_virus
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    88
    Quote Originally Posted by Suchy View Post
    Are there rules that decide if a given program is a virus?

    If I maka a simple program that creates a txt file somewhere in system directory (ex. WINDOWS\system32) and via a infinite loop writes text to the file eventualy filling up a hard drive, is that program a virus ?
    I think malware is here the genius. For a definition of the words malware and virus propose using wikipedia.

  5. #5

    Join Date
    May 2005
    Posts
    1,042
    If it's a pain in the ass it's a virus, and you suck for writing it.

    EDIT:
    Oh yeah, 'in my humble opinion.'
    I'm not immature, I'm refined in the opposite direction.

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by BobMcGee123 View Post
    If it's a pain in the ass it's a virus, and you suck for writing it.
    Is that why all of my wonderful coworkers complain to me that their computer is infected with a virus when their computer locks up after they incorrectly enter their password three times in a row?
    Sent from my iPadŽ

  7. #7
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    What kind program/os locks up because you misspelled your password 3 times?? (or is that actually a safety?)

    Computer Virus: Elysia.
    Now you know what happened to the board!

  8. #8
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Suchy View Post
    Are there rules that decide if a given program is a virus?
    As brewbuck said.
    You may also want to check on these names: trojan horse, computer worm, malware, and even spyware.

    Unfortunately, like with many other things these days, proper usage of these terms is being deterred by the Pop Culture For The Masses perpetrated by the media at large; my term, so take it as you want. It just means this horrendous idea that people are ignorant and incapable of learning and as such its easier if you just cut down on the lingo and adopt the catch phrases instead.

    The press loves it and is the main responsible for the confusion on this and many other issues - "hackers" being another one that is today totally devoid of its true meaning. The world of computing was a much more accurate place before it become news. Some of the things I hear on prime time news... sorry, need to check my blood pressure.

    Anyways, ranting aside, check those terms on wikipedia, for starters, if you want to have a more accurate description of their meanings.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #9

    Join Date
    May 2005
    Posts
    1,042
    Is that why all of my wonderful coworkers complain to me that their computer is infected with a virus when their computer locks up after they incorrectly enter their password three times in a row?
    I believe the response that you want is 'no comment.'

    I'm not immature, I'm refined in the opposite direction.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Yarin View Post
    What kind program/os locks up because you misspelled your password 3 times?? (or is that actually a safety?)
    You'd be surprised how many things actually lock themselves today when you type wrong password 3 times!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Banned
    Join Date
    Nov 2007
    Posts
    678
    Any software written with ill intentions is a Virus!
    Now how it does that is a moot point!

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Not always. That's why we have a malware category!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #13
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Brewbuck's definition of a computer virus is correct; as in it behaves like a biological virus. The word is often used to describe malware in general, but this is misleading. For example a lot of anti-virus software wont protect you from all malware such as rootkits or spyware, which seem to be more a threat than viruses nowadays.

  14. #14
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    I thought a virus was self-replicating, and a worm was replicated in a host program. Or is it the other way around?

  15. #15
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I think you have those two mixed up.
    Virus infects other programs to do its work.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trojan horse generic
    By crvenkapa in forum Tech Board
    Replies: 8
    Last Post: 06-04-2007, 08:49 PM
  2. Virus in Commercial Download - Can anyone confirm this?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 08-03-2004, 05:07 PM
  3. virus help
    By Benzakhar in forum Tech Board
    Replies: 9
    Last Post: 01-20-2004, 12:28 AM
  4. Virus Warning!
    By Hillbillie in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 08-17-2001, 01:22 AM