Persistence

sysadminctl

Create/delete local accounts, guest account, enable SMB/AFP Guest access.

launchctl

Interact with LaunchAgents and LaunchDaemons.

defaults

Read, write, and delete user preference values.

ditto

Copy files and directories while preserving file attributes and permissions.

dscl

Interact with Directory Services.

SetFile

Set attributes of files and directories.