This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding=utf-8 | |
import SimpleHTTPServer | |
import SocketServer | |
import time | |
class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
if str(self.headers).find('UserLogin=1') > 0: # 用户已记录,跳转 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding:utf-8 -*- | |
''' | |
IIS put file From http://www.lijiejie.com | |
Usage: | |
iisPUT.py www.example.com:8080 | |
''' | |
import httplib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding=utf-8 | |
__author__ = 'lijiejie' | |
''' | |
在smtp认证的时候,用户名全部变成username.iqiyi.com的形式,否则连接主动被服务器断开 | |
''' | |
import socket | |
import select |