sendmail danted
Sendmail
安裝
Sudo apt-get install sendmail
echo "hello" | mail -s HELLO [email protected]
向自己的郵箱發送郵件
用wireshark 抓包
找到自己發送的郵件
dante-server
安裝
Sudo apt-get install dante-server
2.創建
sudo mkdir /var/log/sock
3.配置
Sudo vim /etc/danted.conf
#logoutput: stderr
#logoutput: syslog
logoutput: /var/log/sockd/sockd.log
internal: 0.0.0.0 port = 1080
#!!!!!!!!Wlan0 etho
external: eth0
#method: username none
#method: pam
method: username
user.privileged: root
user.notprivileged: proxy
user.libwrap: nobody
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind
log: connect disconnect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bindreply udpreply
log: connect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
protocol: tcp udp
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
command: udpassociate
}
#block {
# from: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
# protocol: tcp udp
# log: connect erro
#}
啓動
/etc/init.d/danted start
發現問題
cd /lib/i386-linux-gnu/
ln -s libc.so.6 libc.so
7.
sudo etc/init.d/danted start
ps aux | grep dante
安裝
Sudo apt-get install sendmail
echo "hello" | mail -s HELLO [email protected]
向自己的郵箱發送郵件
用wireshark 抓包
找到自己發送的郵件
dante-server
安裝
Sudo apt-get install dante-server
2.創建
sudo mkdir /var/log/sock
3.配置
Sudo vim /etc/danted.conf
#logoutput: stderr
#logoutput: syslog
logoutput: /var/log/sockd/sockd.log
internal: 0.0.0.0 port = 1080
#!!!!!!!!Wlan0 etho
external: eth0
#method: username none
#method: pam
method: username
user.privileged: root
user.notprivileged: proxy
user.libwrap: nobody
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind
log: connect disconnect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bindreply udpreply
log: connect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
protocol: tcp udp
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
command: udpassociate
}
#block {
# from: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
# protocol: tcp udp
# log: connect erro
#}
啓動
/etc/init.d/danted start
發現問題
cd /lib/i386-linux-gnu/
ln -s libc.so.6 libc.so
7.
sudo etc/init.d/danted start
ps aux | grep dante
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.