What is a virus

This is a discussion on What is a virus within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Are there rules that decide if a given program is a virus? If I maka a simple program that creates ...

  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
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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,041
    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,069
    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
    1,627
    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!
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  8. #8
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,465
    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.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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,041
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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.

Page 1 of 2 12 LastLast
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-19-2004, 11:28 PM
  4. Virus Warning!
    By Hillbillie in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 08-17-2001, 01:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21