From b13cc823f5d72d52ce04c819c7427062c7799389 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 18 Jun 2024 15:02:50 -0400 Subject: [PATCH] Add witchcraft script injector --- launchd/Library/LaunchAgents/witchcraft.plist | 16 ++++++++++++++++ witchcraft/witchcraft-scripts/_global.js | 1 + 2 files changed, 17 insertions(+) create mode 100644 launchd/Library/LaunchAgents/witchcraft.plist create mode 100644 witchcraft/witchcraft-scripts/_global.js diff --git a/launchd/Library/LaunchAgents/witchcraft.plist b/launchd/Library/LaunchAgents/witchcraft.plist new file mode 100644 index 0000000..e9c0c1e --- /dev/null +++ b/launchd/Library/LaunchAgents/witchcraft.plist @@ -0,0 +1,16 @@ + + + + + Label + local.jdormit.witchcraft + ProgramArguments + + sh + -c + /usr/bin/python3 -m http.server -d ~/witchcraft-scripts 5743 + + KeepAlive + + + diff --git a/witchcraft/witchcraft-scripts/_global.js b/witchcraft/witchcraft-scripts/_global.js new file mode 100644 index 0000000..799c27b --- /dev/null +++ b/witchcraft/witchcraft-scripts/_global.js @@ -0,0 +1 @@ +console.log("Witchcraft loaded!");