kali set proxy and system upgrade

Posted yugengde

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kali set proxy and system upgrade相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

Initialization failed for ‘https://start.spring.io’ Please check URL, network and proxy settings

Initalization failed for ‘https://start.spring.io‘.Please check URL, network and proxy settings的解决方案

use of CGLib-based proxies by setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching

kali linux系统安装时怎样填 http proxy

做密码学会用到的python函数--kali and windows

kali-set