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

builder error: relative URL without a base #977

Closed
sawmj opened this issue Sep 10, 2023 · 6 comments
Closed

builder error: relative URL without a base #977

sawmj opened this issue Sep 10, 2023 · 6 comments
Labels
bug Something isn't working its-a-feature

Comments

@sawmj
Copy link

sawmj commented Sep 10, 2023

Describe the bug
I get this error when trying to use some wordlists

builder error: relative URL without a base

To Reproduce
Steps to reproduce the behavior:

Simply try using the wordlist of Assetnotes ="httparchive_xml_2023_08_28.txt" OR "httparchive_directories_1m_2023_08_28.txt"

@sawmj sawmj added the bug Something isn't working label Sep 10, 2023
@epi052
Copy link
Owner

epi052 commented Sep 11, 2023

poked at this a little bit just now, defo something odd going on, but i think it's with the wordlist (some character/encoding etc)

i'll look at it more a bit later, thanks for reporting!

@epi052
Copy link
Owner

epi052 commented Sep 12, 2023

haha, this is a funny one.

ferox allows you to specify a URL to --wordlist in order to download a wordlist over the network, i.e.

feroxbuster -u http://localhost -w https://wordlists-cdn.assetnote.io/data/automated/httparchive_xml_2023_08_28.txt

since that behavior overloads --wordlist we detect if it's a url with a pretty basic check:

if wordlist.startswith("http") {
  // download wordlist
}

so the wordlists from from assetnote that begin with http make ferox think it's supposed to be downloading from the url httparchive_xml_2023_08_28.txt, which is what throws the error.

to resolve the issue, simply rename the wordlist to something that doesn't begin with http

@epi052
Copy link
Owner

epi052 commented Sep 12, 2023

i added an error message to make what's happening more clear for future users, which will be included in the next release. Thanks again for taking the time to report this!

❯ cargo run -- -u http://127.0.0.1:8000 -w httparchive_xml_2023_08_28.txt                                                                                                              
Unable to download wordlist from remote url: httparchive_xml_2023_08_28.txt                                                                                                            

@epi052
Copy link
Owner

epi052 commented Sep 12, 2023

@all-contributors add @sawmj for bug

@allcontributors
Copy link
Contributor

@epi052

I've put up a pull request to add @sawmj! 🎉

@epi052
Copy link
Owner

epi052 commented Sep 12, 2023

closing, feel free to reopen if this didn't resolve your issue.

@epi052 epi052 closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working its-a-feature
Projects
None yet
Development

No branches or pull requests

2 participants