← 返回
未分类 中文

Pentest Workbench

Comprehensive offensive security workflow for bug bounty, vulnerability assessment, penetration testing, and exploitation. Use when performing security testi...
全面进攻安全流程,涵盖漏洞赏金、漏洞评估、渗透测试与利用,适用于安全测试。
mamuaminu mamuaminu 来源
未分类 clawhub v1.0.0 1 版本 99873.4 Key: 无需
★ 1
Stars
📥 769
下载
💾 0
安装
1
版本
#latest

概述

Pentest Workbench

Quick Start

  1. Define scope — target, rules of engagement, goals
  2. Recon — passive OSINT, network enumeration
  3. Identify — find vulnerabilities, misconfigs, weak points
  4. Exploit — leverage findings with appropriate technique
  5. Document — record steps, evidence, impact, remediation

Core Workflow

Phase 1: Recon & Enumeration

  • Network OSINT: Use nmap, masscan, rustscan for port discovery
  • Passive OSINT: Subdomain enum, WHOIS, Shodan, Censys, Google dorking
  • Web recon: Dirbuster, ffuf, Burp Suite crawler
  • For vulnerable targets: Netcat manual command probing first

Tools from linked repos:

  • netstalking-osint — automated OSINT recon workflows
  • Pentest-Tools (40+ categories) — scanner/framework discovery, network_enum

Phase 2: Vulnerability Analysis

  • Web: WPScan for WordPress, sqlmap for SQLi, Burp for auth bypass
  • Network: nmap NSE scripts, Metasploit, searchsploit
  • Binary: IDA/Ghidra for RE, checksec for mitigations
  • Config reviews: weak permissions, default creds, exposed secrets

Phase 3: Exploitation

Buffer Overflow (vulnserver pattern):

  1. Send oversized input to identify crash point
  2. Control EIP with offset measurement
  3. Find stable jump (JMP ESP / call esp)
  4. Generate shellcode (msfvenom / custom)
  5. Execute with proper alignment

Web:

  • SQLi → sqlmap or manual union/boolean
  • XSS → Beef/XSS Hunter
  • RCE → reverse shell via pentest-tools

Privesc (GTFOBins):

# Check sudo/suid binaries
sudo -l
find / -perm -4000 2>/dev/null

# Shell escape from restricted editor
:!/bin/bash

AD Attacks (Pentest-Tools):

  • Kerberoasting, AS-REP roasting, SMB relay
  • BloodHound/Sharphound enum → Golden/DFSRM

Phase 4: Post-Exploitation

  • Cowrie honeypot: analyze attacker sessions for TTPs
  • Privilege escalation: kernel exploits, sudo abuse, service misconfigs
  • Persistence: scheduled tasks, services, SSH keys
  • Lateral movement: PsExec, WMI, SMB, Pass-the-Hash

Phase 5: Documentation

  • Steps reproducible by another tester
  • Evidence: screenshots, packet captures, log output
  • Impact: CVSS score, business risk
  • Remediation: specific, actionable fixes

Key References

  • Binary exploitation: See references/buffer-overflow.md (vulnserver anatomy, exploit dev)
  • Privesc: See references/privesc.md (GTFOBins/LOLBAS, Linux/Windows escalation)
  • Tool inventory: See references/tools-inventory.md (all linked tools catalogued)
  • pwn.college: CTF exercises for memory corruption, ROP, kernel fundamentals

Exploit Dev (vulnserver)

Vulnserver runs on port 9999. Vulnerable commands:

CommandTrigger FunctionBuffer SizeOverflow Offset
--------------------------------------------------------
TRUNFunction32000~2003 (EIP at ~2007)
GMONFunction32000Similar to TRUN
KSTETFunction260~64
GTERFunction1140~144
LTERFunction32000Via transformation
HTERFunction41000Hex-encoded

Key insight: essfunc.dll EssentialFunc10-14 also use strcpy into small buffers (140, 60, 2000, 2000, 1000).

Exploit strategy:

  1. Find offset with pattern_create / mona.py
  2. Confirm EIP control
  3. Locate or craft a ROP chain if ASLR/DEP present
  4. Generate alphanumeric shellcode if bad chars restrict ASCII
  5. Use egghunter if space is small

Tool Quick Ref

ToolPurposeKey Command
----------------------------
nmapPort enumnmap -sCV -p- -T4 target
Burp SuiteWeb testingProxy, Repeater, Intruder
sqlmapSQL injectionsqlmap -r req.txt --batch
msfvenomShellcode genmsfvenom -p linux/x64/shell_tcp LHOST=x R
CrackMapExecAD attackscme smb target -u user -p pass
Evil-WinRMRemote shellevil-winrm -i target -u user -p pass

Mindset

  • Methodical > flashy — good recon beats brute force
  • Always document as you go — screenshot everything
  • Understand the payload — not just "it works"
  • Think like defender — what would stop this attack?

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 46 📥 29,507
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,883
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,603