12 lines
293 B
Bash
12 lines
293 B
Bash
#!/bin/bash
|
|
cat /var/www/html/api/weval-passwords.json 2>/dev/null | python3 -c "
|
|
import json, sys
|
|
try:
|
|
d = json.load(sys.stdin)
|
|
for u, v in d.items():
|
|
pw = v.get('password', '')
|
|
print(f'user={u} pw_len={len(pw)} pw_starts={pw[:3]}...')
|
|
except Exception as e:
|
|
print('err:', e)
|
|
"
|