scanpay-cli
v0.3.0
Published
Code security scanner with x402 v2 micropayments — Python + JS/TS, /usr/bin/bash.10/scan
Maintainers
Readme
scanpay
Code security scanner with x402 v2 micropayments — scan Python/JS/TS for vulnerabilities before execution.
Install
npm install -g scanpayUsage
# Scan a file
scanpay scan --file dangerous.py --lang python
# Scan inline code
scanpay scan --code "eval(userInput)" --lang python
# Scan from stdin
echo "eval(userInput)" | scanpay scan --lang python
# Check API health
scanpay health
# List available products
scanpay productsHow It Works
- ScanPay sends your code to the ScanPay API
- API returns
402 Payment Requiredwith Solana payment details - Pay 0.0007 SOL (~$0.10) to the merchant wallet
- Retry with payment proof → get vulnerability report
Detected Vulnerabilities
Python
eval()/exec()— code injectionsubprocess(shell=True)— command injectionpickle.loads()— deserializationos.system()— command injection- SQL injection, path traversal, hardcoded credentials
JavaScript/TypeScript
eval()— code injectioninnerHTML— XSSdocument.write()— XSSnew Function()— code injection- Prototype pollution, SQL injection
License
MIT
