katana icon indicating copy to clipboard operation
katana copied to clipboard

Extension match / filter doesn't work with urls with query

Open parthmalhotra opened this issue 2 years ago • 0 comments

$ echo https://www.redacted.com | katana -ef js,css

   __        __                
  / /_____ _/ /____ ____  ___ _
 /  '_/ _  / __/ _  / _ \/ _  /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/ v0.0.1							 

		projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions.
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
https://www.redacted.com/assets/css/main.css?1667834479825
https://www.redacted.com/assets/css/home.css?1667834479825
https://www.redacted.com/assets/script/main.js?1667834479854
https://www.redacted.com/assets/script/home.js?1667834479854

When using the -ef flag the above files should have been excluded by default in the output but as they contain timestamp as a parameter for cache bursting, So this should be also excluded, we should remove all the parameters and then exclude the extensions provided by -ef flag

parthmalhotra avatar Nov 07 '22 15:11 parthmalhotra