/fortitool:fortios-firmwarefrom fortitool
Decrypts and unpacks Fortinet firmware (FortiGate/FortiWiFi .out, FortiAnalyzer/FortiManager QCOW2/ZIP) and decrypts ENC secrets from config backups using fortitool CLI.
Ships in fortitool. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Only ever run this against firmware or config backups the user owns or is explicitly authorized to analyze (their own hardware, an authorized pentest/research engagement). Refuse or ask first if that's unclear.
Check fortitool -h first. If not on PATH, download the archive for the current
platform from https://github.com/mosajjal/fortitool/releases, verify it against
the release's SHA-256 checksum file, and put the extracted binary on PATH.
Alternatively, install with Go:
go install github.com/mosajjal/fortitool/cmd/fortitool@latest
or build from source (git clone https://github.com/mosajjal/fortitool && cd fortitool && CGO_ENABLED=0 go build -o fortitool ./cmd/fortitool).
| Command | Does |
|---|---|
fortitool decrypt -o OUTDIR image | Full extraction of supported .out, QCOW2 or single-QCOW2 ZIP inputs |
fortitool decrypt --boot-only -o OUTDIR image | Extract readable boot files, preserving encoded rootfs and additional archives; skips unreadable entries and special files |
fortitool inspect image | Describe one image and its last recognised stage without extracting files or showing keys |
fortitool l1 -o out.img image.out | Outer XOR layer only |
fortitool rootfs -o out.gz kernel rootfs.gz | rootfs.gz crypto layer using flatkc or vmlinuz |
fortitool unpack -o outdir archive | Generic tar / gzip+tar / xz+tar extraction |
fortitool pkg scan datafs/ | Classify files in a directory, find PKCS#7 signatures |
fortitool pkg inspect --content payload sig.x | Verify every signer in a detached PKCS#7 signature (integrity only; no trust-chain validation) |
fortitool config decrypt --stdin | Decrypt a config-backup ENC secret without exposing it in argv |
fortitool config decrypt --file ciphertext.txt | Decrypt a config-backup ENC secret from a file |
Every crypto layer auto-detects its era/scheme (no version or CPU
architecture flag). Run fortitool <command> -h for that command's full
flags, behavior notes, and worked examples before using it -- the help
text is the authoritative reference, more detailed than this file.
Flags must precede positional arguments (fortitool decrypt -o outdir image.out, not fortitool decrypt image.out -o outdir -- Go's flag
parser doesn't permute argv).
inspect is read-only and single-image. A readable partial or unsupported
image exits 0 with status: partial, last-successful-stage and
unsupported-stage; absent or inaccessible input exits 1. It has no
--show-keys, output-directory, JSON or batch option..out packages or hardware-appliance images.rootfs/ and extracts archives into
layers/rootfs/<archive-name>/ and layers/boot/<archive-name>/. Different
versions of the same path are preserved; do not assume a merged bootable
filesystem or that the base bin/init is the application binary.decrypt discovers supported ext filesystems in raw MBR-partitioned,
qcow2, and fixed-offset disk layouts. Its output directory must not already
exist and is published only after the requested extraction succeeds.
--boot-only skips rootfs decoding and archive expansion; unreadable entries
and special files are skipped, so it does not certify a complete copy.config decrypt auto-detects and handles both known key eras (legacy,
through FortiOS 7.2.3, and >=7.4/build 2731) -- no flags needed. If it
still reports an unrecognized format, the field's blob layout isn't one
of the two known ones yet, not a version issue.config decrypt --stdin or --file so ciphertext does not appear
in process listings or shell history. Direct argv input is retained only
for compatibility; select exactly one source. Input is limited to 1 MiB;
surrounding whitespace is trimmed, and the remaining value must be non-empty
and contain no whitespace.--show-keys is explicitly requested.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mosajjal/fortitool --plugin fortitoolOther plugins' skills for the same job