-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: upload existing scan results #5603
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.
$ go run . -pdu result.jsonl -sname 'pdcp-upload-test'
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.3.2
projectdiscovery.io
[INF] Uploading scan results to cloud dashboard from result.jsonl
[INF] 3 Scan results uploaded to cloud, you can view scan results at https://cloud.projectdiscovery.io/scans/crcmh0todknc73bvbm20?team_id=none
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.
team id env value not used
nuclei/internal/pdcp/writer.go
Lines 38 to 43 in 2b5a8f5
var ( | |
xidRegex = regexp.MustCompile(xidRe) | |
_ output.Writer = &UploadWriter{} | |
// teamID if given | |
TeamIDEnv = env.GetEnvOrDefault("PDCP_TEAM_ID", NoneTeamID) | |
) |
apart from that everything else lgtm !
We are using here! |
Proposed changes
Test:
$ ./nuclei -pdu out.jsonl -sname "<scan-name>"
Checklist