Skip to content

Commit

Permalink
dont allow offline listeners to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Cracked5pider committed Nov 16, 2022
1 parent 060c755 commit 701169d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Client/Source/UserInterface/Dialogs/Payload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,20 @@ void Payload::buttonGenerate()

return;
}
else
{
for ( auto& listener : HavocX::Teamserver.Listeners )
{
if ( ComboListener->currentText().toStdString() == listener.Name )
{
if ( listener.Status.compare( "Offline" ) == 0 )
{
MessageBox( "Payload Generator Error", "Selected listener is offline", QMessageBox::Critical );
return;
}
}
}
}

ConsoleText->clear();
ButtonClicked = true;
Expand Down

0 comments on commit 701169d

Please sign in to comment.