INNER CODE UNIT · Python

run_binwalk_scan

FuzzingLabs/mcp-security-hub · binary-analysis/binwalk-mcp/server.py:159

async def run_binwalk_scan(
    filepath: str,
    scan_type: str = "signature",
    extract: bool = False,
    timeout: int | None = None,
) -> ScanResult:
    """Execute a binwalk scan asynchronously."""
    scan_id = str(uuid.uuid4())[:8]
    filename = Path(filepath).name

    result = ScanResult(
        scan_id=scan_id,
        filename=filename,
        scan_type=scan_type,
        started_at=datetime.now(),
    )
    scan_results[scan_id] = result
    active_scans.add(scan_id)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…