-
Notifications
You must be signed in to change notification settings - Fork 635
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
Added option to log XHR requests. #481
Added option to log XHR requests. #481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
go run main.go -j -or -ob -hl -xhr -u http://localhost:8000/test.html | jq
__ __
/ /_____ _/ /____ ____ ___ _
/ '_/ _ / __/ _ / _ \/ _ /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/
projectdiscovery.io
[INF] Current katana version v1.0.3-dev (development)
[INF] Started headless crawling for => http://localhost:8000test.html
{
"timestamp": "2023-06-19T08:06:05.87752038Z",
"request": {
"method": "GET",
"endpoint": "http://localhost:8000/test.html"
},
"response": {
"status_code": 200,
"headers": {
"last_modified": "Mon, 19 Jun 2023 08:05:28 GMT",
"server": "SimpleHTTP/0.6 Python/2.7.18",
"date": "Mon, 19 Jun 2023 08:06:05 GMT",
"content_type": "text/html",
"content_length": "267"
},
"technologies": [
"Python:2.7.18",
"SimpleHTTP:0.6"
],
"xhr_requests": [
{
"url": "http://scanme.sh/",
"method": "GET"
}
]
}
}
test.html:
<!DOCTYPE html>
<html>
<head>
<title>Scanme.sh XHR Request</title>
<script>
const req = new XMLHttpRequest();
req.open("GET", "http://scanme.sh");
req.send();
</script>
</head>
<body>
<h1>Scanme.sh XHR Request</h1>
</body>
</html>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - Note: the current implementation is redundant with the headless crawling logic but temporarily necessary until graph navigation is implemented.
Added the following option to log xhr requests