Skip to content

Instantly share code, notes, and snippets.

@Sinkmanu
Created January 18, 2021 14:24
Show Gist options
  • Save Sinkmanu/8ec656aee03051b272bde600fd4e9264 to your computer and use it in GitHub Desktop.
Save Sinkmanu/8ec656aee03051b272bde600fd4e9264 to your computer and use it in GitHub Desktop.
Basic HTTP fuzzer (w boofuzz)
from boofuzz import *
import sys
host = sys.argv[1]
port = int(sys.argv[2])
session = Session(target=Target(SocketConnection(host, int(port))))
s_initialize(name="request")
with s_block("verb"):
s_group("Method", ["GET", "HEAD"])
s_delim(" ", name="space1")
s_static("FUZZ", size=-1)
s_delim(" ", name="space2")
s_string("HTTP")
s_string("/", fuzzable=False)
s_string("1.1")
s_static("\r\n", name="Request-Line-CRLF")
s_static("\r\n", "Request-CRLF")
session.connect(s_get("request"))
session.fuzz()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment