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:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`dirsearch {{[-u|--url]}} {{url}} --extensions-list`
|
2020-03-30 19:53:27 +02:00
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
- Scan a list of web servers for common paths with given file extensions:
|
2020-03-30 19:53:27 +02:00
|
|
|
|
2025-04-25 21:19:03 +03: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:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`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:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`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:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`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:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --json-report {{path/to/report.json}}`
|