Skip to content

0xmachos/macos-scripts

Repository files navigation

macos-scripts

Various scripts for macOS tasks

Shellcheck

  • Wrapper for codesign, spctl, stapler & pkgutil
  • Check codesigning and notarisation of application or package (.pkg) at $path_to_verify
    • Equivalent of codesign --verify --deep --strict && spctl --assess --type exec
    • Equivalent of pkgutil --check-signature && spctl --assess --type install
  • Check codesigning and notarisation of all non system (thirdparty) applications
  • Usage: ./c0design {usage | list | verify $path_to_verify | thirdparty}
  • Print some debug info about the current system
  • Usage: ./debug
  • Usage: ./debug | pbcopy (Copies output to the clipboard)
  • Try to determine if being run in a VMware Virtual Machine
  • Usage: ./detect-vmware
  • Check system for 32-bit applications & third party kernel extensions
  • Usage: ./legacy-check
  • Disable/ restrict Microsoft Office macro execution
  • Usage: ./office-macro-security {list | disable | restrict | both | undo}
  • Expands package (--expand-full)
  • Finds and expands embeded packages
  • Dumps Bill of Material (Bom) files
  • Usage: ./pkg-expand /tmp/example.pkg