通过kali安装源安装beef-xss

发布时间 2023-12-28 19:17:11作者: websec80

通过kali安装
将 Kali Linux 源添加到 sources.list 文件:

打开 /etc/apt/sources.list 文件,然后将以下行添加到文件末尾:

deb http://http.kali.org/kali kali-rolling main non-free contrib

 

报错
Err:5 http://mirror.aktkn.sg/kali kali-rolling InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Reading package lists... Done
W: GPG error: http://mirror.aktkn.sg/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

获取 Kali Linux GPG 公钥:

打开终端并运行以下命令,获取 Kali Linux GPG 公钥:


sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ED444FF0


请注意,apt-key 命令在较新的 Debian 和 Ubuntu 系统上被弃用。在这种情况下,你可能需要使用 gpg 命令来导入公钥。

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ED444FF07D8D0BF6
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
再次尝试更新软件包:

sudo apt update

 

apt install beef-xss