您的位置:首页 > 其它

间接信息传递(可以发挥想象实现远程关机==)

2009-06-16 10:29 211 查看
import win32com.client
import urllib
import time
import sys,commands
import os

while 1:
(a,b) =urllib.urlretrieve('http://sites.google.com/site/chenlu/Home/MSG.txt?attredirects=0')
print a
time.sleep(30)
print b
try:
file=open(a,"r")
except IOError:
print >> sys.stderr, "File could not be opened"
sys.exit(1)
records=file.readlines()
for record in records:
fields=record.split()
if fields[0]=="OPEN":
massage="net send cs2c-chenlu %s"%(fields[1])
os.system(massage)
time.sleep(60)
file.close()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐