INNER CODE UNIT · Python
info
shuvonsec/claude-bug-bounty · engine.py:67
def info(msg): print(f"{CYAN}{BOLD}[*]{NC} {msg}")
def warn(msg): print(f"{YELLOW}{BOLD}[!]{NC} {msg}")
def err(msg): print(f"{RED}{BOLD}[-]{NC} {msg}")
def header(title: str):
width = max(len(title) + 4, 60)
print(f"\n{BOLD}{'═' * width}{NC}")
print(f"{BOLD} {title}{NC}")
print(f"{BOLD}{'═' * width}{NC}\n")
def load_config() -> dict:
if CONFIG.exists():
try:
return json.loads(CONFIG.read_text())
except json.JSONDecodeError as e:
warn(f"Corrupted config file {CONFIG}, using defaults: {e}")