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

Handling RAW less JSON Lines in file #5140

Open
exploit-io opened this issue May 3, 2024 · 2 comments
Open

Handling RAW less JSON Lines in file #5140

exploit-io opened this issue May 3, 2024 · 2 comments
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@exploit-io
Copy link

I use katana for gathering passive and active crawling.

There is no raw field in passive data:

{"timestamp":"2024-05-02T16:28:34.259259353Z","request":{"method":"GET","endpoint":"http://testphp.vulnweb.com:80/artists.php?artist=2"},"response":{"status_code":200,"headers":{}},"passive":{"source":"waybackarchive","reference":"http://web.archive.org/cdx/search/cdx?url=*.http://testphp.vulnweb.com/*\u0026output=txt\u0026fl=original\u0026collapse=urlkey"}}

and when we run nuclei on these requests, it can't find the raw and does not crawl the endpoint which is a simple GET request that nuclei should be able to reconstrcut it.

nuclei Comand:

nuclei -l tests.jsonl -input-mode jsonl -t template.yaml -v

Warning:

[WRN] jsonl: Could not parse raw request http://testphp.vulnweb.com:80/artists.php?artist=2: failed to read method line: EOF
@exploit-io exploit-io added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label May 3, 2024
@dogancanbakir dogancanbakir self-assigned this May 6, 2024
@dogancanbakir
Copy link
Member

You are currently using passive crawl mode, which does not provide an actual request/response. See the details at projectdiscovery/katana#781.

@exploit-io
Copy link
Author

I think, It'd be good if nuclei, katana could reconstrcut the raw request using the data in json!
because everything is almost ready

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

No branches or pull requests

2 participants