Skip to content

PushProject

Push project data (section and finding data) to your pentest report by JSON or TOML.

Example

1
2
cat project.json | reptor pushproject
cat project.toml | reptor pushproject

If to push your data to a new report, create a project beforehand.

1
2
reptor createproject --name "New project" --design "8a6ebd7b-637f-4f38-bfdd-3e8e9a24f64e"
cat project.json | reptor pushproject

Sample project

Upload project data by using the following structures.
You can add data to your report sections and create findings.

Project structure in JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "report_data": {
    "title": "Report title",
    "customer_name": "GotBreached Ltd.",
    "receiver_name": "Maxima Doe",
    "executive_summary": "This is the Executive Summary\n",
    "report_date": "2022-04-25",
    "list_of_changes": [
      {
        "description": "Draft",
        "date": "2022-04-22",
        "version": "0.1"
      },
      {
        "description": "Final Report",
        "date": "2022-04-25",
        "version": "1.0"
      }
    ]
  },
  "findings": [
    {
      "status": "in-progress",
      "data": {
        "title": "Session management weaknesses",
        "cvss": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
        "summary": "My Summary",
        "affected_components": [
          "example.com"
        ]
      }
    },
    {
      "status": "finished",
      "data": {
        "title": "Untrusted TLS certificates",
        "cvss": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
        "summary": "Summary",
        "recommendation": "",
        "affected_components": [
          "example.com"
        ]
      }
    }
  ]
}
Project structure in TOML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[report_data]
title = "Report title"
customer_name = "GotBreached Ltd."
receiver_name = "Maxima Doe"
executive_summary = """
This is the Executive Summary
"""
report_date = "2024-04-25"

[[report_data.list_of_changes]]
description = "Draft"
date = "2024-04-22"
version = "0.1"

[[report_data.list_of_changes]]
description = "Final Report"
date = "2024-04-25"
version = "1.0"

[[findings]]
status = "in-progress"

[findings.data]
title = "Session management weaknesses"
cvss = "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
summary = "My Summary"
affected_components = [
    "example.com",
]

[[findings]]
status = "finished"
[findings.data]
title = "Untrusted TLS certificates"
cvss = "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
summary = "Summary"
recommendation = ""
affected_components = [
    "example.com",
]

Usage

1
2
3
4
5
6
7
8
9
usage: reptor pushproject [-h] [projectdata]

Push data to project from JSON or TOML

positional arguments:
  projectdata

optional arguments:
  -h, --help   show this help message and exit