Open In App

DirSearch – Go implementation of dirsearch

Improve
Improve
Like Article
Like
Save
Share
Report

Fuzzing is the process in which the detection of hidden files and directories is done. These interesting files and directories can contain some delicate data like SSH keys, Usernames, Passwords, etc. So to detect these files and directories we use automated tools. 

DirSearch is an automated tool developed in the Golang language which is the implementation of parent tool dirsearch. This tool makes the task of fuzzing very easier and provides the list of interesting directories and files on the target server. We can also provide our custom wordlist which may contain more fuzzing words.

Note: As DirSearch is a Golang language-based tool, so you need to have a Golang environment on your system. So check this link to download Golang in your system. – How to Install Go Programming Language in Linux

Installation of DirSearch Tool in Kali Linux OS

Step 1: Use the following command to install the tool in your Kali Linux operating system.

git clone https://github.com/evilsocket/dirsearch.git

Step 2: Now use the following command to move into the directory of the tool. You have to move in the directory in order to run the tool.

cd dirsearch

Step 3: Create a new module using the following command.

go mod init cmd/dirsearch/main.go

Step 4: Get the tidy module using the following command

go mod tidy

Step 5: Build the go file by using the following command

make build

Step 6: Change the directory to the build folder.

cd build/

Step 7: Change the directory to linux_x64 in the build folder.

cd linux_x64/

Step 8: Now, we are good to go. Check the help page using the following command.

./dirsearch -h

Working with DirSearch Tool in Kali Linux OS

Example 1: Directory Fuzzing on geeksforgeeks.org

./dirsearch -url geeksforgeeks.org

In this example, we will be searching for some interesting directories on the target domain geeksforgeeks.org.

Example 2: Setting custom consumer value

./dirsearch -url geeksforgeeks.org -consumers 10

In this example, we have given the custom consumer or thread value which will boost the searching process.


Last Updated : 28 Nov, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads