-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Comments
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. |
unstale |
Hi @noraj ; I have implemented a basic report generation system based on Docx templates. You can see it live on the demo instance. Hope you find it useful. Feedback as always is very welcome |
@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. |
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. |
I checked the doc and the template, so there are no loops but cloneblocks to iterate over all vulnerabilities of a project? |
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. Hope it can give you some ideas / examples. |
Example for AttackForge: https://youtu.be/xJUEAljK0Zc |
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. |
unstale |
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. |
cbk914 (#38 (comment))
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
It's true that the Configuration tab on Report generation let you choose some options and custom headers for example.
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 text was updated successfully, but these errors were encountered: