GetFileInfo

Created by Chris Campbell (@texasbe2trill)

Description

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

CreatedTacticsTags
2023-04-23Discoverybash zsh oneliner

Paths

  • /usr/bin/GetFileInfo

Use Cases

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

Detections

  • No detections at time of publishing

Resources