zoukankan      html  css  js  c++  java
  • 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

    set global proxy

    Network setting -> Network Proxy -> Manual

    HTTP Proxy 127.0.o.1:8123
    HTTPS Proxy 127.0.o.1:8123
    Socks Host 127.0.0.1:1080
    Ignore localhost, 127.0.0.0/8, ::1

    =======system upgrade=======================

     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 
    apt-get -o Acquire::http::proxy="http://127.0.0.1:8000/" update
  • 相关阅读:
    Codeforces Round #541 (Div. 2) D 并查集 + 拓扑排序
    Educational Codeforces Round 60 D dp + 矩阵快速幂
    Educational Codeforces Round 60 C 思维 + 二分
    Codeforces Round #544 (Div. 3) dp + 双指针
    Codeforces Round #542(Div. 2) CDE 思维场
    UVA
    UVA
    UVA
    UVA
    UVA
  • 原文地址:https://www.cnblogs.com/yugengde/p/8642689.html
Copyright © 2011-2022 走看看