Debian使用parrot源

#Debian9添加使用parrot源

###注意
###使用源之前看看目标发行版本是否和本系统一样
###如果Debian8使用Debian9的parrot源安装软件的话。
###多半会崩
###换其他源也可以参考一下

##1,写入apt源地址
使用任意编辑器并使用root权限在/etc/apt/source.list结尾加入软件源地址
这里用Debian9添加parrot sec的中科大源做示例:

我用vim打开并写入了以下内容:

deb http://mirrors.ustc.edu.cn/parrot/ parrot main contrib non-free

##2,添加gpg密钥
现在在百度大多数方法是使用密钥服务器
但是我在Debian源里面发现了一个更简单而且不折腾的方法:

比如我要安装parrot的gpg
首先打开源进入parrot/pool/main/
由于parrot发行的首字母是p所以进入p目录
然后找到parrot前缀的目录,然后再找后缀为archive-keyring的文件夹,进 去,下载deb包
下载到本地后使用dpkg安装:

    # dpkg -i 文件名

安装成功的话gpg密钥就没问题了


##3,使用apt update更新缓存

    sudo apt update



接下来apt search 一下metasploit-framework
搜索到的话就OK了




欢迎在评论区反馈你遇到的问题
4 个赞

我使用apt upgrade 在Debian上面摞parrot暂时没发现系统问题。。

20171

这里有一份官方提供的将Debian转换成Parrot的自动化脚本:

parrot-install.sh (4.7 KB)

#!/bin/bash

show_menu(){
    NORMAL=`echo "\033[m"`
    MENU=`echo "\033[36m"` #Blue
    NUMBER=`echo "\033[33m"` #yellow
    FGRED=`echo "\033[41m"`
    RED_TEXT=`echo "\033[31m"`
    ENTER_LINE=`echo "\033[33m"`
    echo -e "${MENU}*********************************************${NORMAL}"
    echo -e "Welcome to Parrot On-Debian Installer Script"
    echo -e "\t\trev 0.2 - 2015-06-10"
    echo -e "${MENU}**${NUMBER} 1)${MENU} Install Core Only ${NORMAL}"
    echo -e "${MENU}**${NUMBER} 2)${MENU} Install Headless Edition ${NORMAL}"
    echo -e "${MENU}**${NUMBER} 3)${MENU} Install Standard Edition ${NORMAL}"
    echo -e "${MENU}**${NUMBER} 4)${MENU} Install Full Edition ${NORMAL}"
    echo -e "${MENU}**${NUMBER} 5)${MENU} Install Home Edition ${NORMAL}"
    echo -e "${MENU}**${NUMBER} 6)${MENU} Install Embedded Edition ${NORMAL}"
    echo -e "${MENU}*********************************************${NORMAL}"
    echo -e "${ENTER_LINE}Please enter a menu option and enter or ${RED_TEXT}enter to exit. ${NORMAL}"
    read opt
}

function option_picked() {
    COLOR='\033[01;31m' # bold red
    RESET='\033[00;00m' # normal white
    MESSAGE=${@:-"${RESET}Error: No message passed"}
    echo -e "${COLOR}${MESSAGE}${RESET}"
}


function core_install() {
	echo -e "deb http://mirrordirector.archive.parrotsec.org/parrot parrot main contrib non-free" > /etc/apt/sources.list.d/parrot.list
	echo -e "# This file is empty, feel free to add here your custom APT repositories\n\n# The standard Parrot repositories are NOT here. If you want to\n# edit them, take a look into\n#                      /etc/apt/sources.list.d/parrot.list\n#                      /etc/apt/sources.list.d/debian.list\n\n\n\n# If you want to change the default parrot repositories setting\n# another localized mirror, then use the command parrot-mirror-selector\n# and see its usage message to know what mirrors are available\n\n\n\n#uncomment the following line to enable the Parrot Testing Repository\n#deb http://us.repository.frozenbox.org/parrot testing main contrib nonfree" > /etc/apt/sources.list
	wget -qO - https://archive.parrotsec.org/parrot/misc/parrotsec.gpg | apt-key add -
	apt-get update
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install apt-parrot parrot-archive-keyring --no-install-recommends
	parrot-mirror-selector default stable #change it if you want another mirror, launch it without parameters to get the full list of available mirrors
	apt-get update
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install parrot-core
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” dist-upgrade
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” autoremove
}

function headless_install() {
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install  parrot-pico
}

function standard_install() {
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install parrot-interface parrot-tools
}

function full_install() {
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install parrot-interface parrot-interface-full parrot-tools-full
}

function home_install() {
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install parrot-interface-full parrot-interface
}

function embedded_install() {
	apt-get -y --force-yes -o Dpkg::Options::=”–force-overwrite” install parrot-interface parrot-mini
}



function init_function() {
clear
show_menu
while [ opt != '' ]
    do
    if [[ $opt = "" ]]; then 
            exit;
    else
        case $opt in
        1) clear;
        	option_picked "Installing Core";
		core_install;
		option_picked "Operation Done!";
        	exit;
        ;;

        2) clear;
		option_picked "Installing Headless Edition";
		core_install;
		headless_install;
		option_picked "Operation Done!";
		exit;
            ;;

        3) clear;
		option_picked "Installing Parrot Security OS";
		core_install;
		standard_install;
		option_picked "Operation Done!";
		exit;
            ;;

        4) clear;
		option_picked "Installing Full Edition";
		core_install;
		full_install;
		option_picked "Operation Done!";
		exit;
            ;;
	5) clear;
		option_picked "Installing Home Edition";
		core_install;
		home_install;
		option_picked "Operation Done!";
		exit;
		;;
	6) clear;
		option_picked "Installing Embedded Edition";
		core_install;
		embedded_install;
		option_picked "Operation Done!";
		exit;
	    ;;
        x)exit;
        ;;

	q)exit;
	;;

        \n)exit;
        ;;

        *)clear;
        option_picked "Pick an option from the menu";
        show_menu;
        ;;
    esac
fi
done
}

if [ `whoami` == "root" ]; then
	init_function;
else
	echo "R U Drunk? This script needs to be run as root!"
fi

2 个赞

受益无穷:kissing_heart::kissing_heart::kissing_heart::kissing_heart::kissing_heart::kissing_heart::kissing_heart:

debian使用parrot源

1.我用这个 parrot-install.sh 自动脚本尝试过。
2.并换上最新源

deb https://deb.parrot.sh/parrot/ rolling main contrib non-free

3.apt update依然报错。报错如下。GPG错误:是不是有像kali Ubuntu那张种的密钥。在哪里设置

Err:1 https://deb.parrot.sh/parrot rolling InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C7B39D0362972489
Get:2 https://deb.parrot.sh/parrot rolling-security InRelease [8,749 B]
Err:2 https://deb.parrot.sh/parrot rolling-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C7B39D0362972489
Reading package lists... Done
W: GPG error: https://deb.parrot.sh/parrot rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C7B39D0362972489
E: The repository 'https://deb.parrot.sh/parrot 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.
W: GPG error: https://deb.parrot.sh/parrot rolling-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C7B39D0362972489
E: The repository 'https://deb.parrot.sh/parrot rolling-security 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.

只有我一个人运行报错吗?

image
总是提示这个怎么解决?

i’m using this, u can have a try:

## stable repository
deb https://mirrors.tuna.tsinghua.edu.cn/parrot rolling main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/parrot rolling-security main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/parrot rolling main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/parrot rolling-security main contrib non-free

This file is /etc/apt/source.list.d/parrot.list


My Sougou is broken, so use it in English…

好家伙,but you don’t try fix it?

I’m using laptop and a Dell screen.
At first, i can’t use my External Screen;
After i xiaB guDao, the external screen is work, but the screen of laptop has been black…
And, Sougou is not work as before…
:cry:

I reinstalled the Nvidia drivers and so on , now BaiDu and Bing cannot help me anymore, I cannot found any answer help me.

直接卸载了不就完了

it will cannot start lightdm after i remove purge nvidia-*.
Then enter tty1 in command line terminal.

http://mirrors.ustc.edu.cn/parrot/pool/main/p/parrot-archive-keyring/parrot-archive-keyring_2021.7%2Bparrot1_all.deb


服务器资源由ZeptoVM赞助

Partners Wiki Discord