Skip to content

Instantly share code, notes, and snippets.

@yangbh
yangbh / fpm.py
Created April 27, 2017 03:18 — forked from phith0n/fpm.py
Fastcgi PHP-FPM Client && Code Execution
import socket
import random
import argparse
import sys
from io import BytesIO
# Referrer: https://github.com/wuyunfeng/Python-FastCGI-Client
PY2 = True if sys.version_info.major == 2 else False