Skip to content
Drew Alleman edited this page Apr 20, 2026 · 2 revisions

stat - Stat

Reports the basics about a file: size, when it was created, when it was last modified, and its Windows attribute flags. (The attrs column - R=readonly, H=hidden, S=system, A=archive, D=directory, dots where a flag isn't set.)

Arguments

Name Type Required Description
path Z yes Wide-string path to the file or directory to inspect.

Test invocation: stat <path>

Behavior

Calls GetFileAttributesExW on the specified path and prints the file size in bytes, creation time, last-write time (both in UTC ISO-8601 format), and a five-character attribute string encoding Read-only, Hidden, System, Archive, and Directory flags.

Examples: stat C:\Windows\System32\drivers\etc\hosts stat C:\Users\Alice\Documents\report.docx

Example

[!] Blight -- e280e12a (0s) ~> utilities stat C:\Windows\Temp\winini-copy.ini
[+] BOF: 1,993 bytes, 1 arg(s) (stat.x64.o)
[04/19/26 12:47:40] INFO     Queued remote job with JobID: cfc423bf

[+] Results for BOF Package Manager (Job cfc423bf) in 4.0s:
Size:     92 bytes
Created:  2026-04-19T19:47:35Z
Modified: 2024-04-01T07:24:04Z
Attrs:    ...A.

Source

Clone this wiki locally