kali-linux
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "kali-linux":https://skillpi.com/zh/skills/deepskill-1a0fe3f9b80f16c90abef2fce836a634e3200de76b85121a342445654e305fde。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
使用 Kali Linux 进行授权的渗透测试、安全研究和 CTF 竞赛。适用于用户询问关于安装 Kali、搭建渗透测试实验环境、从 Kali 工具链中选择工具、在 WSL/Docker/虚拟机中使用 Kali 或更新发行版的场景。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: kali-linux
description: >-
Use Kali Linux for authorized penetration testing, security research, and
CTF work. Use when a user asks about installing Kali, setting up a pentest
lab, picking tools from the Kali toolchain, using Kali in WSL/Docker/VM, or
updating the distribution.
license: Apache-2.0
compatibility: 'Kali Linux 2024+, WSL2, Docker, VMware, VirtualBox'
metadata:
author: terminal-skills
version: 1.0.0
category: devops
tags:
- kali-linux
- penetration-testing
- security
- ctf
- lab-setupKali Linux
Overview
Kali Linux is a Debian-based distribution maintained by Offensive Security with 600+ preinstalled tools for penetration testing, digital forensics, reverse engineering, and red teaming. Use Kali as a disposable lab environment — VM snapshots, Docker containers, or WSL2 — never as a daily driver. Tools are organized into Kali Metapackages (e.g., kali-tools-top10, kali-tools-wireless, kali-tools-web) so you install only what you need.
Instructions
Step 1: Install Kali
# Docker (fastest for CTF and quick work)
docker run -it --rm kalilinux/kali-rolling
# Inside the container:
apt update && apt install -y kali-linux-headless
# WSL2 on Windows
wsl --install -d kali-linux
wsl -d kali-linux
sudo apt update && sudo apt install -y kali-linux-default
# Bare VM — download ISO or prebuilt image
# https://www.kali.org/get-kali/ — use the "Virtual Machines" tab
Step 2: Update and Install Tool Groups
# Keep Kali current — rolling release
sudo apt update && sudo apt full-upgrade -y
# Metapackages — install by category, not tool-by-tool
sudo apt install -y kali-tools-top10 # nmap, metasploit, burp, hydra, john, sqlmap, wireshark, aircrack-ng, hashcat, crackmapexec
sudo apt install -y kali-tools-web # sqlmap, wfuzz, nikto, dirb, gobuster, zaproxy
sudo apt install -y kali-tools-wireless # aircrack-ng, reaver, wifite, bully, pixiewps
sudo apt install -y kali-tools-passwords # john, hashcat, hydra, medusa, cewl, crunch
sudo apt install -y kali-tools-forensics # foremost, binwalk, autopsy, volatility3, sleuthkit
# List all metapackages
apt-cache search kali-tools
Step 3: Set Up a Safe Lab Environment
# Isolate Kali on a host-only network in VirtualBox/VMware
# The pentest network must NOT route to the internet or your LAN
# Vulnerable targets for practice (run in the same isolated network)
docker run -d --rm -p 80:80 vulnerables/web-dvwa # Damn Vulnerable Web App
docker run -d --rm -p 3000:3000 bkimminich/juice-shop # OWASP Juice Shop
docker run -d --rm -p 8080:8080 citizenstig/nowasp # Mutillidae II
# Metasploitable 3 — vulnerable Windows/Linux VMs
# https://github.com/rapid7/metasploitable3
# HackTheBox and TryHackMe give you remote labs — use OpenVPN from Kali
sudo openvpn ~/lab.ovpn
Step 4: Daily Workflow
# Snapshot before every engagement (VirtualBox)
VBoxManage snapshot "Kali" take "pre-engagement-$(date +%F)"
# Case directory — keep every engagement self-contained
mkdir -p ~/cases/acme-2026-04/{recon,exploits,loot,notes,reports}
cd ~/cases/acme-2026-04
# Log everything with script(1)
script -a notes/session-$(date +%F-%H%M).log
# ... run commands ...
exit # stops logging
# Common tool entry points (all on PATH on Kali)
nmap -sV -sC -oA recon/nmap target.example.com
msfconsole -q -r notes/msf-resume.rc
wireshark &
Step 5: Minimize Footprint and Tear Down
# Remove tools you don't use to cut attack surface on the Kali box itself
sudo apt autoremove --purge -y $(dpkg -l | grep kali-tools- | awk '{print $2}' | grep -v top10)
# Clean caches before archiving the VM
sudo apt clean
history -c && rm -f ~/.bash_history ~/.zsh_history
# Restore snapshot after the engagement
VBoxManage snapshot "Kali" restore "pre-engagement-2026-04-11"
Examples
Example 1: Spin Up a Throwaway Kali Container for a CTF
docker run -it --rm \
-v "$PWD/ctf-loot:/root/loot" \
--name ctf \
kalilinux/kali-rolling bash
# Inside:
apt update && apt install -y nmap hydra john sqlmap curl
cd /root/loot
nmap -sV -oA scan 10.10.10.5
# Container disappears on exit — loot/ persists on host
Example 2: Prepare Kali for a Web App Assessment
sudo apt update
sudo apt install -y kali-tools-web burpsuite zaproxy
# Verify the tools are on PATH
which sqlmap nikto gobuster ffuf wfuzz burpsuite
# Wordlists ship in /usr/share/wordlists (rockyou.txt.gz needs extraction)
sudo gunzip /usr/share/wordlists/rockyou.txt.gz
ls /usr/share/wordlists/
Guidelines
- Written authorization first. Using Kali tools against systems you don't own or have explicit permission to test is a crime in most jurisdictions.
- Treat Kali as ephemeral. Use VM snapshots or Docker so you can reset after each engagement.
- Never run Kali as your daily OS. Root-by-default and aggressive tools are a poor fit for general use.
- Use metapackages (
kali-tools-*) instead of cherry-picking — they track dependencies the Kali team already validated. - Keep the lab network isolated (host-only or internal network) so stray scans can't reach production or the public internet.
- Kali is rolling release —
apt full-upgradeweekly. If it breaks, roll back the snapshot. /usr/share/wordlists/has rockyou, seclists, dirb, and more. Installseclistsfor the full set.- For client reporting, pair Kali with
faradayordradisinstead of ad-hoc notes.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Kali Linux 多环境部署方案(Docker/WSL2/VM),满足安全研究人员和 CTF 玩家的实际刚需
- 涵盖从安装、工具链管理到实验环境搭建的完整工作流,具有高度实用价值
亮点
- 触发词精准覆盖 Kali 安装、渗透测试环境搭建、工具链选择等核心场景
- 边界清晰,明确限定于授权测试,避免滥用歧义
亮点
- Step 1-5 分阶段结构清晰,含端到端示例和完整 frontmatter
- 文档组织规范,命令示例详实,便于用户直接执行
亮点
- 强调授权前提、网络隔离、快照回滚等关键安全控制点
- 所有命令基于官方源,参数准确,覆盖主要异常场景
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 36, 41, 54, 55, 56 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 41, 51, 54, 55, 56 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
- www.kali.org
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。