Linux Penetration Testing Fundamentals
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "learn Linux for pentesting", "use Linux commands for hacking", "manage Linux processes", "manipulate text in…
Об этом скилле
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
- System Navigation - Efficient directory and file operations
- Text Processing - Data extraction and manipulation
- Network Configuration - Interface and DNS management
- 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
Установить Linux Penetration Testing Fundamentals в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Linux Penetration Testing Fundamentals?
This skill should be used when the user asks to "learn Linux for pentesting", "use Linux commands for hacking", "manage Linux processes", "manipulate text in Linux", "write bash scripts", or "configure Linux networking". It provides comprehensive Linux fundamentals for penetration testing.
Как установить скилл Linux Penetration Testing Fundamentals?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Linux Penetration Testing Fundamentals запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic