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

Report template #45

Open
2 of 3 tasks
noraj opened this issue Aug 4, 2021 · 12 comments
Open
2 of 3 tasks

Report template #45

noraj opened this issue Aug 4, 2021 · 12 comments
Assignees
Labels
pinned Pinned issues are not automatically closed by the evil stale bot.

Comments

@noraj
Copy link

noraj commented Aug 4, 2021

cbk914 (#38 (comment))

The demo site is not working, there's some way to import the report templates and the vulnerabilities from Github into the Reconmap WUI?

Vulnerability templates should be importable from https://demo.reconmap.org/system/import-data but you need to be connected as admin.

But it's true that report templates are not very configurable.

The documentation https://reconmap.org/user-manual/pentest-report-configuration.html says

Reconmap simplifies by creation of pentest reports with the use of customisable templates. It comes with a pre-defined pentest report template but you can change styles, cover, header and footer, as well as deciding which options to include or exclude from the report.

It's true that the Configuration tab on Report generation let you choose some options and custom headers for example.

image

But the documentation don't say what is the expected format? HTML? a templating language? LaTeX? only text or markdown is supported?

I was expecting something similar to Pwndoc https://pwndoc.github.io/pwndoc/#/docxtemplate or PCF https://gitlab.com/invuls/pentest-projects/pcf/-/wikis/Reports%20moderation

  • The ability to import custom report templates
  • Template using fiels so the report is 100% customizable
  • The ability to create custom fields in vulnerabilities that can be added in the report
@santiagolizardo santiagolizardo self-assigned this Aug 4, 2021
@stale
Copy link

stale bot commented Sep 3, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 3, 2021
@noraj
Copy link
Author

noraj commented Sep 5, 2021

unstale

@stale stale bot removed the wontfix This will not be worked on label Sep 5, 2021
@santiagolizardo
Copy link
Member

Hi @noraj ; I have implemented a basic report generation system based on Docx templates. You can see it live on the demo instance.
Basically, Reconmap comes with a very basic Docx template, but you can modify it and upload a new one to use in your reports.
image

image

Hope you find it useful. Feedback as always is very welcome

@noraj
Copy link
Author

noraj commented Sep 27, 2021

@santiagolizardo Amazing I need to test that soon, but I didn't find the documentation about it? I suppose a pointer to the library used would be enough if the library used already has a documentation explaining how to craft templates.

@santiagolizardo
Copy link
Member

Good point @noraj . I am using https://phpword.readthedocs.io/en/latest/templates-processing.html to generate the word documents using templates. The syntax is somehow limited (eg no conditionals), but does the trick for now.
Thanks

@noraj
Copy link
Author

noraj commented Sep 29, 2021

reconmap/documentation#7

@noraj
Copy link
Author

noraj commented Sep 29, 2021

I checked the doc and the template, so there are no loops but cloneblocks to iterate over all vulnerabilities of a project?

@noraj
Copy link
Author

noraj commented Sep 29, 2021

Seems that vuldash (php) was using PhpWord (php) too https://github.com/talsoft/vuldash/blob/408e44ecfccb96fc6a659f01e4c9e5a05c247d11/application/controllers/Reports.php while Smersh (php) is using Docxtemplater (JS) https://github.com/CMEPW/Smersh/blob/16fe8be4c3f840db41e8650162cfb1e0afd60acf/client/src/app/components/mission-single/mission-single.component.ts and pwndoc (JS) is using Docxtemplater (JS) too https://github.com/pwndoc/pwndoc/blob/6c3ac8d9cd57dbbc17ae2311be955ad925223310/backend/src/routes/template.js and https://github.com/pwndoc/pwndoc/blob/6c3ac8d9cd57dbbc17ae2311be955ad925223310/docs/docxtemplate.md.
While Docxtemplater seems more powerful, it has ended in a freemium open-source model that brings trouble like inserting image tag is only in teh paid version but that is possible to work around it with docxtemplater-image-module (see this discussion pwndoc/pwndoc#13).

Hope it can give you some ideas / examples.

@noraj
Copy link
Author

noraj commented Oct 18, 2021

Example for AttackForge: https://youtu.be/xJUEAljK0Zc

@stale
Copy link

stale bot commented Nov 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 17, 2021
@noraj
Copy link
Author

noraj commented Nov 18, 2021

unstale

@stale stale bot removed the wontfix This will not be worked on label Nov 18, 2021
@stale
Copy link

stale bot commented Dec 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 18, 2021
@santiagolizardo santiagolizardo added pinned Pinned issues are not automatically closed by the evil stale bot. and removed wontfix This will not be worked on labels Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned Pinned issues are not automatically closed by the evil stale bot.
Projects
None yet
Development

No branches or pull requests

2 participants