ffuf / ffuf

Fast web fuzzer written in Go
MIT License
12.23k stars 1.26k forks source link

Ignore lines starting with "#" in wordlist #245

Closed Daviey closed 4 years ago

Daviey commented 4 years ago

Some wordlists, such as directory-list-2.3-medium.txt have annoying comments (license preamble) which ffuf tries to use as legitimate words.

This creates: ...

 :: Threads          : 40                                                                              
 :: Matcher          : Response status: 200,204,301,302,307,401,403              
________________________________________________                                                       

# This work is licensed under the Creative Commons .html [Status: 200, Size: 345, Words: 41, Lines: 25] 
# directory-list-2.3-medium.txt [Status: 200, Size: 345, Words: 41, Lines: 25]
#.php                   [Status: 200, Size: 345, Words: 41, Lines: 25]
# directory-list-2.3-medium.txt.php [Status: 200, Size: 345, Words: 41, Lines: 25]
# directory-list-2.3-medium.txt.html [Status: 200, Size: 345, Words: 41, Lines: 25]
# This work is licensed under the Creative Commons .php [Status: 200, Size: 345, Words: 41, Lines: 25]

I think it would make sense to ignore lines starting with "#" by default.

bsysop commented 4 years ago

-ic argument does that.

Captura de Tela 2020-05-25 às 13 01 44
Daviey commented 4 years ago

Ooo, TIL.. I should have RTFM better :dagger:

Thanks