45 lines
1.5 KiB
Python
45 lines
1.5 KiB
Python
import base64, json
|
|
|
|
# Try to decode pWJm
|
|
enc = "pWJm"
|
|
|
|
# Base64
|
|
try:
|
|
dec = base64.b64decode(enc)
|
|
print(f"base64: '{enc}' -> bytes {list(dec)}")
|
|
except:
|
|
print("not base64")
|
|
|
|
# Check Mikhmon encryption in config
|
|
import os
|
|
config_path = r"C:\Users\Admin\dev\Mikhmon Server\mikhmon\include\config.php"
|
|
with open(config_path, 'r') as f:
|
|
content = f.read()
|
|
|
|
# Find Msr line
|
|
for line in content.split('\n'):
|
|
if "'Msr'" in line or "'rm-jogja'" in line:
|
|
print(f"\nConfig line: {line.strip()[:200]}")
|
|
|
|
# Check if there's a Mikhmon config.json or similar
|
|
for root, dirs, files in os.walk(r"C:\Users\Admin\dev\Mikhmon Server"):
|
|
for f in files:
|
|
if f.endswith('.json') or f.endswith('.ini') or f.endswith('.txt'):
|
|
path = os.path.join(root, f)
|
|
size = os.path.getsize(path)
|
|
if size < 100000:
|
|
print(f"\n=== {path} ({size} bytes) ===")
|
|
try:
|
|
with open(path, 'r') as fh:
|
|
for line in fh.read().split('\n')[:5]:
|
|
print(f" {line.strip()[:150]}")
|
|
except:
|
|
print(" (binary)")
|
|
|
|
# Check for any .env or key file
|
|
print("\n=== Searching for MSR key files ===")
|
|
for root, dirs, files in os.walk(r"C:\Users\Admin\dev\Mikhmon Server"):
|
|
for f in files:
|
|
if 'bit' in f.lower() or 'father' in f.lower() or 'msrkey' in f.lower() or 'license' in f.lower() or 'key' in f.lower():
|
|
print(f" {os.path.join(root, f)}")
|