muyexi
10/30/2015 - 5:12 AM

Bash script to disable App Transport Security in iOS 9

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