kali set proxy and system upgrade
阿新 • • 發佈:2018-03-25
shadow tar package lib efi RM www. linux you
1.
pip install shadowsocks sslocal -c /etc/shadowsock/shadowsocks.json -d start
error:
AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup
用vim打開文件:vim /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py 將第52行libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,) 改為libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,) 再次搜索cleanup(全文件共2處,此處位於111行),將libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx) 改為libcrypto.EVP_CIPHER_CTX_reset(self._ctx)
2. global proxy
change repo
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
apt-get update apt-get install polipo -y
vim /etc/polipo/config
# This file only needs to list configuration variables that deviate # from the default values. See /usr/share/doc/polipo/examples/config.sample # and"polipo -v" for variables you can tweak and further information. logSyslog = true logFile = /var/log/polipo/polipo.log proxyAddress = "0.0.0.0" socksParentProxy = "127.0.0.1:1080" socksProxyType = socks5 chunkHighMark = 50331648 objectHighMark= 16384 serverMaxSlots = 64 serverSlots = 16 serverSlots1 = 32
restart polipo server
service polipo restart
vim ~/bashrc
export http_proxy="http://127.0.0.1:8123" export https_proxy="https://127.0.0.1:8123"
check
curl www.google.com
vim /etc/apt/source.list
deb http://http.kali.org/kali kali-rolling main contrib non-free # For source package access, uncomment the following line # deb-src http://http.kali.org/kali kali-rolling main contrib non-free
apt-get update apt-get install -y linux-headers-$(uname -r) apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
kali set proxy and system upgrade