---
name: php186-skill-80951
description: "提供用于检测 API 密钥、信用卡、邮箱、SSN、电话号码和 IP 等敏感数据的模式，以进行授权安全测试与验证。"
---

# Pattern Matching

## SecLists Pattern-Matching

 

## Description

 

Sensitive data patterns for security testing: API keys, credit cards, emails, SSNs, phone numbers, IPs, and more. Use for data discovery and validation.

 

**Source:** SecLists/Pattern-Matching **Repository:** https://github.com/danielmiessler/SecLists **License:** MIT

 

## When to Use This Skill

 

Use this skill when you need:

 

- API key detection in code/logs
- Credit card validation testing
- Email pattern matching
- IP address discovery
- SSN format validation
- Phone number pattern testing

 

**⚠️ IMPORTANT:** Only use for authorized security testing, bug bounty programs, CTF competitions, or educational purposes.

 

## Key Files in This Skill

 

- ` api-keys.txt - API key patterns `
- ` credit-cards.txt - Credit card formats `
- ` email-addresses.txt - Email patterns `
- ` ip-addresses.txt - IP address patterns `
- ` ssn.txt - Social Security Number patterns `
- ` phone-numbers.txt - Phone number formats `

 

## Usage Example

 

```
# Access files from this skill
import os

# Example: Load patterns/payloads
skill_path = "references/Pattern-Matching"

# List all available files
for root, dirs, files in os.walk(skill_path):
    for file in files:
        if file.endswith('.txt'):
            filepath = os.path.join(root, file)
            print(f"Found: {filepath}")
            
            # Read file content
            with open(filepath, 'r', errors='ignore') as f:
                content = f.read().splitlines()
                print(f"  Lines: {len(content)}")
```

 

## Security & Ethics

 

### Authorized Use Cases ✅

 

- Authorized penetration testing with written permission
- Bug bounty programs (within scope)
- CTF competitions
- Security research in controlled environments
- Testing your own systems
- Educational demonstrations

 

### Prohibited Use Cases ❌

 

- Unauthorized access attempts
- Testing without permission
- Malicious activities
- Privacy violations
- Any illegal activities

 

## Complete SecLists Collection

 

This is a curated subset of SecLists. For the complete collection:

 

- **Full repository:** https://github.com/danielmiessler/SecLists
- **Size:** 4.5 GB with 6,000+ files
- **All categories:** Passwords, Usernames, Discovery, Fuzzing, Payloads, Web-Shells, Pattern-Matching, AI, Miscellaneous

 

**Generated by Skill Seeker** | SecLists Pattern-Matching Collection **License:** MIT - Use responsibly with proper authorization
