mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 05:41:49 +00:00
34 lines
963 B
Plaintext
34 lines
963 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# dirsearch
|
|
|
|
> Web path scanner.
|
|
> More information: <https://github.com/maurosoria/dirsearch>.
|
|
|
|
- Scan a web server for common paths with common extensions:
|
|
|
|
`dirsearch --url {{url}} --extensions-list`
|
|
|
|
- Scan a list of web servers for common paths with the `.php` extension:
|
|
|
|
`dirsearch --url-list {{path/to/url-list.txt}} --extensions {{php}}`
|
|
|
|
- Scan a web server for user-defined paths with common extensions:
|
|
|
|
`dirsearch --url {{url}} --extensions-list --wordlist {{path/to/url-paths.txt}}`
|
|
|
|
- Scan a web server using a cookie:
|
|
|
|
`dirsearch --url {{url}} --extensions {{php}} --cookie {{cookie}}`
|
|
|
|
- Scan a web server using the `HEAD` HTTP method:
|
|
|
|
`dirsearch --url {{url}} --extensions {{php}} --http-method {{HEAD}}`
|
|
|
|
- Scan a web server, saving the results to a `.json` file:
|
|
|
|
`dirsearch --url {{url}} --extensions {{php}} --json-report {{path/to/report.json}}`
|