From a574e904019310769b16058860ca03a90eefe77a Mon Sep 17 00:00:00 2001 From: keowu Date: Thu, 3 Jul 2025 20:07:47 -0300 Subject: [PATCH] feat: Check for inputs in RyujinGUI - Added validation to check for empty inputs in the RyujinGUI obfuscation run logic. --- RyujinGUI/RyujinApp.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/RyujinGUI/RyujinApp.cc b/RyujinGUI/RyujinApp.cc index b78fcf3..176d2f0 100644 --- a/RyujinGUI/RyujinApp.cc +++ b/RyujinGUI/RyujinApp.cc @@ -633,6 +633,19 @@ auto RyujinApp::BindRunEvent(wxFrame* frame) -> void { frame->Bind(wxEVT_BUTTON, [=](wxCommandEvent&) { + if (m_input->IsEmpty() || m_pdb->IsEmpty() || m_output->IsEmpty()) { + + wxMessageBox( + + "To obfuscate you mandatory need to provide the following informations: Input PE, Input PE PDB, Ouput PE.\nPlease check if these files are valid, they cannot be empty!", + "Error, please more attention", + wxOK | wxICON_ERROR + + ); + + return; + } + frame->SetStatusText("Starting obfuscation..."); m_progress->Pulse();