projectdiscovery/simplehttpserver

Can the value in the response be taken from the request?

cyal1 opened this issue · 1 comments

cyal1 commented

example

rules:
  # HTTP Requests
  - match: GET /path1
    response: |
              HTTP/1.0 301 Moved Permanently
              Location: {{param.url}}   # or Location: http://{{param.url.base64decode}}
              Server: httpd/2.0
              x-frame-options: SAMEORIGIN
              x-xss-protection: 1; mode=block
              Date: Fri, 16 Apr 2021 14:30:32 GMT
              Content-Type: text/html
              Connection: close

              {{body}}

Not currently @cyal1, Can you share more insights on what are you trying to achieve here? not sure if proxify can be any help here.