kali安装使用
1 下载kali镜像
docker pull kalilinux/kali-linux-docker
2 运行
docker run -it -p 3000:3000 --name kali kali
3 安装所有工具
apt-get update
apt-get install kali-linux-all
4 kali中启动BeEF:
cd /usr/share/beef-xss
会要求修改用户名密码。
./beef
5 BeEF的配置
/etc/beef-xss/config.yaml
可以把所有debug都打开,界面上会打印很多log,包括客户端访问的log,比较方便找问题。
如果不好用,重新按装ruby和beef:
apt-get update
apt-get install curl git
apt-get install ruby
git clone git://github.com/beefproject/beef.git
cd beef
./install
运行
ruby beef
docker不好用,使用虚拟机kali官网可以下载各种镜像,vmware,hyper-v
然后更换apt源:编辑/etc/apt/sources.list
注释掉原来的源,增加下面一个即可
中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
保存后,执行如下命令:
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get clean