KeyHunter parser v10 + 18 scanners + tests (synthetic fixtures only, no keys/db/tokens)

This commit is contained in:
2026-10-20 07:50:07 +00:00
commit a5008d837b
178 changed files with 36909 additions and 0 deletions

22
feed_tokens_fast.py Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
"""Merge harvested PATs into gh_tokens.txt — no live verification (TokenPool retires dead ones)."""
import json
POOL = r'C:\Users\User\tmp\gh_pats_pool.json'
TOKENS = r'C:\Users\User\Desktop\keyhunter\gh_tokens.txt'
pool = json.load(open(POOL, encoding='utf-8'))
existing = []
try:
for l in open(TOKENS, encoding='utf-8'):
l = l.strip()
if l and not l.startswith('#'):
existing.append(l)
except FileNotFoundError:
pass
alltok = list(dict.fromkeys(existing + [a['pat'] for a in pool]))
with open(TOKENS, 'w', encoding='utf-8') as f:
f.write('# GitHub PAT pool — harvested from account farm\n')
for t in alltok:
f.write(t + '\n')
print(f'pool={len(pool)} total_written={len(alltok)}')