Recipes - yeswehack/pwn-machine GitHub Wiki
HTTP to HTTPS redirect
-
First create a new
redirectSchememiddleware withschemeset tohttps.
-
Then create a router using that middleware and the
noop@redisservice, don't forget to put a low priority on this router if you want to use http for some service later.
DNS Rebinding
Create a LUA A rule that return a random IP from a list, don't forget to put a short TTL.

Creating a catchall http
If you want to create a router that match all subdomain and a parent you can use this rule
HostRegexp(`example.com`, `{subdomain:.*}.example.com`)
And dont forget to put a low priority