ExportFindings

說明

以 CSV 或 SARIF 格式匯出掃描發現項目。

語法

ounceauto ExportFindings
-assessment <assessment path>
-type <export type>
-file <output location>
[-caller <caller>]
  • -assessment <assessment path>:用來產生報告的評量檔路徑。
  • -type <export type>:匯出報告的格式,可以是 CSV 或 SARIF。
  • -file <output location>:用來儲存報告的路徑和檔名。
  • -caller <caller>:選用。將呼叫者指派至匯出發現項目作業。呼叫者可以是實際使用者的名稱。呼叫者名稱會寫入 ounceauto 日誌檔。

回覆值

要求 ID(如果成功)或 -1(如果要求提交不成功)。

範例

  • 將發現項目匯出至 sarif 檔:
    ounceauto exportfindings -assessment C:\Ounce\Data\Webgoat.ozasmt 
    -type SARIF 
    -file C:\reports\Webgoat.sarif
  • 將發現項目匯出至 csv 檔:
    ounceauto exportfindings -assessment C:\Ounce\Data\Webgoat.ozasmt
    -type CSV 
    -file C:\Reports\Webgoat.csv