37 lines
1 KiB
Markdown
37 lines
1 KiB
Markdown
# getvulns 🚨
|
|
Utility to fetch and list current security advisories of network vendor products and os versions.
|
|
|
|
To be able to use this utility you need to go to
|
|
1. Access the Cisco API console at: [https://apiconsole.cisco.com](https://apiconsole.cisco.com)
|
|
2. Login with your CCO credentials
|
|
3. Register your application and obtain your client credentials.
|
|
4. Once you register your application and obtain your client ID and client secret you need to add these to your environment variables like so:
|
|
|
|
```bash
|
|
$ export CLIENT_ID="0lkajsdklsajdlkj"
|
|
$ export CLIENT_SECRET="02lk3rlncxk5l6l"
|
|
```
|
|
|
|
# Usage
|
|
|
|
```bash
|
|
$ ./getvulns -h
|
|
Usage of ./getvulns:
|
|
-ios string
|
|
fetch Security Advisories for IOS version
|
|
-iosxe string
|
|
fetch Security Advisories for IOS-XE version
|
|
-product string
|
|
fetch Security Advisories Cisco Products, ex Cisco Adaptive Security Appliance
|
|
-v be verbose
|
|
$
|
|
```
|
|
|
|
# Building
|
|
```bash
|
|
$ go get -u -v
|
|
$ go build || go run main.go
|
|
```
|
|
|
|
# Screenshot
|
|
![1](assets/img/screenshot.png)
|