FOR518 Reference Sheet PDF
FOR518 Reference Sheet PDF
Ow
Gr
Pe
En
xa
Ha ACL
sudo log collect Create a logarchive bundle on live system, root required
Fi
Fi
La ime
ou
rm
tt
t
exiftool <filename> Show the exif/metadata of the file
le
ne
ry
rd s
le
st st
r/
T
p
View logs in logarchive bundle (use with --predicate to filter)
/D
log show
iss
rN
Si
Ty
Lin
M am
Na
plutil –p <propertylist> Print the contents of a property list
ze
io
ire
pe
od p
am
k
log stream View live logs (use with --predicate to filter)
m
ns
(b
Co
ct
ifi
e
yt
e
file <filename> Show a file signature type
o
ed
un
Time Machine
es
ry
t
)
grep –i <searchterm> <filename> Search for term within a file (case- tmutil uniquesize <machinedirectory_path>/* Show the unique sizes of each snapshot
insensitive) tmutil calculatedrift Show the size changes (added/removed/changed)
python <file>.py Execute a Python program <machinedirectory_path> between each snapshot.
Miscellaneous Commands tmutil compare <snapshotdirectory1> Compare the file changes
GPT Header GPT Reference
Offset Size Field
sudo <command> Execute program as another user (default is root user) <snapshotdirectory2> (added/removed/changed) between two snapshots..
(bytes)
sudo -s Open a privileged shell Memory Analysis & Encrypted Containers GPT Table Entry
vol.py --profile=<profile> -f <memory image> Volatility Usage 0 8 Signature (EFI PART) Offset Size (bytes) Field
su - Substitute User to root
<plugin> 8 4 Revision (1.0) 0 16 Partition Type GUID
whoami / id Display Effective User ID / Show UID/GID Info hdiutil attach –readonly –nomount –stdinpass Mount a FileVault volume using a
12 4 Size of Header (bytes) 16 16 Unique Partition GUID
history Command History filevault2image.dmg password 32 8 Starting LBA (Little Endian)
man <command> Command Manual (q – to exit manual) security unlock-keychain FileVaultMaster.keychain Access and mount a FileVault volume 16 4 Header CRC32
40 8 Ending LBA (Little Endian)
diskutil corestorage unlockvolume <UUID> - using a master password 20 4 Reserved 48 8 Attributes
Terminal Shortcuts
recoverykeychain FileVaultMaster.keychain 56 72 Partition Name
Control + A Jump to beginning of line 24 8 LBA of GPT Header
diskutil corestorage unlockvolume <UUID> -passphrase Mount a FileVault volume using the 128 Rest Reserved
Control + E Jump to end of of line <recovery key> Recovery Key 32 8 LBA of Backup GPT Header
Tab Tab Completion hdiutil attach -readonly -nomount -stdinpass Mount an Encrypted DMG File 40 8 First Usable LBA Type Common GPT Partition GUIDs
Control + C Kill Current Command sekretstuff_USB.dmg 48 8 Last Usable LBA EFI System C12A7328-F81F-11D2-BA4B-00A0C93EC93B
Command + K or Control + L Clear Screen (or clear command) strings <MemoryImage> | sort -u > dictionary.txt Create a dictionary file Partition
56 16 Disk GUID
Command + T New Terminal Tab Spotlight HFS+ Partition 48465300-0000-11AA-AA11-00306543ECAC
72 8 Starting LBA of GUID Partition Table
Command + W Close Terminal Tab
mdls <file> List the Spotlight metadata for a file Apple Boot 426F6F74-0000-11AA-AA11-00306543ECAC
(Little Endian)
Command +/- Increase or Decrease Terminal Font Size
mdfind “<attribute_name> == *” Find files based on a specific metadata query Partition
80 4 Number of Partition Entries Available
mdfind –onlyin /Volumes/mounted_disk Find files only in a certain directory or mounted image. Apple CoreStorage 53746F72-6167-11AA-AA11-00306543ECAC
Option + Left/Right Arrow Move back/forth by word (Little Endian)
mdimport –X | -A Print a list of attributes that can be queried. (possible FileVault
Option + Click in Command Line Put command line cursor where mouse cursor is. 84 4 Size of Partition Entry
or Fusion Drive)
88 4 Partition Entry Array CRC32 APFS Partition 7C3457EF-0000-11AA-AA11-00306543ECAC
Generic Tool Compilation and Installation Disk Arbitration
tar –xvf <archive>.tar.gz sudo launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist Enable 92 Rest Reserved Basic Data Partition EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
./configure sudo launchctl unload /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist Disable (Boot Camp)
make ps auxw | grep diskarbitrationd Determine Status
sudo make install