Skip to content

Conversation

@txmyer-dev
Copy link

Summary

  • Replace shell-interpolated execSync calls with execFileSync using argument arrays
  • Replace shell-interpolated curl with native fetch() API
  • Replace Bun's $ template shell commands with execFile and fs.mkdir
  • Add input validation for WHOIS queries to reject dangerous characters

Files Changed

  • Packs/pai-hook-system/src/hooks/UpdateTabTitle.hook.ts
  • Packs/pai-recon-skill/src/tools/WhoisParser.ts
  • Packs/pai-recon-skill/src/tools/BountyPrograms.ts

Test plan

  • Verify kitty tab title updates still work
  • Verify voice notifications still work
  • Verify WHOIS queries work for valid domains
  • Verify WHOIS rejects malicious input like ; rm -rf /

🤖 Generated with Claude Code

Replace shell-interpolated execSync calls with safer alternatives:
- UpdateTabTitle: Use execFileSync with argument arrays for kitty/kitten
- UpdateTabTitle: Use fetch() instead of curl for voice notifications
- UpdateTabTitle: Write escape sequences directly to stderr
- WhoisParser: Use execFile with input validation for whois queries
- BountyPrograms: Use fs.mkdir instead of shell mkdir

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant