Last updated: 2014-12-25
mdfind -attr kMDItemContentType "kMDItemContentType == '*'" -onlyin . | awk -F"kMDItemContentType =" '{print $2}' | sort | uniq -c | sort -r
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
| // To compile: clang++ -arch x86_64 -arch arm64 -std=c++20 library_injector.cpp -lbsm -lEndpointSecurity -o library_injector, | |
| // then codesign with com.apple.developer.endpoint-security.client and run the | |
| // program as root. | |
| #include <EndpointSecurity/EndpointSecurity.h> | |
| #include <algorithm> | |
| #include <array> | |
| #include <bsm/libbsm.h> | |
| #include <cstdint> | |
| #include <cstdlib> |
| import Cocoa | |
| protocol AXUIProtocol { | |
| func AXUIWindowArray(processIdentifier pid:pid_t) -> [AXUIElement] | |
| func AXUIWindowArray(bundleIdentifier bid:NSString) -> [AXUIElement] | |
| } | |
| extension AXUIProtocol { | |
| func AXUIWindowArray(processIdentifier pid:pid_t) -> [AXUIElement] { | |
| let windowList : UnsafeMutablePointer<AnyObject?> = UnsafeMutablePointer<AnyObject?>.alloc(1) |
| #!/bin/bash | |
| # based on: https://gist.github.com/octocat/0831f3fbd83ac4d46451#gistcomment-2178506 | |
| # will use the .mailmap file to rewrite all names/emails | |
| function correct_names () { | |
| ( git shortlog -sen ; git shortlog -secn ) | cut -f2 | sort | uniq | |
| } | |
| function all_names () { | |
| ( git log --format="%an <%ae>" ; git log --format="%cn <%ce>" ) | sort | uniq |
| import os | |
| import sys | |
| import shlex | |
| import argparse | |
| import subprocess | |
| import macholib | |
| import json | |
| import hashlib | |
| #This script is designed to detect the following MITRE ATT&CK Technique: |
| NSImage *computerImage = [NSImage imageNamed:NSImageNameComputer]; | |
| NSInteger size = 256; | |
| NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] | |
| initWithBitmapDataPlanes:NULL | |
| pixelsWide:size | |
| pixelsHigh:size | |
| bitsPerSample:8 | |
| samplesPerPixel:4 | |
| hasAlpha:YES |
| // | |
| // main.m | |
| // EndpointSecurityDemo | |
| // | |
| // Created by Omar Ikram on 17/06/2019 - macOS Catalina 10.15 Beta 1 (19A471t) | |
| // Updated by Omar Ikram on 15/08/2019 - macOS Catalina 10.15 Beta 5 (19A526h) | |
| // Updated by Omar Ikram on 01/12/2019 - macOS Catalina 10.15 (19A583) | |
| // Updated by Omar Ikram on 31/01/2021 - macOS Big Sur 11.1 (20C69) | |
| // Updated by Omar Ikram on 07/05/2021 - macOS Big Sur 11.3.1 (20E241) | |
| // Updated by Omar Ikram on 04/07/2021 - macOS Monterey 12 Beta 2 (21A5268h) |
| // | |
| // main.m | |
| // EndpointSecurityDemo | |
| // | |
| // Created by Omar Ikram on 17/06/2019 - Catalina 10.15 Beta 1 (19A471t) | |
| // Updated by Omar Ikram on 15/08/2019 - Catalina 10.15 Beta 5 (19A526h) | |
| // Updated by Omar Ikram on 01/12/2019 - Catalina 10.15 (19A583) | |
| // | |
| #import <Foundation/Foundation.h> |
| #!/bin/sh | |
| # template script for running a command as user | |
| # The presumption is that this script will be executed as root from a launch daemon | |
| # or from some management agent. To execute a single command as the current user | |
| # you can use the `runAsUser` function below. | |
| # by Armin Briegel - Scripting OS X | |
| # |