- Katılım
- 5 Eki 2024
- Mesajlar
- 2,941
- Beğeniler
- 1,132
- Yaş
- 15
- İletişim

l0g Searcher Ne İşe Yarar
l0g Searcher, Seçtiğiniz txt logundan istediğiniz satırları ayıklayarak combolist oluşturmanıza yardımcı olan bir programdır
== Video ==
Linkler
Exe Versiyon:
Python:
(Open Source OIduğu İçin VT Eklemedim)
İyi Kullanımlar
l0g Searcher, Seçtiğiniz txt logundan istediğiniz satırları ayıklayarak combolist oluşturmanıza yardımcı olan bir programdır
== Video ==
Python:
import os
import re
from tkinter import Tk, filedialog, messagebox
def select_file():
root = Tk()
root.withdraw()
file_path = filedialog.askopenfilename(
title="Lütfen bir TXT dosyası seçin",
filetypes=[("Text files", "*.txt"), ("All files", "*.*")]
)
return file_path
def select_save_location(keyword):
root = Tk()
root.withdraw()
default_filename = f"{keyword}.txt"
save_path = filedialog.asksaveasfilename(
title="Kaydetme Yolu Seçin",
initialfile=default_filename,
filetypes=[("Text files", "*.txt"), ("All files", "*.*")]
)
return save_path
def search_keyword_in_file(file_path, keyword):
matching_lines = []
try:
with open(file_path, 'r', encoding='utf-8') as file:
for line in file:
if keyword.lower() in line.lower():
matching_lines.append(line.strip())
except Exception as e:
messagebox.showerror("Hata", f"Dosya okunurken bir hata oluştu: {e}")
return matching_lines
def clean_urls(lines):
cleaned_lines = []
url_pattern = re.compile(r'^((https?:\/\/)?([\w\-]+\.)+[\w\-]+(\/[\w\-\.]*)*)(\s*:\s*)?')
for line in lines:
cleaned_line = url_pattern.sub('', line)
cleaned_lines.append(cleaned_line.strip())
return cleaned_lines
def main():
print("CHEATGLOBAL L0G SEARCHER PYTHON")
print("--------------------------------------------")
file_path = select_file()
if not file_path:
print("Dosya seçimi iptal edildi.")
return
keyword = input("Site Adı (örn: netflix.com): ").strip()
if not keyword:
messagebox.showerror("Hata", "Lütfen Site Adı Girin!")
return
matching_lines = search_keyword_in_file(file_path, keyword)
if not matching_lines:
print("Siteyle Eşleşen Satır Bulunamadı, URL yi kontrol edin veya l0g değiştirin.")
return
print(f"Bulunan Satır Sayısı: {len(matching_lines)}")
print("\nURL Temizlemek İstiyor musunuz?")
print("1. Evet")
print("2. Hayır")
choice = input("Seçiminiz (1/2): ")
while choice not in ['1', '2']:
choice = input("Geçersiz seçim! Lütfen 1 veya 2 girin: ")
if choice == '1':
cleaned_lines = clean_urls(matching_lines)
result_lines = cleaned_lines
else:
result_lines = matching_lines
save_path = select_save_location(keyword)
if not save_path:
print("Kaydetme işlemi iptal edildi.")
return
try:
with open(save_path, 'w', encoding='utf-8') as file:
file.write('\n'.join(result_lines))
messagebox.showinfo("Başarılı", f"Sonuçlar başarıyla kaydedildi:\n{save_path}")
print("\nTemizlenmiş Satırlar Örneği:")
for i, line in enumerate(result_lines[:5], 1):
print(f"{i}. {line}")
if len(result_lines) > 5:
print(f"...ve {len(result_lines)-5} satır daha")
except Exception as e:
messagebox.showerror("Hata", f"Dosya kaydedilirken bir hata oluştu: {e}")
if __name__ == "__main__":
main()
Linkler
Exe Versiyon:
Linkleri görebilmek için kayıt olmanız gerekmektedir
Python:
Linkleri görebilmek için kayıt olmanız gerekmektedir
(Open Source OIduğu İçin VT Eklemedim)
İyi Kullanımlar
Son düzenleme: