Skip to content

Instantly share code, notes, and snippets.

@lijiejie
lijiejie / HTTP Basic Auth Phishing.py
Last active August 10, 2016 04:09
HTTP Basic Auth Phishing Attack
#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: # 用户已记录,跳转
@lijiejie
lijiejie / IIS_Put_File.py
Created July 29, 2014 13:56
IIS put File
#-*- encoding:utf-8 -*-
'''
IIS put file From http://www.lijiejie.com
Usage:
iisPUT.py www.example.com:8080
'''
import httplib
@lijiejie
lijiejie / smtp_proxy.py
Created March 9, 2015 08:31
SMTP proxy to implement two factor auth
#encoding=utf-8
__author__ = 'lijiejie'
'''
在smtp认证的时候,用户名全部变成username.iqiyi.com的形式,否则连接主动被服务器断开
'''
import socket
import select