diff --git a/src/panhunt.py b/src/panhunt.py index df5b32c..afe8625 100644 --- a/src/panhunt.py +++ b/src/panhunt.py @@ -12,7 +12,9 @@ import argparse import logging import os +import platform import sys +import time from datetime import datetime from typing import Final, Optional @@ -49,6 +51,15 @@ def hunt_pans() -> Report: def display_report(report: Report) -> None: + newline = '\n' + header: str = f'PAN Hunt Report - {time.strftime("%H:%M:%S %d/%m/%Y")}{newline}{"=" * 100}{newline}' + header += f'Searched {report.__searched}\nExcluded {report.__excluded}{newline}' + header += f'Command: {report.__command}{newline}' + header += f'Uname: {" | ".join(platform.uname())}{newline}' + header += f'Elapsed time: {report.__elapsed}{newline}' + header += f'Found {report.pan_count} possible PANs.{newline}{"=" * 100}{newline}{newline}' + print(colorama.Fore.WHITE + header) + pan_sep: str = '\n\t' for sf in report.matched_files: pan_header: str = f"FOUND PANs: {sf.abspath} ({panutils.size_friendly(sf.size)})"