📄 racoonquestion.sh
字号:
#! /bin/sh# $KAME: racoonquestion.sh,v 1.1 2001/01/27 05:46:22 itojun Exp $# sends question about racoon to sakane.# % racoonquestion logfile conffile## caveat: the script will tell everything about your system, and every secret# keys, to sakane.if [ $# != 2 ]; then echo usage: sendracoonquestion logfile conffile exit 1fiif [ -e /tmp/racoonbug ]; then echo fatal: clean /tmp/racoonbug first. exit 1fiif [ `whoami` != root ]; then echo fatal: must be a root to invoke this. exit 1fi# do not let others read the resultumask 0077mkdir /tmp/racoonbug || exit 1setkey -DP > /tmp/racoonbug/spd.$$setkey -D > /tmp/racoonbug/sad.$$ifconfig -a > /tmp/racoonbug/ifconfig.$$netstat -rn >/tmp/racoonbug/netstat.$$cp $1 /tmp/racoonbug/logfile.$$cp $2 /tmp/racoonbug/conffile.$$cd /tmp/racoonbugshar spd.$$ sad.$$ ifconfig.$$ netstat.$$ logfile.$$ conffile.$$ | mail sakane@kame.netcd /tmp/bin/rm -fr /tmp/racoonbug
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -