projectdiscovery/simplehttpserver

Failing to properly parse incoming HTTP requests

uBadRequest opened this issue · 1 comments

simplehttpserver version: 0.0.5

Current Behavior:

Using rules to respond to incoming HTTPS requests aren't working as intended. If the first word doesn't match, it skips the entire request. The first word is usually the method.

image

For example, I created a rule that just matches on the word "GET", otherwise, it doesn't do anything.

image

Expected Behavior:

Look at the entire HTTP request for a match, not just the first word.

Steps To Reproduce:

  1. Create rules.yaml with a rule to respond to a GET request
  2. Run 'simplehttpserver -rules rules.yaml -tcp -tls -https -verbose -listen 127.0.0.1:443'

Anything else: