Skip to content

Commit

Permalink
Merge branch 'main' into gh_workflow_test
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M committed Oct 18, 2023
2 parents 486eeb5 + 40a69a2 commit c0eb3e5
Show file tree
Hide file tree
Showing 7 changed files with 408 additions and 69 deletions.
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,36 @@ Navigate the CVE jungle with ease.
## Usage
```
OPTIONS:
-id, -cve-id string[] cve to list for given id
-id string[] cve to list for given id
-v, -vendor string[] cve to list for given vendor
-p, -product string[] cve to list for given product
-s, -severity string[] cve to list for given severity
-cs, -cvss-score string[] cve to list for given cvss score
-c, -cpe string cve to list for given cpe
-es, -epss-score string[] cve to list for given epss score
-es, -epss-score string cve to list for given epss score
-ep, -epss-percentile string[] cve to list for given epss percentile
-age string cve to list published by given age in days
-a, -assignee string[] cve to list for given publisher assignee
-st, -status string cve to list for given vulnerability status in cli output
-r, -reference string[] cve to list for given reference
-k, -kev display cve for known exploitable vulnerabilities by cisa
-nt, -nuclei-template display cve having nuclei templates
-poc display cve having poc
-f, -field string[] field to display in cli output (supported: assignee, age, kev, template, poc)
-e, -exclude string[] field to exclude from cli output
-l, -limit int limit the number of results to display (default 100)
-j, -json return output in json format
-vs, -vstatus value cve to list for given vulnerability status in cli output. supported: confirmed, unconfirmed, modified, rejected, unknown, new
UPDATE:
-up, -update update cvemap to latest version
-duc, -disable-update-check disable automatic cvemap update check
FILTER:
-k, -kev display cves marked as exploitable vulnerabilities by cisa
-nt, -template display cves that has public nuclei templates
-poc display cves that has public published poc
-h1, -hackerone display cves reported on hackerone
OUTPUT:
-f, -field value fields to display in cli output. supported: kev, template, poc, product, vendor, vstatus, age, cwe, epss, assignee
-fe, -exclude value fields to exclude from cli output. supported: kev, template, poc, product, vendor, vstatus, age, cwe, epss, assignee
-l, -limit int limit the number of results to display (default 50)
-j, -json return output in json format
DEBUG:
-version Version
-silent Silent
-verbose Verbose
```
33 changes: 33 additions & 0 deletions banner.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package main

import (
"github.com/projectdiscovery/gologger"
updateutils "github.com/projectdiscovery/utils/update"
)

const banner = `
______ _____ ____ ___ ____ ____
/ ___/ | / / _ \/ __ \__ \/ __ \/ __ \
/ /__ | |/ / __/ / / / / / /_/ / /_/ /
\___/ |___/\___/_/ /_/ /_/\__,_/ .___/
/_/
`

// Version is the current version
const version = `v0.0.1`

// showBanner is used to show the banner to the user
func showBanner() {
gologger.Print().Msgf("%s\n", banner)
gologger.Print().Msgf("\t\tprojectdiscovery.io\n\n")
}

// GetUpdateCallback returns a callback function that updates proxify
func GetUpdateCallback() func() {
return func() {
showBanner()
updateutils.GetUpdateToolCallback("cvemap", version)()
}
}
40 changes: 40 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,65 @@ go 1.20
require (
github.com/jedib0t/go-pretty/v6 v6.4.7
github.com/projectdiscovery/goflags v0.1.22
github.com/projectdiscovery/gologger v1.1.11
github.com/projectdiscovery/utils v0.0.56
)

require (
aead.dev/minisign v0.2.0 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/VividCortex/ewma v1.2.0 // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/charmbracelet/glamour v0.6.0 // indirect
github.com/cheggaaa/pb/v3 v3.1.4 // indirect
github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 // indirect
github.com/denisbrodbeck/machineid v1.0.1 // indirect
github.com/dlclark/regexp2 v1.8.1 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-github/v30 v30.1.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mholt/archiver v3.1.1+incompatible // indirect
github.com/microcosm-cc/bluemonday v1.0.25 // indirect
github.com/miekg/dns v1.1.55 // indirect
github.com/minio/selfupdate v0.6.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.1 // indirect
github.com/nwaples/rardecode v1.1.3 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/projectdiscovery/blackrock v0.0.1 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
github.com/yuin/goldmark v1.5.4 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20221019170559-20944726eadf // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/tools v0.6.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit c0eb3e5

Please sign in to comment.