MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _pdf_footer_credentials

Method _pdf_footer_credentials

IntelOSINT.py:19040–19054  ·  view source on GitHub ↗
(self, pdf, creds: dict)

Source from the content-addressed store, hash-verified

19038 pdf.set_xy(x0, y0 + row_h)
19039
19040 def _pdf_footer_credentials(self, pdf, creds: dict):
19041 pdf.ln(5)
19042 pdf.set_font("Helvetica", "B", 10)
19043 pdf.cell(0, 7, self._latin1("Credenziali (sanitized)"), new_x=XPos.LMARGIN, new_y=YPos.NEXT)
19044 pdf.set_font("Helvetica", "", 9)
19045 for k, v in (creds or {}).items():
19046 if "pass" in str(k).lower() or "hash" in str(k).lower() or "session" in str(k).lower():
19047 vv = "***"
19048 else:
19049 vv = v
19050 self._mc(pdf, 6, f"{k}: {vv}")
19051 pdf.ln(2)
19052 pdf.set_font("Helvetica", "", 8)
19053 pdf.set_text_color(130, 130, 130)
19054 pdf.cell(0, 6, self._latin1(f"© CScorza Copyright | v{APP_VERSION}"), align="C", new_x=XPos.LMARGIN, new_y=YPos.NEXT)
19055
19056 def generate(self, data):
19057 pdf = FPDF()

Callers 2

tg_export_reportFunction · 0.95
generateMethod · 0.95

Calls 2

_latin1Method · 0.95
_mcMethod · 0.95

Tested by

no test coverage detected