mirror of
https://github.com/Adaptix-Framework/AdaptixC2
synced 2026-06-08 10:20:39 +00:00
Client: Update Connect & Listener dialogs
This commit is contained in:
@@ -13,19 +13,24 @@ MainAdaptix::~MainAdaptix(){
|
||||
};
|
||||
|
||||
void MainAdaptix::Start() {
|
||||
AuthProfile authProfile;
|
||||
bool result;
|
||||
auto dialogConnect = new DialogConnect();
|
||||
auto authProfile = dialogConnect->StartDialog();
|
||||
if ( ! authProfile.valid ) {
|
||||
this->Exit();
|
||||
return;
|
||||
}
|
||||
|
||||
bool result = HttpReqLogin( &authProfile );
|
||||
if ( !result ) {
|
||||
MessageError("Login failure");
|
||||
this->Exit();
|
||||
return;
|
||||
}
|
||||
do {
|
||||
authProfile = dialogConnect->StartDialog();
|
||||
if (!authProfile.valid) {
|
||||
this->Exit();
|
||||
return;
|
||||
}
|
||||
|
||||
result = HttpReqLogin(&authProfile);
|
||||
if (!result) {
|
||||
MessageError("Login failure");
|
||||
continue;
|
||||
}
|
||||
|
||||
} while( !result );
|
||||
|
||||
mainUI = new MainUI;
|
||||
mainUI->showMaximized();
|
||||
|
||||
Reference in New Issue
Block a user