nuclei icon indicating copy to clipboard operation
nuclei copied to clipboard

Handling RAW less JSON Lines in file

Open exploit-io opened this issue 1 year ago • 2 comments
trafficstars

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 avatar May 03 '24 19:05 exploit-io

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

dogancanbakir avatar May 06 '24 05:05 dogancanbakir

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

exploit-io avatar May 06 '24 07:05 exploit-io

reason: https://github.com/projectdiscovery/katana/pull/899

dogancanbakir avatar Jun 27 '24 10:06 dogancanbakir