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

Updated to work with NIST API 2.0 #48

Merged
merged 3 commits into from
Feb 27, 2024
Merged

Updated to work with NIST API 2.0 #48

merged 3 commits into from
Feb 27, 2024

Conversation

evillogic
Copy link
Contributor

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.

@evillogic
Copy link
Contributor Author

@GamehunterKaan @eric-glb @iaacornus

Is this project still active?

@eric-glb
Copy link
Contributor

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()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There still seems to be an issue with this variable.
image

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please re-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants