macos community v1.0.0

GetFileInfo

Get attributes of files and directories.

📋 Live Preview
GetFileInfo
GetFileInfo

Sandbox: execFile · Timeout: 30s

Capabilities

discovery.enumerate

Examples

Iterate through a directory to GetFileInfo: A bash or zsh oneliner can provide an attacker with information about specific files of interest.

for FILE in ~/Downloads/*; do echo $(GetFileInfo $FILE) >> fileinfo.txt; sleep 2; done

Detection

TypeRule / Indicator
other No detections at time of publishing

Documentation

Uses the CommandLine/Terminal to return type, creator, attributes, created, and modified file information of a file or directory.

References