epi052 / feroxbuster

A fast, simple, recursive content discovery tool written in Rust.
https://epi052.github.io/feroxbuster/
MIT License
5.61k stars 472 forks source link

[BUG] error: the argument '--wordlist <FILE>' cannot be used multiple times #1046

Closed therohitdas closed 6 months ago

therohitdas commented 6 months ago

I am unable to use this tool as it is not loading the wordlist properly on MacOS.

I downloaded using the brew install feroxbuter command on MacOS 14.2.1. I downloaded the wordlist and stored it in this directory: /Users/therohitdas/.local/wordlists

I tried using two methods to tell feroxbuster about my wordlist:

  1. By using the config file located I created it at /Users/therohitdas/Library/Application Support/feroxbuster as per the doc.
    
    # wordlist = "/Users/therohitdas/.local/wordlists/combined_words.txt"
    wordlist = "/Users/therohitdas/.local/wordlists/combined_directories.txt"

extract_links = true # to find all visible and invisible links

random_agent = true time-limit = "10m" auto-tune = true

I get this error:
```bash
Could not open /Users/therohitdas/.local/wordlists/seclists/Discovery/
  1. By using the command line argument after commenting out the wordlist var in the config:
    feroxbuster -u "https://localhost/" -w "/Users/therohitdas/.local/wordlists/combined_directories.txt"

    I get this error:

    
    error: the argument '--wordlist <FILE>' cannot be used multiple times

Usage: feroxbuster [OPTIONS]

For more information, try '--help'.



**Environment (please complete the following information):**
 - feroxbuster version: 2.10.1
 - OS: macOS 14.2.1
 - CPU: (8) arm64 Apple M1 Pro
 - Memory: 83.61 MB / 16.00 GB
 - Shell: 5.9 - /bin/zsh
epi052 commented 6 months ago

howdy!

this error

Could not open /Users/therohitdas/.local/wordlists/seclists/Discovery/

doesn't jive with the paths you said you're using. Is that error right? It looks like it's trying to open a directory based on what you posted.

for this one

error: the argument '--wordlist <FILE>' cannot be used multiple times

Usage: feroxbuster [OPTIONS]

For more information, try '--help'.

Can you try commenting out the wordlist line from the config and then using only the command line option? The command line is supposed to override the config file entry, however, i don't have a mac to confirm it works the same way there.

epi052 commented 6 months ago

if there's something specific to your environment/file system throwing a wrench in the gears, you can load a wordlist over http as well

feroxbuster -u https://target.com -w https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/Web-Content/combined_directories.txt
therohitdas commented 6 months ago

Namaste && Happy New Year!

doesn't jive with the paths you said you're using. Is that error right? It looks like it's trying to open a directory based on what you posted.

I have pasted the correct error message. It puzzled me too. Either my host OS is faulty or the code that opens the wordlist in feroxbuster shows this error on Mac only.

Can you try commenting out the wordlist line from the config and then using only the command line option?

I have tried doing this and the second error is after doing just that.

I don't know how to write rust code, but if you point me to the file and lines where Wordlist is open and where the config is handled, I can try debugging on macOS using AI tools.

therohitdas commented 6 months ago

This works, thanks. https://github.com/epi052/feroxbuster/issues/1046#issuecomment-1872632670

epi052 commented 6 months ago

closing as complete, feel free to reopen if needed