CodesTormer
- 12 Ara 2024
- 98 Mesaj
Aktiflik
Seviye
Deneyim
Herkse Merhaba Bu konumda geliştirdiğim dork scanner aracı kodlarını paylaşıyorum arayüze entegre ettim koullanım kolaylığı açısından istediğniz dorkları alt alta girip sorguyu başlattıktan sonra ilgilli dorkları terayıp tek tek ayrı txt lere kaydeip getirir. Herkese iyi kullanımlar.
Python:
import tkinter as tk
from tkinter import messagebox, ttk
import requests
from bs4 import BeautifulSoup
import urllib.parse
import ctypes
# Tema ve stil için gerekli fonksiyonlar
def apply_dark_mode(root):
"""Modern karanlık tema ayarları"""
# Windows için görsel stil ayarları
try:
ctypes.windll.shcore.SetProcessDpiAwareness(1)
except:
pass
# Modern renk paleti
colors = {
'background_dark': '#121212',
'background_medium': '#1E1E1E',
'accent_primary': '#00FFD1',
'accent_secondary': '#FF6B6B',
'text_primary': '#E0E0E0',
'text_secondary': '#A0A0A0'
}
# Global stil ayarları
style = ttk.Style()
style.theme_use('clam')
# Stil konfigürasyonları
style.configure("TFrame", background=colors['background_dark'])
style.configure("TLabel",
foreground=colors['text_primary'],
background=colors['background_dark'],
font=('Segoe UI', 12)
)
style.configure("TButton",
foreground=colors['background_dark'],
background=colors['accent_primary'],
font=('Segoe UI', 12, 'bold')
)
return colors
def get_search_results(dork):
url = f"https://www.google.com/search?q={dork}&num=100"
try:
response = requests.get(url)
response.raise_for_status()
soup = BeautifulSoup(response.text, 'html.parser')
return soup.find_all('a')
except requests.RequestException as e:
messagebox.showerror("Hata", f"Arama sırasında bir hata oluştu: {e}")
return []
def extract_urls(links):
output_urls = []
for link in links:
url = link.get('href')
if url.startswith('/url?q='):
url = url.split('/url?q=')[1].split('&sa=')[0]
url = urllib.parse.unquote(url)
output_urls.append(url)
return output_urls
def search_and_save():
dorks = dork_text.get("1.0", tk.END).splitlines()
if not dorks:
messagebox.showinfo("Bilgi", "Lütfen en az bir dork girin.")
return
success_message = "Tüm dorklar için arama sonuçları başarıyla kaydedildi."
for index, dork in enumerate(dorks, start=1):
links = get_search_results(dork)
if not links:
messagebox.showinfo("Bilgi", f"{dork} için arama sonuçları alınamadı.")
continue
output_urls = extract_urls(links)
if not output_urls:
messagebox.showinfo("Bilgi", f"{dork} için veriler bulunamadı.")
else:
try:
with open(f"Dork{index}_veri.txt", 'w') as file:
for url in output_urls:
file.write(url + '\n')
except IOError as e:
messagebox.showerror("Hata", f"Dosyaya yazma sırasında bir hata oluştu: {e}")
return
messagebox.showinfo("Bilgi", success_message)
def create_glassmorphic_window():
"""Glassmorphic pencere tasarımı"""
root = tk.Tk()
root.title("Telegram : @Bytncpx")
root.geometry("900x700")
# Tema renkleri
colors = apply_dark_mode(root)
# Ana konteyner
main_frame = ttk.Frame(root, style="TFrame")
main_frame.pack(fill=tk.BOTH, expand=True, padx=20, pady=20)
# Başlık
title_frame = ttk.Frame(main_frame, style="TFrame")
title_frame.pack(fill=tk.X, pady=(0, 20))
title_label = ttk.Label(
title_frame,
text="Detector Dork Scanner V2.0",
font=('Segoe UI', 24, 'bold'),
foreground=colors['accent_primary']
)
title_label.pack(side=tk.TOP)
subtitle_label = ttk.Label(
title_frame,
text="Advanced Search & Data Extraction Tool",
font=('Segoe UI', 12),
foreground=colors['text_secondary']
)
subtitle_label.pack(side=tk.TOP)
# Dork giriş alanı
input_label = ttk.Label(
main_frame,
text="Dork Giriniz:",
font=('Segoe UI', 14)
)
input_label.pack(pady=(10, 5))
global dork_text
dork_text = tk.Text(
main_frame,
height=10,
width=70,
font=('Consolas', 10),
bg=colors['background_medium'],
fg=colors['text_primary'],
insertbackground=colors['accent_secondary'],
borderwidth=1,
relief=tk.FLAT
)
dork_text.pack(pady=10)
# Arama butonu
search_button = ttk.Button(
main_frame,
text="Sorguyu Başlat ➡",
command=search_and_save,
style="TButton"
)
search_button.pack(pady=20)
# Şeffaflık ayarı
root.attributes('-alpha', 0.96)
return root
# Ana pencereyi oluştur ve çalıştır
root = create_glassmorphic_window()
root.mainloop()

