Dragon
  • 一个纯白的黑客网站,一直在努力,apt的路上,更精彩!
lsh4ckLsh4ck  2021-07-25 14:51 lsh4ck's Blog 隐藏边栏 |   抢沙发  7 
文章评分 0 次,平均分 0.0

编译安装:

Download the newest version from here. Then install gcc + make and compile/install

tar -xvf xxxx<br /> cd xxxx<br /> apt-get install gcc make<br /> mkdir /home/dante<br /> ./configure --prefix=/home/dante<br /> make<br /> make install

/home/dante/sbin/sockd -v

下载配置文件并配置用户认证:

wget -O /home/dante/danted.conf https://tech.tiq.cc/wp-content/uploads/2015/10/danted_conf_ubuntu_1404.txt

Check if it is running:
netstat -tulp

tcp 0 0 10.0.3.251:1080 *:* LISTEN 47543/sockd

To stop dante:
pkill sockd

(or CTRL+C if running in foreground)

Now create a new user that you will use to authenticate. You can use root, but it is much better security wise to add a user that has no shell access.

useradd -s /sbin/nologin anon

Set the password:

passwd anon

Now see if it works. Try to authenticate with whatever software you need a SOCKS proxy for (choose SOCKS5). Enter the IP address of your server, port 1080 and your user name + password

基于IP认证:

Firefox does not support SOCKS authentication. You will have to install a browser add-on or use IP based authentication (not recommended..).

Adjust /home/dante/danted.conf:

method: none
and
client pass {<br /> from: yo.ur.ip.here/32 to: 0.0.0.0/0<br /> }

Then restart dante.

The Firefox SOCKS settings have to look like this: (“Manual proxy configuration” and only fill “SOCKS Host”)

firefox_socks_proxy_settings

启停脚本:

#!/bin/bash<br /> sleep 10<br /> /home/dante/sbin/sockd -f /home/dante/danted.conf -D

#!/bin/bash<br /> /usr/bin/pkill sockd

chmod +x start.sh to make them executable

下方按钮下载截止此文的当前版本进行下载



本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

lsh4ck
Lsh4ck 关注:0    粉丝:7
这个人很懒,什么都没写
×

予人玫瑰,手有余香

打赏 Lsh4ck

打开支付宝扫一扫,即可进行扫码打赏哦

发表评论

表情 链接 私密 格式 签到

扫一扫二维码分享

无觅相关文章插件,快速提升流量