VirusProgram'n


SUBMITTED BY: ProffesorFaux

DATE: July 23, 2020, 5:40 a.m.

FORMAT: Text only

SIZE: 1.7 kB

HITS: 393

  1. VIRUS PROGRAMMING
  2. Everybody is scared of computer ‘virus’ as it does harmful actions on our computer. But
  3. when we look into the virus programming, we may certainly come out with the conclusion that it requires intelligence to code a virus.
  4. Logic
  5. It is easy to mess-up the right program. For example, if you remove even a single byte
  6. from an EXE file, that EXE file won’t be usable! Virus program don’t have any specific rules.
  7. But it’s a common practice to include ‘signatures’ by virus creators. The main idea is to force the innocent user to run the programs. So certain viruses come along with so called ‘programmer utilities’ or ‘free tools’. Another thing is, it is easy to hang-up a working system using some ‘bad’interrupts.
  8. Viruses use this logic too! TSR viruses
  9. When TSR got its popularity, crackers started using TSR concepts for virus
  10. programming. There was a time when people who knew TSR started writing their own TSR viruses. But when Windows operating system was introduced, TSR viruses lost their “popularity”.
  11. I have written the following program. This is actually a TSR virus. It is not much
  12. harmful; it just changes the attribute (color) byte of the existing characters present on screen.
  13. #ifndef __SMALL__
  14. #error Compile with Small memory model #else
  15. #include
  16. int i = 1;
  17. char far *Vid_RAM = (char far *)0xb8000000; void interrupt (*Int9)( void );
  18. void interrupt MyInt9( void );
  19. void interrupt MyInt9( void )
  20. {
  21. *( Vid_RAM + i ) = i;
  22. if ( i>4000 )
  23. i = 1;
  24. else
  25. i += 2;
  26. (*Int9)( );
  27. } /*--interrupt MyInt9-----*/
  28. int main(void)
  29. {
  30. Int9 = getvect( 9 );
  31. setvect( 9, MyInt9 );
  32. keep( 0, 500 );
  33. return(0);
  34. } /*--main( )----*/
  35. #endif

comments powered by Disqus