Pentizer is a helper script for adding and managing Kali Linux and Parrot OS repositories on a Debian-based distribution (e.g. Debian, Ubuntu, Linux Mint).
It automates:
- Backing up and restoring your APT sources
- Adding Kali/Parrot repos with proper pinning rules
- Importing their signing keys
- Removing repos safely
This tool uses APT pinning to keep your base system safe, but you must still use it responsibly.
- Backup/Restore your APT sources (
/etc/apt/sources.list+/etc/apt/sources.list.d/) into a tarball at/etc/apt/backup/apt_sources_backup.tar.gz. - Add Kali repo → Creates
/etc/apt/sources.list.d/kali.listwith low-priority pinning. - Add Parrot repo → Creates
/etc/apt/sources.list.d/parrot.listwith low-priority pinning. - Pinning Rules → Packages from Kali/Parrot will never overwrite your system automatically (
Pin-Priority: 100).
You must explicitly install them with-t. - Remove Repos → Deletes the repo file, preferences, and GPG key.
Run the script as root:
sudo python3 pentizer.pyYou will see a menu:
=== Pentizer ===
1. Backup APT sources
2. Restore APT sources from backup
3. Add Kali repo (with pinning)
4. Remove Kali repo
5. Add Parrot repo (with pinning)
6. Remove Parrot repo
7. Exit
-
Backup first
1. Backup APT sources
This creates a safe restore point at:
/etc/apt/backup/apt_sources_backup.tar.gz -
Add a repo
3. Add Kali repo (with pinning)
or
5. Add Parrot repo (with pinning)
-
Install tools explicitly
Always use
-tto specify the target suite:sudo apt install -t kali-rolling nmap sudo apt install -t lory hydra
Note: Kali Linux uses suite name kali-rolling,
Parrot OS 6 uses suite name lory.
Pentizer automatically detects the correct suite and displays the right-tcommand after adding a repo. -
Remove repo when done (optional)
4. Remove Kali repo
or
6. Remove Parrot repo
Then refresh:
sudo apt update
-
Restore if something breaks
2. Restore APT sources from backup
- Do not run
sudo apt upgradeorsudo apt full-upgradeimmediately after adding Kali/Parrot without understanding what will be upgraded. - With
Pin-Priority: 100, your base system won’t automatically upgrade to Kali/Parrot packages.
However, if you install something without-t, APT might still pull dependencies from them. - This tool is intended for installing specific security tools, not for turning your Debian/Ubuntu/Mint system into Kali or Parrot.
- If your package system becomes unstable, use the restore option to roll back your sources.
- Debian-based system (Debian, Ubuntu, Linux Mint, etc.)
- Python 3
- Root privileges (
sudo) tar,wget, andgpginstalled
✅ Tested and working on Linux Mint 22.2 (Zara)
This tool is provided as-is.
Adding foreign repositories can break your system if misused.
Always back up your data before experimenting.