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

fix extension filter #491

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

dogancanbakir
Copy link
Member

This PR fixes a bug in the output filter with extensions. Closes #480.

$ go run . -u https://blog.it-securityguard.com -jc -f ufile -em js

   __        __                
  / /_____ _/ /____ ____  ___ _
 /  '_/ _  / __/ _  / _ \/ _  /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/                                                   

                projectdiscovery.io

[INF] Current katana version v1.0.3-dev (development)
[INF] Started standard crawling for => https://blog.it-securityguard.com
https://blog.it-securityguard.com/wp-content/plugins/pdf-embedder/assets/js/min/all-pdfemb-min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/\/blog.it-securityguard.com\/wp-content\/plugins\/pdf-embedder\/js\/pdfjs\/pdf.worker.min.js
https://blog.it-securityguard.com/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js?ver=4.6.4
https://blog.it-securityguard.com/wp-includes/js/wp-embed.min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/mediaelement/wp-mediaelement.min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/mediaelement/renderers/vimeo.min.js?ver=4.2.17
https://blog.it-securityguard.com/\/blog.it-securityguard.com\/wp-includes\/js\/wp-emoji-release.min.js
https://blog.it-securityguard.com/wp-includes/js/mediaelement/mediaelement-migrate.min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-content/themes/casper/js/main.js?ver=1.0.0
https://blog.it-securityguard.com/wp-content/plugins/wp-statistics/assets/js/tracker.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.0
https://blog.it-securityguard.com/wp-includes/js/mediaelement/renderers/MediaElement.js
https://blog.it-securityguard.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.4
https://blog.it-securityguard.com/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.17
https://blog.it-securityguard.com/wp-includes/js/mediaelement/MediaElement.js
$ go run . -u https://blog.it-securityguard.com -jc -f ufile -ef js

   __        __                
  / /_____ _/ /____ ____  ___ _
 /  '_/ _  / __/ _  / _ \/ _  /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/                                                   

                projectdiscovery.io

[INF] Current katana version v1.0.3-dev (development)
[INF] Started standard crawling for => https://blog.it-securityguard.com
https://blog.it-securityguard.com/phpinfo.php
https://blog.it-securityguard.com/wp-login.php?action=postpass
https://blog.it-securityguard.com/2014/06/monitor.it-securityguard.com/test2.html
https://blog.it-securityguard.com/wp-content/plugins/pdf-embedder/assets/css/pdfemb-embed-pdf.css?ver=4.6.4
https://blog.it-securityguard.com/pbbt.xmind
https://blog.it-securityguard.com/wp-content/themes/casper/js/video.html
https://blog.it-securityguard.com/wp-includes/js/mediaelement/'+t.src+'
https://blog.it-securityguard.com/wp-includes/js/mediaelement/wp-mediaelement.min.css?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=4.2.17
https://blog.it-securityguard.com/wp-includes/wlwmanifest.xml
https://blog.it-securityguard.com/wp-content/plugins/recent-posts-widget-with-thumbnails/public.css?ver=7.1.1
https://blog.it-securityguard.com/wp-content/themes/casper/style.css?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/css/classic-themes.min.css?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/xmlrpc.php?rsd
https://blog.it-securityguard.com/wp-includes/css/dist/block-library/style.min.css?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/xmlrpc.php
https://blog.it-securityguard.com/wp-admin/edit-comments.php
https://blog.it-securityguard.com/wp-admin/post.php

@dogancanbakir dogancanbakir self-assigned this Jun 23, 2023
@dogancanbakir dogancanbakir linked an issue Jun 23, 2023 that may be closed by this pull request
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo www.hackerone.com | ./katana -em js,json

   __        __                
  / /_____ _/ /____ ____  ___ _
 /  '_/ _  / __/ _  / _ \/ _  /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/							 

		projectdiscovery.io

[INF] Current katana version v1.0.3-dev (development)
[INF] Started standard crawling for => https://www.hackerone.com
https://www.hackerone.com////app-sj17.marketo.com/js/forms2/js/forms2.min.js
https://www.hackerone.com/sites/default/files/google_tag/google_tag/google_tag.script.js?rwpwrk
https://www.hackerone.com/app-sj17.marketo.com/js/forms2/js/forms2.min.js
https://docs.hackerone.com/polyfill-9d0d9b684773bde2cb61.js
https://www.hackerone.com/sites/default/files/js/js_Tve8g0mGLOA7TpicwzFO3ZvpyeNbTaUeecCV940Zr8U.js
https://www.hackerone.com/sites/default/files/js/js_GfZIHkR3KOD6IvFnbcz1mo7d73XyB1DmmoCLuB6ldMA.js
https://hackerone.com/assets/constants-baa921fcfb310cfd9b26f2b779ce8e4ad185abaccd8080f0b7cd3b7b03e4d47b.js
https://www.hackerone.com/sites/default/files/js/js_hDtCwUtA4_lqD6zZfJ2g8wiNH0N3oLKxfCt3QQu_bro.js
https://www.hackerone.com/sites/default/files/js/js_eojbd7o4HxO-ixxNp8Zjv2E-KqDWbBqutKuPi0LrC14.js
https://www.hackerone.com/sites/default/files/js/js_Jh9DpyWi6sQV9-rchN4H-a2oDsBBKFp1cdfFasvTagc.js
https://www.hackerone.com/sites/default/files/js/js_wcOS2x9xdWy4nuzkpi3yFsAJy_VFOsjL2CD9CBQk3Kk.js
https://hackerone.com/assets/static/js/main.71480976.js
https://docs.hackerone.com/page-data/app-data.json
https://docs.hackerone.com/page-data/index/page-data.json
https://docs.hackerone.com/component---src-pages-index-js-9df7d6547a5fdcc5f3e1.js
https://docs.hackerone.com/webpack-runtime-0a6d2d05c913ddfaf0ae.js
https://docs.hackerone.com/app-aa20a9bbb8f1a5eba868.js
https://docs.hackerone.com/framework-a28e0ddf49ff74eb0247.js
https://hackerone.com/assets/static/js/vendor.5ad2e261.js

@ehsandeep ehsandeep modified the milestone: katana v1.0.3 Jun 23, 2023
@ehsandeep ehsandeep added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jun 23, 2023
@ehsandeep ehsandeep requested review from tarunKoyalwar and removed request for Mzack9999 June 27, 2023 14:11
Copy link
Member

@tarunKoyalwar tarunKoyalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm !

$ ./katana -u https://blog.it-securityguard.com -jc -f ufile -em js

   __        __                
  / /_____ _/ /____ ____  ___ _
 /  '_/ _  / __/ _  / _ \/ _  /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/							 

		projectdiscovery.io

[INF] Current katana version v1.0.3-dev (development)
[INF] Started standard crawling for => https://blog.it-securityguard.com
https://blog.it-securityguard.com/wp-content/plugins/pdf-embedder/assets/js/min/all-pdfemb-min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/\/blog.it-securityguard.com\/wp-content\/plugins\/pdf-embedder\/js\/pdfjs\/pdf.worker.min.js
https://blog.it-securityguard.com/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js?ver=4.6.4
https://blog.it-securityguard.com/wp-includes/js/wp-embed.min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/mediaelement/wp-mediaelement.min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/mediaelement/renderers/vimeo.min.js?ver=4.2.17
https://blog.it-securityguard.com/\/blog.it-securityguard.com\/wp-includes\/js\/wp-emoji-release.min.js
https://blog.it-securityguard.com/wp-includes/js/mediaelement/mediaelement-migrate.min.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-content/themes/casper/js/main.js?ver=1.0.0
https://blog.it-securityguard.com/wp-content/plugins/wp-statistics/assets/js/tracker.js?ver=b82890d99bf14594a05514ba8096cd4d
https://blog.it-securityguard.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.0
https://blog.it-securityguard.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.4
https://blog.it-securityguard.com/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.17
https://blog.it-securityguard.com/wp-includes/js/mediaelement/renderers/MediaElement.js
https://blog.it-securityguard.com/wp-includes/js/mediaelement/MediaElement.js

@ehsandeep ehsandeep merged commit 2a6c3d9 into projectdiscovery:dev Jun 27, 2023
@dogancanbakir dogancanbakir deleted the fix_extension_filter branch August 2, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extension Match (-em) has no effect
3 participants