14 lines
433 B
Bash
Executable File
14 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
# V79 orphans-audit agent script
|
|
curl -sk --max-time 3 'http://127.0.0.1:5890/api/wevia-pages-registry.php?action=orphans' -H 'Host: weval-consulting.com' 2>/dev/null | python3 -c "
|
|
import sys, json
|
|
try:
|
|
d = json.load(sys.stdin)
|
|
print(f'orphans:{d[\"count\"]}')
|
|
top5 = list(d['orphans'].items())[:5]
|
|
for name, meta in top5:
|
|
print(f' {meta[\"class\"]}: {name}')
|
|
except:
|
|
print('orphans:ERR')
|
|
"
|