1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 20:55:24 +02:00
tldr/pages/common/dirsearch.md

29 lines
1,019 B
Markdown
Raw Normal View History

2020-03-30 19:53:27 +02:00
# dirsearch
> Web path scanner.
> More information: <https://github.com/maurosoria/dirsearch>.
- Scan a web server for common paths with common extensions:
`dirsearch {{[-u|--url]}} {{url}} --extensions-list`
2020-03-30 19:53:27 +02:00
- Scan a list of web servers for common paths with given file extensions:
2020-03-30 19:53:27 +02:00
`dirsearch {{[-l|--url-list]}} {{path/to/url-list.txt}} {{[-e|--extensions]}} {{php,jsp,aspx,...}}`
2020-03-30 19:53:27 +02:00
- Scan a web server for user-defined paths with common extensions:
`dirsearch {{[-u|--url]}} {{url}} --extensions-list {{[-w|--wordlists]}} {{path/to/url-paths.txt,path/to/url-paths.txt,...}}`
2020-03-30 19:53:27 +02:00
- Scan a web server using a cookie:
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --cookie {{cookie}}`
2020-03-30 19:53:27 +02:00
- Scan a web server using the `HEAD` HTTP method:
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} {{[-m|--http-method]}} {{HEAD}}`
2020-03-30 19:53:27 +02:00
- Scan a web server, saving the results to a `.json` file:
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --json-report {{path/to/report.json}}`