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

katana loses results from JS files on iteration when maximum depth is reached #600

Open
0x123456789 opened this issue Sep 22, 2023 · 1 comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@0x123456789
Copy link
Contributor

katana version:

1.0.4

Current Behavior:

katana loses results from JS files on iteration when maximum depth is reached.

Expected Behavior:

katana will print results to stdout/etc

Steps To Reproduce:

As example we can use the following file https://goldapple.ru/_assets/66d5209.js . This file has a lot of urls on same domain (so they are in scope)

The easiest way to see issue is to use depth 1. Running katana:

katana -u https://goldapple.ru/_assets/66d5209.js -d 1 -jc

The output prints just one https://goldapple.ru/_assets/66d5209.js url. The problem is that program doesnt output results on last iteration. Image below will show that we just go in continue condition (nr.Depth == s.Options.Options.MaxDepth == 1) and don't print reqUrl to user
image

Anything else:

@0x123456789 0x123456789 added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Sep 22, 2023
@0x123456789
Copy link
Contributor Author

I think this behaviour also related to #471

@ehsandeep ehsandeep linked a pull request Sep 22, 2023 that will close this issue
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 a pull request may close this issue.

1 participant