import requests

while True:
    print("""
 #############################################
#                                             #
#      Server Admin Panel Finder v1.0         #
#                                             # 
#         Coded by Emre Türkoğlu         #
#                                             #
 #############################################
    """)

    site = input("siteyi gir:")
    url = "https://api.viewdns.info/reverseip/?host="
    api_key = "&apikey=6082fca5a0251ed2b96b84620dcfedbdb1fcfba7&output=json"
    son_url = url + site + api_key
    responsec = requests.get(son_url)
    json_data = responsec.json()
    domain_liste = json_data["response"]["domains"]
    site_sayisi = json_data["response"]["domain_count"]
    son_liste = []

    i = 0
    dosya = open("./panel.txt", "r")
    a = dosya.read().split("\n")
    a.pop()
    while i < int(site_sayisi):
        for z in a:
            son_liste.append("http://www." + domain_liste[i]['name'] + z)
        i += 1
    for i in son_liste:
            try:
                req = requests.get(i)
                if req.status_code == 200 and ("unuttunuz" not in req.text) and ("Lost" not in req.text):
                    print(son_liste.index(i)+1,i, "panel bulundu!!!!!")
                elif req.status_code == 200 and "unuttunuz" in req.text:
                    print(son_liste.index(i)+1,i, "wordpress")
                elif req.status_code == 200 and "Lost" in req.text:
                    print(son_liste.index(i)+1,i, "wordpress")
                else:
                    print(son_liste.index(i)+1,i, "bulunamadı")
            except:
                    print(son_liste.index(i)+1,i, "bağlantı yok")
                    continue
            finally:
                    dosya.close()
