! 这是一篇失败的帖子,切勿操作

根据苹果的 官方说明,以下路径受到保护:

1
2
3
4
5
/System
/usr (不包含 /usr/local)
/bin
/sbin
Apps that are pre-installed with OS X

所以可以利用brew install 工具至/opt/homebrew/避开SIP策略

同理,proxychanis-NG 就能愉快的使用了

1
2
3
4
5
6
7
8
9
10
11
12
13
chmod -R 777 /opt
chown -R `whoami`:staff /opt
curl https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh > /opt/brew.sh

### 请手动查找 /usr/local/opt 并替换为 /opt/homebrew
###

echo 'export PATH=$PATH:/opt/homebrew/bin' >> ~/.zshrc

### 强烈建议
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
brew install sed zsh git
sep MacOS上的sed是BSD变体,具有与GNU对应版本不同的选项,建议重装sed

image-20210727001350639

丢你LM,凸(艹皿艹 )

image-20210727001241927

改变思路,既然你非得安装到 /usr/local/opt 那我就下载 proxychains-NG 源码编译安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
rm -rf /opt/homebrew/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gcc make autoconf

###

cd /opt/
curl http://ftp.barfooze.de/pub/sabotage/tarballs/proxychains-ng-4.14.tar.xz > proxychains-ng.tar.xz
tar -xvJf proxychains-ng.tar.xz
cd proxychains-ng-4.14

mkdir /opt/proxychains-ng
./configure --prefix=/opt/proxychains-ng
make && make install

啥都配置完了,然后呢?

image-20210727014511448

人裂了,在抢救

。。。我水了,晚安

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way