-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Updated to work with NIST API 2.0 #48
Conversation
@GamehunterKaan @eric-glb @iaacornus Is this project still active? |
I can't tell. My contribution was really simple, and it seems it was the last one (with the README update, that may tell us he considers this project achieved?). |
request = get(url, params=paramaters) | ||
data = request.json() | ||
response = get(url, params=parameters, headers=headers) | ||
data = response.json() |
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.
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.
I added some checks for that variable not existing, tested with sudo python3 autopwn.py -t 158.174.109.227
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.
please re-review
NIST retired the 1.0 APIs that this project relied upon on Dec 18, 2023. This is causing the nist_search module to receive a 404 error for every keyword search and return no data. There are currently 2 issues #46 and #47 that this PR would fix, both the same root cause.
See the timeline of the API retirement here
The endpoint was changed from 1.0 to 2.0, the keyword parameter is now "keywordSearch" instead of "keyword", and the 2.0 API requires the API key in a header instead of a get parameter.
The response schema has also changed, so I had to update FindVulns to account for that as well.