Merhabalar Ben CommandBEY, Bugün kendi geliştirdiğim, sitelerin Wordpress olduğunu bulan araca bakacağız
Mantığı Nedir
Wordlist verdiğimiz sitelerin sonuna 'wp-login.php' ekler eğer yanıt kodu 200 ise bir dosya'ya kaydeder.
Avantajları Neledir
2. Hızlı bir şekilde wordpress sitesi olup olmadığını anlarız
Kod Hali;
Python:
from colorama import Fore
from os import system
import platform
from sys import exit
import requests
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
dosya = 'site.txt'
sites = []
bulunan = 0
def baslangic():
osname = platform.system()
if osname == "Windows":
system("cls")
elif osname == "Linux":
system("clear")
try:
with open('site.txt', 'r', encoding='cp1254') as dosyao:
sites.extend(dosyao.read().split())
except FileNotFoundError:
print(Fore.RED + "Dosya Bulunamadı, 'site.txt' Dosyası Olması Lazım..." + Fore.RESET)
except UnicodeDecodeError:
print(Fore.RED + f"{dosya} Dosyasındaki Verileri Okunulamıyor..." + Fore.RESET)
exit()
banner = Fore.BLUE + """
██████ ██████ ███ ███ ███ ███ █████ ███ ██ ██████ ██████ ███████ ██ ██
██ ██ ██ ████ ████ ████ ████ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ████ ██ ██ ████ ██ ███████ ██ ██ ██ ██ ██ ██████ █████ ████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██████ ██ ██ ██ ██ ██ ██ ██ ████ ██████ ██████ ███████ ██
Coded By CommandBEY
""" + Fore.RESET
print(banner)
baslangic()
for urls in sites:
try:
wp = f"{urls}/wp-login.php"
res = requests.get(wp, verify=False, timeout=25)
if res.status_code == 200:
print(Fore.BLUE + f"Bulundu --> {wp}" + Fore.RESET)
with open("bulunan.txt", "a") as dosya:
dosya.write(wp + "\n")
bulunan += 1
else:
print(Fore.RED + f"Bulunamadı --> {urls}" + Fore.RESET)
except requests.exceptions.MissingSchema:
print(Fore.RED + "'site.txt' Dosyasında Siteye Erişilemiyor" + Fore.RESET)
if bulunan > 0:
print(Fore.GREEN + f"\nBulunan Site: {str(bulunan)}" + Fore.RESET)
else:
print(Fore.RED + f"\nHiçbir Site Bulunamadı..." + Fore.RESET)
Araç bizden sadece 'site.txt' adlı dosya istiyor, Bu dosya bizim kontrol ettirmek istediğimiz site olmalıdır
Şuanda bu sitelere tarama yapacak ve sonuçları 'bulundu.txt' dosyasına kaydedecek, Şimdi normal bir tarama yapalım.
Evet, 3 tane buldu 1 tane bulamadı en sonda bulunan sitenin kaç tane olduğunu gösteriyor bu az siteler için gerekmez ancak çok site verirsek lazım olacaktır
Bulunan admin paneliyle birlikte dosyaya kaydetti, Şimdi doğru mu diye bakmak için link'e gidelim
Evet doğru çıktı, Şimdi ise 'site.txt' dosyası yoksa ne diyor ona bakalım
Evet bize dosya bulunamadı hatası verdi, Araç güzel bir şekilde çalışıyor.
Konuyu Okuduğunuz İçin Teşekkür Ederim.
Son düzenleme: