Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #356

Closed
GobiasSomeCoffeeCo opened this issue Sep 21, 2021 · 10 comments
Closed

[BUG] #356

GobiasSomeCoffeeCo opened this issue Sep 21, 2021 · 10 comments
Labels
bug Something isn't working unconfirmed

Comments

@GobiasSomeCoffeeCo
Copy link

Describe the bug
Hey @epi052 ! Downloaded feroxbuster via cargo install feroxbuster, but when running an initial scan on a localhost instance, it continued to produce the error " Failed while scanning: Could not open /wordlists/raft-medium-directories.txt". In this example, I changed to ferox-config.toml "wordlist" to the specified directory, because the default "/usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt" was getting the same error (I checked and the directory did not exist). I noticed this was an issue when installing with snap, but unsure if this is a common issue with other install methods?

To Reproduce
Steps to reproduce the behavior:

  1. Download via cargo install feroxbuster
  2. run feroxbuster -u http://127.0.0.1:8000

Expected behavior
Hoping it works without the -w ~/wordlists/raft-medium-directories.txt flag.

Traceback / Error Output
" Failed while scanning: Could not open /wordlists/raft-medium-directories.txt".

Environment (please complete the following information):

  • feroxbuster version: 2.3.2
  • MacOS 11.6

Additional context
Seems like an awesome tool and would be willing to help contribute with any fixes going forward!

Screen Shot 2021-09-20 at 7 59 29 PM

@GobiasSomeCoffeeCo GobiasSomeCoffeeCo added the bug Something isn't working label Sep 21, 2021
@epi052
Copy link
Owner

epi052 commented Sep 21, 2021

Howdy, and thanks for checking out the project!

If I understand the question correctly, you're saying that the path to your wordlist isn't being read correctly from your config file?

If so, does your entry in the config file look like ~/wordlists/raft-medium-directories.txt? If you used the tilde in your config file, can you please try it with an absolute path, i.e. /Users/chris/...?

@GobiasSomeCoffeeCo
Copy link
Author

Hey!
Sorry, looks like it doesn't like the absolute path either...

Screen Shot 2021-09-20 at 8 43 31 PM

@epi052
Copy link
Owner

epi052 commented Sep 21, 2021

That is very strange. Can you send upload your ferox-config.toml?

Also, could you run ferox with strace? Is that a thing on mac?

If not, can you run it with --debug-log debug.log -vvvv? and send me the log please?

Also, just to make sure, you're NOT running it in a snap?

@GobiasSomeCoffeeCo
Copy link
Author

Here you go, please let me know if you need anything else!

Looks like Mac does not have strace.

Converted .toml to a txt file:
ferox-config.txt

Here is the debug.log:
debug.log

And correct, I am NOT running it in a snap.

@GobiasSomeCoffeeCo
Copy link
Author

Looks like I found the issue. I messed around with the File::open method, and apparently I didn't include a leading / for the file to be read 😬. Sorry about that! Fixed the .toml file to read /Users/chris/.., and it worked like a charm. My bad for the false alarm!!!

@epi052
Copy link
Owner

epi052 commented Sep 21, 2021

No worries, glad it's sorted !

@GobiasSomeCoffeeCo
Copy link
Author

Thanks for being so responsive!

On a side note, and I'm sure I've lost all credibility at this point, but if you need any help going forward I'd love to get involved. I'll keep my eyes open for some "good first issues".

@epi052
Copy link
Owner

epi052 commented Sep 21, 2021

Not at all, typos get everyone now and again.

As far as good issues:

@GobiasSomeCoffeeCo
Copy link
Author

More than happy to see what I can do! Forewarning though, my coding skills are nowhere even close to yours. You could say they're "in development" at the moment, but if you don't mind some dumb questions and sending back code that needs to be refactored, I'd really like to see how I could help.

@epi052
Copy link
Owner

epi052 commented Sep 21, 2021

understood, and that's totally normal and fine. If you see something you want to work on, the first step is to reply to the issue and let me and everyone else know that you're going to tackle it. After that, we can chat about what follows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants