更换国内源
vi /etc/apt/sources.list
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
从github上面下载w3af
https://github.com/andresriancho/w3af
下载完成后放到kali里面去解压就可以,我放在了/usr/w3af目录下面。
查看kali上的python版本
python --version
如果是3.10的版本,再用下面这条命令看kali上面装了几个python版本,一般是3个
ll /usr/bin | grep python
-rwxr-xr-x 1 root root 967 11月 17 2020 apython
-rwxr-xr-x 1 root root 2336 7月 25 2018 dh_python3-ply
-rwxr-xr-x 1 root root 963 1月 24 15:22 ipython3
lrwxrwxrwx 1 root root 23 3月 28 16:47 pdb2.7 -> ../lib/python2.7/pdb.py
lrwxrwxrwx 1 root root 24 3月 24 09:07 pdb3.10 -> ../lib/python3.10/pdb.py
lrwxrwxrwx 1 root root 23 3月 24 09:02 pdb3.9 -> ../lib/python3.9/pdb.py
lrwxrwxrwx 1 root root 31 5月 1 18:33 py3versions -> ../share/python3/py3versions.py
-rwxr-xr-x 1 root root 953 5月 1 2021 pybabel-python3
lrwxrwxrwx 1 root root 24 6月 19 05:41 python -> /etc/alternatives/python
lrwxrwxrwx 1 root root 9 7月 28 2021 python2 -> python2.7
-rwxr-xr-x 1 root root 3533496 3月 28 16:47 python2.7
lrwxrwxrwx 1 root root 33 3月 28 16:47 python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root 10 5月 1 18:33 python3 -> python3.10
-rwxr-xr-x 1 root root 5540696 3月 24 09:07 python3.10
lrwxrwxrwx 1 root root 34 3月 24 09:07 python3.10-config -> x86_64-linux-gnu-python3.10-config
-rwxr-xr-x 1 root root 5447080 3月 24 09:02 python3.9
-rwxr-xr-x 1 root root 963 4月 23 15:15 python3-commonmark
lrwxrwxrwx 1 root root 17 5月 1 18:33 python3-config -> python3.10-config
-rwxr-xr-x 1 root root 960 12月 23 2020 python3-futurize
-rwxr-xr-x 1 root root 964 12月 23 2020 python3-pasteurize
-rwxr-xr-x 1 root root 945 10月 21 2021 python3-qr
-rwxr-xr-x 1 root root 977 3月 27 16:47 python-dotenv
lrwxrwxrwx 1 root root 7 4月 13 11:26 python-faraday -> faraday
lrwxrwxrwx <