注意事项 不支持Arm架构电脑
apt update && apt install apt-transport-https ca-certificates
mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt update && apt upgrade
apt install net-tools iputils-ping vim wget git unzip zip proxychains -y
export https_proxy=http://192.168.0.188:33007 http_proxy=http://192.168.0.188:33007 all_proxy=socks5://192.168.0.188:33006
unset http_proxy
unset https_proxy
unset all_proxy
# wget http://ftp.barfooze.de/pub/sabotage/tarballs/proxychains-ng-4.14.tar.xz
wget https://github.com/rofl0r/proxychains-ng/archive/v4.14.zip
unzip v4.14.zip
# docker cp proxychains-ng-4.14 upload-labs:/root/proxychains-ng-4.14
cd proxychains-ng-4.14
./configure --prefix=/usr --sysconfdir=/etc
cp src/proxychains.conf /etc/ && cd .. && rm -rf proxychains-ng-4.14/ && rrm v4.14.zip
echo -e "strict_chain \nproxy_dns \nremote_dns_subnet 224 \ntcp_read_time_out 15000 \ntcp_connect_time_out 8000 \n[ProxyList] \
\nsocks5 192.168.0.188 33006" > /etc/proxychains.conf
# -----------------------
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks4 127.0.0.1 9050
# -----------------------
echo -e "deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib" \
> /etc/apt/sources.list
echo -e "deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib" \
> /etc/apt/sources.list
echo -e "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian-security stretch/updates main \
\ndeb-src http://mirrors.aliyun.com/debian-security stretch/updates main \
\ndeb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" \
> /etc/apt/sources.list
echo -e "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free \
\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free \
\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free \
\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free" \
> /etc/apt/sources.list
echo -e "deb http://mirrors.163.com/debian/ jessie main non-free contrib \
\ndeb http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib \
\ndeb-src http://mirrors.163.com/debian/ jessie main non-free contrib \
\ndeb-src http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib \
\ndeb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib \
\ndeb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib" \
> /etc/apt/sources.list
mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt update && apt upgrade
echo -e "deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse \
\ndeb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse \
\ndeb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse \
\ndeb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse \
\n## Not recommended \
\n# deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse \
\n# deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse" \
> /etc/apt/sources.list
echo -e "deb http://mirrors.aliyun.com/ubuntu/ xenial main \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial main \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial universe \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial universe \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security main \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security universe \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe" \
> /etc/apt/sources.list
echo -e "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse" \
> /etc/apt/sources.list
echo -e "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse" \
> /etc/apt/sources.list
echo -e "deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib" \
> /etc/apt/sources.list
mkdir ~/.pip
~/.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
or
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
alias cnpm="npm --registry https://registry.npm.taobao.org $@"
npm --registry https://registry.npm.taobao.org %*