Skip to content

Instantly share code, notes, and snippets.

@ycwan9
ycwan9 / SimpleHTTPServerWithUpload.py
Last active January 1, 2018 05:34 — forked from weilence/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version and support chinese
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
import re
import codecs
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select