You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a PPTX as a report template, which is less supported than DOCX.
Therefore to fix certain stuff we have created a Python script to clean-up/fix our reports. This script is run after generating the report in a seperate environment.
Does someone have an idea how we could run this Python script inside PwnDoc; so that if we generate a report that it runs straight after the generation and the cleaned up/fixed report is downloaded straight away?
Tips on how to do this is welcome.
Thanks a lot in advance!
EDIT:
I have the feeling that I need to do a POST request after line 103 of report-generator.js and add something like this:
$.post("https://<ip>/",buf);
Which will post it to our Python webserver/script. Not sure if it will work this way, don't have a lot of JavaScript experience.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
We have a PPTX as a report template, which is less supported than DOCX.
Therefore to fix certain stuff we have created a Python script to clean-up/fix our reports. This script is run after generating the report in a seperate environment.
Does someone have an idea how we could run this Python script inside PwnDoc; so that if we generate a report that it runs straight after the generation and the cleaned up/fixed report is downloaded straight away?
Tips on how to do this is welcome.
Thanks a lot in advance!
EDIT:
I have the feeling that I need to do a POST request after line 103 of report-generator.js and add something like this:
Which will post it to our Python webserver/script. Not sure if it will work this way, don't have a lot of JavaScript experience.
Beta Was this translation helpful? Give feedback.
All reactions