A Swift CLI program that automates user registration on WPScan.com with headless browser testing.
Generates random credentials, fills in the form via agent-browser, and handles cookies, localStorage, and session cleanup automatically — all using Apple frameworks and pure Swift.
- Random first/last name generation
- Timestamp-based email addresses (gmail format)
- Dynamic password creation with special characters
- Custom User-Agent spoofing (Chrome 128 / Windows Edge profile)
- Cookie clearing before and after registration
- localStorage & sessionStorage auto-cleanup via eval
- Full browser session isolation
| Tool | Version |
|---|---|
| Swift | 6.4+ (swiftlang-6.4.0.30.4) |
| macOS | 12.0 (Monterey+) |
| Xcode | Beta (latest) |
| agent-browser | npm i -g agent-browser |
# 1. Install browser automation
npm i -g agent-browser
# 2. Build and run
swift build --configuration release
# or just use swift run
swift run wpscan-registerThe binary is deployed to ~/Applications/wpscan-register on every successful build.
Run the built-in registration flow:
swift run wpscan-register # generates credentials & submits via browser
./wpscan-register # or launch the compiled binary directlyOutput includes generated fields, form actions, and WPScan confirmation status.
api/ ← workspace root
├── CLAUDE.md
├── README.md
├── SESSION_STATE.md
├── Package.swift ← swift-tools-version: 6.0
└── SourceFile.swift (@main enum entry point)
└── Sources/wpscan/ ← modular targets
└── temp/ ← transient files (gitignored)
xcodebuild -scheme wpscan-register \
-configuration Release \
-derivedDataPath .build/DerivedData \
SYMROOT=.build/output
cp -R .build/output/Release/wpscan-register ~/Applications/This follows the Build & Deployment Rules from CLAUDE.md.
- Browser automation via agent-browser
- Random name/email/password generation
- Cookie clearing (before & after)
- Custom User-Agent header spoofing
- Terms of Service checkbox handling
- Configurable test accounts via CLI args
- Confirmation email verification (imap fetch)
- Retry logic for failed submissions