silentsignal / DirBustErl

DirBuster successor in Erlang
MIT License
37 stars 13 forks source link

nxdomain error on any domain #2

Closed szeghybarna closed 10 years ago

szeghybarna commented 10 years ago

At first, I am THAT type of soul, so...

I got an error, as described below. I tried it on kali linux as root.

erl -pa ebin -pa deps/ibrowse/ebin/ -s ibrowse
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
1> mnesia:create_schema([node()]).
ok
2> mnesia:start().
ok
3> dirbusterl_storage:init_schema().
ok
4> dirbusterl_requests:start_link().
{ok,<0.91.0>}
5> dirbusterl:bust("http://www.somedomain.com", [{wordlist,"wordlist.txt"},{postfix,[".html"]},parse_body]).
[]

=ERROR REPORT==== 23-May-2014::14:04:23 ===
Error in process <0.101.0> with exit value: {{badmatch,{error,enoent}},[{dirbusterl_config,process_user_config,3,[{file,"src/dirbusterl_config.erl"},{line,19}]},{dirbusterl,bust_core,3,[{file,"src/dirbusterl.erl"},{line,32}]}]}
dnet commented 10 years ago

It seems that it cannot open the wordlist because there's no such file (enoent). Ensure that the path is correct or use absolute paths.

szeghybarna commented 10 years ago

That was the point.

Next error. Seems to connection fail.

6> dirbusterl:bust("http://www.somedomain.com", [{wordlist,"wordlist.txt"},{postfix,[".html"]},parse_body]).

=ERROR REPORT==== 23-May-2014::15:22:15 ===
Error in process <0.121.0> with exit value: {{case_clause,{error,{conn_failed,{error,nxdomain}}}},[{dirbusterl_server,bust,3,[{file,"src/dirbusterl_server.erl"},{line,17}]},{dirbusterl,bust_core,3,[{file,"src/dirbusterl.erl"},{line,37}]}]}

[]
dnet commented 10 years ago

nxdomain refers to failure during host name resolution. Can you resolve the hostname by hand (e.g. using host or nslookup)?

v-p-b commented 10 years ago

Please report separate problems as separate issues. Thx

szeghybarna commented 10 years ago

@dnet yes, I can connect, resolve, browse that domain @v-p-b from my viewpoint, it's not a seperate problem, seems to first time user problem

dnet commented 10 years ago

Could you sniff the network traffic when browsing the domain and then trying use DirBustErl, and send them in PCAP or PCAP-NG formats to vsza at silentsignal dot hu? If you care about privacy, my PGP key is at http://vsza.hu/pgp

v-p-b commented 10 years ago

Problem is that the program tries to resolve the path instead of the domain.

Workaround is to put '/' at the end of the base URL:

dirbusterl:bust("http://www.silentsignal.eu/", [{wordlist,"/tmp/wordlist.txt"},{postfix,[".html"]},parse_body]).

Also this is clearly a separate bug from the initial user error that this issue was opened for...

szeghybarna commented 10 years ago

@v-p-b Ok, the workaround solved this error. Thanks! I close this, and open a new one for the next error.

v-p-b commented 10 years ago

I reopen this since the issue needs to be fixed.