Posts Kali 配置 SS 代理
Post
Cancel

Kali 配置 SS 代理

安装

apt install python-pip && pip install shadowsocks

修改配置文件

/etc/shadowsocks/server.json

1
2
3
4
5
6
7
8
9
10
{
    "server":"my_server_ip", #服务器公网IP
    "server_port":8388, #服务器对外提供的端口,用来给客户端连接。
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"mypassword", #设置连接密码
    "timeout":300, 
    "method":"aes-256-cfb",
    "fast_open": false
}

Proxychains设置

vim /etc/proxychains.conf

1
2
dynamic_chain
socks5 127.0.0.1 1080

测试/开启/关闭/重启连接

sslocal -c /etc/shadowsocks/server.json [-d [start|stop|restart]]

设置代理

  • System:Network ProxyManualSocks Host : 127.0.0.1:1080
  • Firefox:PreferencesNetwork ProxyManual Proxy configurationSocks Host127.0.0.1:1080
  • 在需要代理的应用前加 proxychains

添加为系统服务

vim /etc/systemd/system/shadowsocks.service 1

1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Shadowsocks Client Service
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/sslocal -c /etc/shadowsocks/server.json

[Install]
WantedBy=multi-user.target

开机自启动

1
2
3
systemctl enable /etc/systemd/system/shadowsocks.service #设置开机自启命令
systemctl start shadowsocks.service #启动命令
systemctl status shadowsocks.service #查看状态命令

终端全局使用代理

export ALL_PROXY=socks5://127.0.0.1:1080

验证代理

  • curl cip.cc
  • curl ip.sb

  1. type -a sslocal 查看命令具体位置 

This post is licensed under CC BY 4.0 by the author.

Kali 安装 Nessus

PE 文件格式分析

Comments powered by Disqus.