Last active
November 17, 2023 07:11
-
-
Save VulBusters/5eeceb1a961c16c4aa99db7f75d40f19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap ctrl_c INT | |
function ctrl_c() { | |
sudo mv /var/run/usbmuxx /var/run/usbmuxd | |
} | |
sudo mv /var/run/usbmuxd /var/run/usbmuxx | |
if [[ "$1" == "-x" ]] | |
then | |
sudo socat -t100 -x -v UNIX-LISTEN:/var/run/usbmuxd,mode=777,reuseaddr,fork UNIX-CONNECT:/var/run/usbmuxx | |
else | |
sudo socat -t100 -v UNIX-LISTEN:/var/run/usbmuxd,mode=777,reuseaddr,fork UNIX-CONNECT:/var/run/usbmuxx | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment