Skip to content

Commit

Permalink
Merge pull request pwndoc-ng#320 from YuToutCourt/Auto-Incremental-VU…
Browse files Browse the repository at this point in the history
…LN-ID-custom-order

Auto-Increamental VULN-ID based on order of Findings
  • Loading branch information
Serizao authored Jun 6, 2024
2 parents adaab59 + 47597cb commit 01251c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/lib/report-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ async function generateDoc(audit) {
translate.setLocale(audit.language)
$t = translate.translate

// set the identifier of each vulnerability to the index of the array
audit.findings.forEach((finding, index) => {
finding.identifier = index + 1
})

var settings = await Settings.getAll();
var preppedAudit = await prepAuditData(audit, settings)

Expand Down

0 comments on commit 01251c7

Please sign in to comment.