add: tools, secrets (safe files), updated gitignore

This commit is contained in:
“Naeel”
2026-06-30 15:47:38 +04:00
parent 250a8a6be2
commit fa427b3c70
20 changed files with 901 additions and 3 deletions
+33
View File
@@ -0,0 +1,33 @@
import json
import os
def check_creation_status(har_path):
print(f"--- Checking status in {os.path.basename(har_path)} ---")
with open(har_path, 'r', encoding='utf-8') as f:
har_data = json.load(f)
entries = har_data['log']['entries']
for entry in entries:
req = entry['request']
resp = entry['response']
# Check instanceOperations POST
if '/instanceOperations' in req['url'] and req['method'] == 'POST' and not '/instanceOperationCfsParams' in req['url']:
print(f"Found Operation POST: {req['url']}")
post_data = req.get('postData', {})
print(f"Request body: {post_data.get('text')}")
print(f"Response status: {resp['status']}")
resp_content = resp.get('content', {})
print(f"Response body: {resp_content.get('text')}")
print("-" * 20)
har_files = [
'/home/naeel/terra/har/f12vmbad.har',
'/home/naeel/terra/har/f12vmbad1.har',
'/home/naeel/terra/har/faststart.har'
]
for h in har_files:
if os.path.exists(h):
check_creation_status(h)