import requests import time import os # Daftar TLD umum yang mencakup semua TLD (Top-Level Domain) dan zona khusus 'h' tld_list = [ "com", "net", "org", "edu", "gov", "mil", "int", "co", "id", "ac.id", "co.id", "sch.id", "go.id", "or.id", "mil.id", "my", "sg", "uk", "us", "au", "jp", "de", "fr", "ru", "cn", "za", "br", "in", "ar", "ca", "kr", "es", "it", "nl", "se", "no", "fi", "dk", "ie", "tr", "th", "vn", "hk", "tw", "mx", "nz", "sa", "ae", "ua", "pl", "pt", "gr", "cz", "hu", "ro", "bg", "si", "sk", "by", "md", "hr", "ba", "rs", "mk", "me" # Tambahkan lebih banyak TLD jika diperlukan ] # Zona khusus 'h' special_zones = ['h'] # Contoh ID pengguna Haxor dan Defacer yang ingin Anda grab haxor_ids = ['user_id1', 'user_id2'] # Ganti dengan ID nyata defacer_ids = ['defacer_id1', 'defacer_id2'] # Ganti dengan ID nyata def grab_domains_from_zone(zone_name): url = f"https://api.zone-xsec.com/grab?zone={zone_name}" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" } try: response = requests.get(url, headers=headers, timeout=15) response.raise_for_status() domains = response.json() return domains except requests.exceptions.RequestException as e: print(f"Error fetching data for {zone_name}: {e}") return None def grab_domains_by_haxor_id(haxor_id): url = f"https://api.haxorid.com/grab?user={haxor_id}" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" } try: response = requests.get(url, headers=headers, timeout=15) response.raise_for_status() domains = response.json() return domains except requests.exceptions.RequestException as e: print(f"Error fetching data for Haxor ID {haxor_id}: {e}") return None def grab_domains_by_defacer_id(defacer_id): url = f"https://api.defacer.id/grab?user={defacer_id}" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" } try: response = requests.get(url, headers=headers, timeout=15) response.raise_for_status() domains = response.json() return domains except requests.exceptions.RequestException as e: print(f"Error fetching data for Defacer ID {defacer_id}: {e}") return None def save_domains_to_file(domains, identifier): filename = f"{identifier}_domains.txt" with open(filename, "w") as file: for domain in domains: file.write(f"{domain}\n") print(f"Domains for {identifier} saved to {filename}") def display_ls_plus(): print("\nMenampilkan file di direktori saat ini:") os.system("ls -l") # Menampilkan file dengan detail di direktori saat ini def main(): print("Zone-Xsec, Haxor ID, and Defacer ID Domain Grabber for All TLDs and Special Zones") print("\nPilih opsi grabber:") print("1. Grab berdasarkan TLD umum") print("2. Grab berdasarkan zona khusus 'h'") print("3. Grab berdasarkan Haxor ID") print("4. Grab berdasarkan Defacer ID") choice = input("Masukkan nomor pilihan Anda (1-4): ") if choice == '1': tld_choice = input("Masukkan TLD yang ingin Anda grab (misal: com, net, id): ") if tld_choice in tld_list: domains = grab_domains_from_zone(tld_choice) if domains: save_domains_to_file(domains, tld_choice) else: print(f"TLD {tld_choice} tidak ditemukan di daftar.") elif choice == '2': zone_choice = input("Masukkan zona khusus 'h' yang ingin Anda grab: ") if zone_choice in special_zones: domains = grab_domains_from_zone(zone_choice) if domains: save_domains_to_file(domains, zone_choice) else: print(f"Zona {zone_choice} tidak ditemukan.") elif choice == '3': haxor_choice = input("Masukkan Haxor ID yang ingin Anda grab: ") if haxor_choice in haxor_ids: domains = grab_domains_by_haxor_id(haxor_choice) if domains: save_domains_to_file(domains, haxor_choice) else: print(f"Haxor ID {haxor_choice} tidak ditemukan di daftar.") elif choice == '4': defacer_choice = input("Masukkan Defacer ID yang ingin Anda grab: ") if defacer_choice in defacer_ids: domains = grab_domains_by_defacer_id(defacer_choice) if domains: save_domains_to_file(domains, defacer_choice) else: print(f"Defacer ID {defacer_choice} tidak ditemukan di daftar.") else: print("Pilihan tidak valid.") # Tampilkan ls+ setelah grab selesai display_ls_plus() if __name__ == "__main__": main()