HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dirsearch — Web path scanner. More information: <https://github.com/maurosoria/dirsearch#options>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandscannerpathcliinformationwebmoredirsearch

Problem

How to use the dirsearch command: Web path scanner. More information: <https://github.com/maurosoria/dirsearch#options>.

Solution

dirsearch — Web path scanner. More information: <https://github.com/maurosoria/dirsearch#options>.

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-paths1.txt,path/to/url-paths2.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}}

Code Snippets

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-paths1.txt,path/to/url-paths2.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}}

Context

tldr-pages: common/dirsearch

Revisions (0)

No revisions yet.