Token导航 LogoToken导航

Agent Skill · 研究检索

linux-penetration-testing-fundamentals(Linux 渗透测试基础)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

linux-penetration-testing-fundamentals 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 10,269。

总安装 12,852周安装 314GitHub Stars 28下载 2,975核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:linux-penetration-testing-fundamentals(Linux 渗透测试基础)
来源仓库:https://github.com/zebbern/secops-cli-guides
仓库路径:skills/linux-penetration-testing-fundamentals
安装命令:
npx skills add https://github.com/zebbern/secops-cli-guides --skill 'Linux Penetration Testing Fundamentals'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zebbern/secops-cli-guides --skill 'Linux Penetration Testing Fundamentals'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助设计自动化测试用例和回归验证流程。linux-penetration-testing-fundamentals 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合编写单元测试、端到端测试或根据日志定位问题。需确认项目测试框架和运行命令,避免误改真实逻辑。

涉及浏览器或外部服务时应区分模拟环境与生产环境。安装前建议核验仓库维护状态及测试数据安全性。

来源仓库内路径:skills/linux-penetration-testing-fundamentals

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zebbern/secops-cli-guides --skill 'Linux Penet…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

linux-penetration-testing-fundamentals 怎么安装?

在终端执行 npx skills add https://github.com/zebbern/secops-cli-guides --skill 'Linux Penetration Tes…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

linux-penetration-testing-fundamentals 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

linux-penetration-testing-fundamentals 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/zebbern/secops-cli-guides --skill 'Linux Penetration Testing Fundamentals' 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

linux-penetration-testing-fundamentals 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

linux-penetration-testing-fundamentals 用的人多吗?

公开数据是累计安装 12,852 次,近一周安装 314 次,下载 2,975 次,GitHub 28 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

linux-penetration-testing-fundamentals 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
linux-penetration-testing-fundamentals

Linux 渗透测试基础 · 本页

12,85228执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Linux Penetration Testing Fundamentals

Purpose

Master essential Linux skills for penetration testing including navigation, file manipulation, text processing, networking, process management, permissions, and bash scripting. Linux is the preferred platform for security professionals due to its flexibility, transparency, and extensive tool support.

Prerequisites

Required Environment

  • Linux-based system (Kali Linux recommended)
  • Terminal access
  • Basic understanding of operating systems

Required Knowledge

  • Basic command-line concepts
  • File system understanding
  • Networking fundamentals

Outputs and Deliverables

  1. System Navigation - Efficient directory and file operations
  2. Text Processing - Data extraction and manipulation
  3. Network Configuration - Interface and DNS management
  4. Automation Scripts - Custom bash tools

Core Workflow

Phase 1: Basic Navigation Commands

Essential commands for system navigation:

# Identify current location and user
pwd                     # Print working directory
whoami                  # Current user
id                      # User ID, group ID, groups

# Change directories
cd /path/to/directory   # Absolute path
cd ..                   # Parent directory
cd ~                    # Home directory
cd -                    # Previous directory

# List contents
ls                      # Basic listing
ls -l                   # Detailed listing
ls -la                  # Include hidden files
ls -lah                 # Human-readable sizes

# Get help
man <command>           # Manual page
<command> --help        # Help text
<command> -h            # Short help

Phase 2: File Operations

Create, copy, move, and delete files:

# Create files and directories
touch newfile.txt       # Create empty file
mkdir new_directory     # Create directory
mkdir -p path/to/dir    # Create nested directories

# Copy files
cp file.txt copy.txt    # Copy file
cp -r dir1 dir2         # Copy directory recursively
cp file.txt /dest/      # Copy to destination

# Move/rename files
mv file.txt newname.txt # Rename file
mv file.txt /dest/      # Move to destination
mv dir1 dir2            # Rename directory

# Remove files
rm file.txt             # Remove file
rm -r directory/        # Remove directory recursively
rm -rf directory/       # Force remove (dangerous!)
rmdir empty_directory/  # Remove empty directory

# View file contents
cat file.txt            # Display entire file
less file.txt           # Scrollable view
more file.txt           # Page-by-page view
head -n 20 file.txt     # First 20 lines
tail -n 20 file.txt     # Last 20 lines
tail -f logfile.log     # Follow log file

Phase 3: Searching and Finding

Locate files and search content:

# Find files
find / -name "filename" 2>/dev/null           # Find by name
find / -type f -name "*.txt" 2>/dev/null      # Find text files
find / -type d -name "logs" 2>/dev/null       # Find directories
find / -size +100M 2>/dev/null                # Files over 100MB
find / -mtime -7 2>/dev/null                  # Modified in 7 days
find / -perm -4000 2>/dev/null                # SUID files (privesc)
find / -user root -perm -4000 2>/dev/null     # Root SUID files

# Locate (uses database)
locate filename         # Fast search (database-based)
updatedb                # Update locate database

# Find binaries
which nmap              # Binary location in PATH
whereis nmap            # Binary, source, man page

# Search file contents
grep "pattern" file.txt              # Search in file
grep -r "pattern" /path/             # Recursive search
grep -i "pattern" file.txt           # Case insensitive
grep -v "pattern" file.txt           # Invert match
grep -n "pattern" file.txt           # Show line numbers
grep -E "regex|pattern" file.txt     # Extended regex

Phase 4: Text Manipulation

Process and transform text:

# Display with line numbers
nl file.txt             # Number lines
cat -n file.txt         # Number all lines

# Extract and cut
cut -d':' -f1 /etc/passwd      # First field, colon delimiter
cut -d',' -f1,3 file.csv       # Fields 1 and 3
awk '{print $1}' file.txt      # Print first column
awk -F: '{print $1}' /etc/passwd  # Custom delimiter

# Sort and unique
sort file.txt           # Sort lines
sort -r file.txt        # Reverse sort
sort -n file.txt        # Numeric sort
uniq file.txt           # Remove duplicates
sort file.txt | uniq    # Sort then unique
sort file.txt | uniq -c # Count occurrences

# Search and replace
sed 's/old/new/g' file.txt      # Replace all occurrences
sed -i 's/old/new/g' file.txt   # In-place replacement
sed -n '5,10p' file.txt         # Print lines 5-10
sed '1,5d' file.txt             # Delete lines 1-5

# Word count
wc file.txt             # Lines, words, bytes
wc -l file.txt          # Count lines
wc -w file.txt          # Count words

# Piping and redirection
command1 | command2     # Pipe output
command > file.txt      # Redirect to file (overwrite)
command >> file.txt     # Append to file
command 2>/dev/null     # Discard errors
command 2>&1            # Stderr to stdout

Phase 5: Permissions and Ownership

Manage file access control:

# View permissions
ls -l file.txt          # Show permissions
# Format: -rwxrwxrwx (type, owner, group, others)

# Change permissions (numeric)
chmod 755 file.txt      # rwxr-xr-x
chmod 644 file.txt      # rw-r--r--
chmod 777 file.txt      # rwxrwxrwx (dangerous!)
chmod 600 file.txt      # rw------- (secure)

# Change permissions (symbolic)
chmod +x file.txt       # Add execute for all
chmod u+x file.txt      # Add execute for owner
chmod g+w file.txt      # Add write for group
chmod o-r file.txt      # Remove read for others
chmod u=rw,g=r file.txt # Explicit assignment

# Change ownership
chown user file.txt           # Change owner
chown user:group file.txt     # Change owner and group
chown -R user directory/      # Recursive ownership
chgrp group file.txt          # Change group only

# Special permissions
chmod 4755 file.txt     # SUID (setuid)
chmod 2755 directory    # SGID (setgid)
chmod 1755 directory    # Sticky bit

Permission values:

  • 4 = Read (r)
  • 2 = Write (w)
  • 1 = Execute (x)

Phase 6: Network Management

Configure and analyze network settings:

# View network interfaces
ifconfig                # All interfaces (legacy)
ip addr                 # Modern alternative
ip link                 # Interface status

# Change IP address
ifconfig eth0 192.168.1.100 netmask 255.255.255.0
ip addr add 192.168.1.100/24 dev eth0

# Spoof MAC address
ifconfig eth0 down
ifconfig eth0 hw ether 00:11:22:33:44:55
ifconfig eth0 up
# Or: macchanger -r eth0

# DHCP client
dhclient eth0           # Request IP from DHCP

# DNS resolution
dig example.com         # DNS lookup
dig example.com mx      # Mail servers
dig example.com ns      # Name servers
nslookup example.com    # Alternative lookup

# Change DNS server
echo "nameserver 8.8.8.8" > /etc/resolv.conf

# Host file mapping
nano /etc/hosts
# Add: 192.168.1.100 fake.domain.com

# Test connectivity
ping -c 4 target.com    # 4 ping packets
traceroute target.com   # Trace route
netstat -tuln           # Listening ports
ss -tuln                # Modern alternative

Phase 7: Process Management

Control running processes:

# View processes
ps                      # Current session
ps aux                  # All processes, all users
ps aux | grep nmap      # Filter by name
top                     # Interactive process view
htop                    # Enhanced interactive view

# Process control
kill <PID>              # Terminate process
kill -9 <PID>           # Force kill
killall processname     # Kill by name
pkill -f pattern        # Kill by pattern

# Background processes
command &               # Run in background
jobs                    # List background jobs
fg %1                   # Bring job 1 to foreground
bg %1                   # Resume job 1 in background
Ctrl+Z                  # Suspend current process

# Priority management
nice -n 10 command      # Start with lower priority
nice -n -10 command     # Start with higher priority (root)
renice 10 -p <PID>      # Change running process priority

Phase 8: Software Management

Install and manage packages:

# Debian/Ubuntu (apt)
apt update              # Update package lists
apt upgrade             # Upgrade packages
apt install <package>   # Install package
apt remove <package>    # Remove package
apt purge <package>     # Remove with config files
apt search <keyword>    # Search packages
apt-cache show <package> # Package info

# RHEL/CentOS (yum/dnf)
yum update              # Update packages
yum install <package>   # Install package
yum remove <package>    # Remove package
dnf install <package>   # Modern alternative

# From source/GitHub
git clone https://github.com/user/repo.git
cd repo
pip install -r requirements.txt
python setup.py install

Phase 9: Bash Scripting Basics

Create automation scripts:

#!/bin/bash
# Basic script structure

# Shebang - tells system to use bash
#!/bin/bash

# Comments
# This is a comment

# Variables
name="World"
echo "Hello, $name"

# User input
echo "Enter target IP:"
read target
echo "Scanning $target"

# Command substitution
current_date=$(date)
ip_address=$(hostname -I)

# Conditional statements
if [ -f /etc/passwd ]; then
    echo "File exists"
else
    echo "File not found"
fi

# Loops
for i in 1 2 3 4 5; do
    echo "Number: $i"
done

for file in *.txt; do
    echo "Processing: $file"
done

# While loop
while [ $count -lt 10 ]; do
    echo $count
    count=$((count + 1))
done

Example scanner script:

#!/bin/bash
# Simple network scanner

echo "Enter target network (e.g., 192.168.1):"
read network

echo "Scanning $network.0/24..."

for ip in {1..254}; do
    ping -c 1 -W 1 $network.$ip > /dev/null 2>&1
    if [ $? -eq 0 ]; then
        echo "[+] Host alive: $network.$ip"
    fi
done &

echo "Scan running in background"

Phase 10: Environment Variables

Manage system environment:

# View variables
env                     # All environment variables
echo $PATH              # Specific variable
set | more              # All variables

# Set variables (session)
export MYVAR="value"    # Set and export
PATH=$PATH:/new/path    # Append to PATH

# Permanent variables
echo 'export MYVAR="value"' >> ~/.bashrc
source ~/.bashrc        # Reload

# Important variables
$HOME                   # Home directory
$PATH                   # Executable search path
$USER                   # Current username
$SHELL                  # Current shell
$PWD                    # Current directory
$HISTSIZE               # History size

Quick Reference

Essential Commands

CommandPurpose
pwdPrint working directory
ls -laList all files detailed
cdChange directory
catDisplay file contents
grepSearch text
findFind files
chmodChange permissions
ps auxList processes
killTerminate process

File Permissions

ValuePermission
7rwx
6rw-
5r-x
4r--
0---

Network Commands

CommandPurpose
ifconfigInterface config
ip addrShow IP addresses
netstat -tulnListening ports
digDNS lookup
pingTest connectivity

Constraints and Limitations

Permission Requirements

  • Many commands require root/sudo
  • File access depends on permissions
  • Network operations may need elevated privileges

Best Practices

  • Always backup before modifying system files
  • Use test environments for learning
  • Document changes made to systems
  • Understand commands before executing

Troubleshooting

Permission Denied

Solutions:

  1. Use sudo for elevated privileges
  2. Check file permissions: ls -la
  3. Verify user group membership
  4. Check for immutable attributes

Command Not Found

Solutions:

  1. Check if package is installed
  2. Verify PATH includes command location
  3. Use full path to binary
  4. Install missing package

平台分布

Codex

39.52%
按下载量换算1,176

Claude

28.84%
按下载量换算858

Cursor

17.44%
按下载量换算519

Gemini CLI

8.97%
按下载量换算267

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/zebbern/secops-cli-guides --skill 'Linux Penetration Testing Fundamentals' 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills