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

pdcp result upload: bug fix + (optional) scan name support using -sname flag #5155

Merged
merged 7 commits into from
May 10, 2024

Conversation

tarunKoyalwar
Copy link
Member

@tarunKoyalwar tarunKoyalwar commented May 6, 2024

Proposed Changes

$ ./nuclei -t a.yaml -u https://scanme.sh  -validate

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.2.6

		projectdiscovery.io

[VER] Started metrics server at localhost:9092
[ERR] Error occurred parsing template /Users/tarun/Codebase2/nuclei/a.yaml: no template severity field provided
[FTL] Could not validate templates: errors occurred during template validation

result upload

$ ./nuclei -t a.yaml -u https://scanme.sh  -cup -v                                                                             

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.2.6

		projectdiscovery.io

[VER] Started metrics server at localhost:9092
[WRN] Could not load template /Users/tarun/Codebase2/nuclei/a.yaml: field 'severity' is missing
[WRN] Found 1 templates with syntax warning (use -validate flag for further examination)
[INF] Current nuclei version: v3.2.6 (latest)
[INF] Current nuclei-templates version: v9.8.5 (latest)
[INF] To view results on cloud dashboard, visit https://cloud.projectdiscovery.io/scans upon scan completion.
[INF] New templates added in latest release: 142
[INF] Templates loaded for current scan: 1
[WRN] Loading 1 unsigned templates for scan. Use with caution.
[INF] Targets loaded for current scan: 1
[VER] [fuzz-dirs] Sent HTTP request to https://scanme.sh
[fuzz-dirs] [http] [unknown] https://scanme.sh
[WRN] Uploaded results chunk, you can view scan results at https://cloud.projectdiscovery.io/scans/cosfv51a78lc739rs7t0
[INF] 1 Scan results uploaded to cloud, you can view scan results at https://cloud.projectdiscovery.io/scans/cosfv51a78lc739rs7t0

example template

id: fuzz-dirs

info:
  name: fuzz-dirs
  author: savik

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    max-size: 100
    matchers:
      - type: status
        status:
          - 200

@tarunKoyalwar tarunKoyalwar self-assigned this May 6, 2024
@tarunKoyalwar tarunKoyalwar marked this pull request as ready for review May 6, 2024 16:02
@tarunKoyalwar tarunKoyalwar changed the title add default template severity and error when validating pdcp result upload: bug fix + (optional) scan name support using -sname flag May 6, 2024
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

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

  • xid length check for -sid option, ignore input upon mismatched length.

@ehsandeep ehsandeep merged commit d6424ea into dev May 10, 2024
12 checks passed
@ehsandeep ehsandeep deleted the issue-5149-result-upload-updates branch May 10, 2024 19:14
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.

return result counter failed to upload due to missing severity
2 participants