As a user, I want to see when my custom job prints to stdout, even if not in the expected findings format
lm-sec opened this issue · 1 comments
lm-sec commented
This would allow a finding developper to simply print to stdout to see output in the front-end. It would greatly help with debugging and overall confidence of execution
lm-sec commented
Not easily possible anymore with the new way of reporting issues through HTTP requests. However, we could potentially replace the print
built-in function with our own that calls log_debug
.
https://sethdandridge.com/blog/redefining-pythons-print-function
PoC:
import builtins
def newprint(*args):
builtins.oldprint('print is newprint')
builtins.oldprint = builtins.print
builtins.print = newprint
print('print is the standard print')