Skip to content

Instantly share code, notes, and snippets.

@muyexi
Created October 30, 2015 05:12
Show Gist options
  • Save muyexi/dbbee88c6abba9f3dba6 to your computer and use it in GitHub Desktop.
Save muyexi/dbbee88c6abba9f3dba6 to your computer and use it in GitHub Desktop.
Bash script to disable App Transport Security in iOS 9
#!/bin/bash
if [[ $1 = "" ]]; then
echo Usage: disableAppTransportSecurity.sh PLIST_PATH
exit 1
fi
#PlistBuddy的位置
PLISTBUDDY="/usr/libexec/PlistBuddy"
$PLISTBUDDY -c "Add :NSAppTransportSecurity:NSAllowsArbitraryLoads bool true" $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment