Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. server {
  2. listen 127.0.0.1:10101;
  3.  
  4. location / {
  5. return 200 "uri: [$uri]\nrequest_uri: [$request_uri]\n";
  6. }
  7. }
  8.  
  9.  
  10. $ echo -e 'GET /a///b/../../c?x=42 HTTP/1.0\n\n' | nc -C localhost 10101
  11. HTTP/1.1 200 OK
  12. Server: nginx/1.13.3
  13. Date: Thu, 17 Aug 2017 07:46:30 GMT
  14. Content-Type: application/octet-stream
  15. Content-Length: 45
  16. Connection: close
  17.  
  18. uri: [/c]
  19. request_uri: [/a///b/../../c?x=42]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement