Skip to content

Instantly share code, notes, and snippets.

@shakeelmohamed
Last active December 25, 2024 01:09
Show Gist options
  • Select an option

  • Save shakeelmohamed/143a09bd2f1e632fae3a92f8389f5a35 to your computer and use it in GitHub Desktop.

Select an option

Save shakeelmohamed/143a09bd2f1e632fae3a92f8389f5a35 to your computer and use it in GitHub Desktop.
Run Syphoner for MacOS by changing date before and after launching. Inspired by https://github.com/arunyagoojar/RunAsDate-for-MacOS/tree/main Syphoner can be downloaded here: https://www.sigmasix.ch/syphoner/

Setup for macOS shortcuts

  1. open shorcuts.app
  2. New shortcut
  3. Set type to run shell script (search from the box at the right)
  4. (Note: need to manually enable shell actions through preferences... click the button, click advanced, and tick the first checkbox then closee that little pop up then you should be good)
  5. Copy/paste the script
  6. Make sure shell is set to bash, and check run as administrator
#!/bin/bash
sudo systemsetup -setusingnetworktime off
# Change date to a specific date
sudo date 1001110022
# Wait for 3 seconds
sleep 3
# Launch Syphoner
open /Applications/Syphoner.app
# Wait for 3 seconds
sleep 3
# Change date back to current date
sudo systemsetup -setusingnetworktime on
@shakeelmohamed
Copy link
Author

Screenshot 2023-09-25 at 11 52 00 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment