thewhiteh4t / FinalRecon

All In One Web Recon
https://www.kali.org/tools/finalrecon/
MIT License
2.19k stars 416 forks source link

problem in --dir -w #68

Open SanskarKashyap opened 1 month ago

SanskarKashyap commented 1 month ago

it thrown exception in

finalrecon --dir --url http://saturn.picoctf.net:65203/ -w /usr/share/finalrecon/wordlists/dirb_small.txt

finalrecon --dir --url http://saturn.picoctf.net:65203/ -w /usr/share/finalrecon/wordlists/dirb_big.txt

 ______  __   __   __   ______   __                                                                                                                                                          
/\  ___\/\ \ /\ "-.\ \ /\  __ \ /\ \                                                                                                                                                         
\ \  __\\ \ \\ \ \-.  \\ \  __ \\ \ \____                                                                                                                                                    
 \ \_\   \ \_\\ \_\\"\_\\ \_\ \_\\ \_____\                                                                                                                                                   
  \/_/    \/_/ \/_/ \/_/ \/_/\/_/ \/_____/                                                                                                                                                   
 ______   ______   ______   ______   __   __                                                                                                                                                 
/\  == \ /\  ___\ /\  ___\ /\  __ \ /\ "-.\ \                                                                                                                                                
\ \  __< \ \  __\ \ \ \____\ \ \/\ \\ \ \-.  \                                                                                                                                               
 \ \_\ \_\\ \_____\\ \_____\\ \_____\\ \_\\"\_\                                                                                                                                              
  \/_/ /_/ \/_____/ \/_____/ \/_____/ \/_/ \/_/                                                                                                                                              

[>] Created By   : thewhiteh4t
 |---> Twitter   : https://twitter.com/thewhiteh4t
 |---> Community : https://twc1rcle.com/
[>] Version      : 1.1.7

[+] Target : http://saturn.picoctf.net:65203

[+] IP Address : 13.59.203.175

[!] Starting Directory Enum...

[+] Threads          : 50
[+] Timeout          : 30
[+] Wordlist         : /usr/share/finalrecon/wordlists/dirb_big.txt
[+] Allow Redirects  : False
[+] SSL Verification : False
Traceback (most recent call last):
  File "/usr/bin/finalrecon", line 310, in <module>
    hammer(target, threads, tout, wdlist, redir, sslv, out_settings, data, filext)
  File "/usr/share/finalrecon/modules/dirrec.py", line 141, in hammer
    num_words = sum(1 for i in wordlist)
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/finalrecon/modules/dirrec.py", line 141, in <genexpr>
    num_words = sum(1 for i in wordlist)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 4382: invalid continuation byte
SanskarKashyap commented 1 month ago

exception is thrown in this wordlist only dirb_big.txt

thewhiteh4t commented 2 weeks ago

@SanskarKashyap thanks, it looks like the wordlists are not clean, I will add exception handling for this issue, in the meantime you can use big.txt from seclists