官术网_书友最值得收藏!

How to do it...

Since GoBuster is built on Go, we first need to install Go on Kali:

  1. Do this by using the following command:
apt install golang
  1. First, we clone the Git repository from the following URL: https://github.com/OJ/gobuster. You will see the following output:
  1. Now, browse into the directory and pull the external dependencies before building the binary using the following command:
go get -u github.com/OJ/gobuster && go build

The following screenshot shows the output of the preceding command:

As we can see from the preceding screenshot, the build command completed successfully without any error.

  1. Now, run the help command and see what options are available for us to use:

Gobuster has lots of features such as brute forcing directories that are behind HTTP authentication, setting a custom user-agent, and so on. Let's try it.

By default, Gobuster needs a wordlist. We can use the -w flag to specify a list and -x to specify the extension of the file we are trying to brute force:

./gobuster -x php -u "http://testphp.vulnweb.com/" -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt

The following screenshot shows the output of the preceding command:

As we can see in the preceding screenshot, the tool successfully starts brute forcing and returns the page responses for everything it finds.

主站蜘蛛池模板: 潞西市| 靖边县| 贵南县| 新巴尔虎右旗| 章丘市| 清流县| 娱乐| 荣昌县| 怀安县| 东方市| 正镶白旗| 江门市| 故城县| 县级市| 瑞昌市| 黄陵县| 长宁区| 亚东县| 通河县| 遵义市| 朔州市| 金乡县| 梁河县| 彭阳县| 曲阳县| 东阿县| 萍乡市| 洞口县| 桂林市| 普兰县| 洛隆县| 饶河县| 获嘉县| 郸城县| 鹿泉市| 乡宁县| 丹东市| 深水埗区| 宁城县| 洱源县| 班戈县|