Skip to content

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

@0x123456789

Description

@0x123456789

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions