1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 15:15:23 +02:00
tldr/pages/common/dirsearch.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

1,019 B

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

  • Scan a list of web servers for common paths with given file extensions:

dirsearch {{[-l|--url-list]}} {{path/to/url-list.txt}} {{[-e|--extensions]}} {{php,jsp,aspx,...}}

  • 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,...}}

  • Scan a web server using a cookie:

dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --cookie {{cookie}}

  • Scan a web server using the HEAD HTTP method:

dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} {{[-m|--http-method]}} {{HEAD}}

  • Scan a web server, saving the results to a .json file:

dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --json-report {{path/to/report.json}}