read_file
Read files from disk during penetration testing, auto-detecting type via magic bytes and offering text, hex, or base64 output for binary analysis.
Instructions
Read a file from disk (artifacts, /tmp, /var/tmp, wordlists). Auto-detects file type via magic bytes. path: absolute file path max_bytes: max bytes to read (default 50KB) offset: byte offset to start from as_hex: return content as hex dump as_base64: return content as base64 (for binaries) Returns: file metadata, type detection, content (text/hex/base64)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| as_hex | No | ||
| offset | No | ||
| as_base64 | No | ||
| max_bytes | No |