Sign inSign up

7rocky/dirlistdump

By 7rocky

Updated about 5 years ago

Image
0

999

7rocky/dirlistdump repository overview

dirListDump

dldump is a tool to download all the files from a website that has directory listing enabled (useful in CTF for extracting files from a web server).

Usage

The parameters that can be used in this tool are:

ParameterDefaultTypeMeaning
--url-URL (http://...)The URL to list the files from (required)
--threads10integerNumber of threads to use
--dumpdumpstringFolder to dump contents
--treetruebooleanShow the tree file structure
--help--Display the above parameters and explanations
Running the tool

First step, clone or download this repository:

git clone https://github.com/7Rocky/dirListDump
cd dirListDump

Then, you could run the Go source code using go run as shown below:

go run *.go --url <the-url>

The preferred way is to build the source code into a binary executable file.

You might be tempted to use go build -o dldump *.go, but it is not recommended because of the huge file it produces. Instead, it is possible to use:

go build --ldflags='-s -w' -o dldump *.go
upx --ultra-brute dldump

Note: You need to have upx installed in your machine.

The above process can last a few minutes, but generates a lighter file. Then, you can execute:

./dldump --url <the-url>

You can also include the binary executable file at /usr/local/bin or other similar path to be able to run it from every directory on your machine just as:

dldump --url <the-url>

Hope it is useful! :smile:

Tag summary

Content type

Image

Digest

Size

4.1 MB

Last updated

about 5 years ago

docker pull 7rocky/dirlistdump