MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / processInput

Method processInput

AdaptixClient/Source/UI/Widgets/ConsoleWidget.cpp:508–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506/// SLOTS
507
508void ConsoleWidget::processInput()
509{
510 if (!commander)
511 return;
512
513 QString commandLine = TrimmedEnds(InputLineEdit->text());
514
515 if ( this->userSelectedCompletion ) {
516 this->userSelectedCompletion = false;
517 return;
518 }
519
520 InputLineEdit->clear();
521 if (commandLine.isEmpty())
522 return;
523
524 this->AddToHistory(commandLine);
525
526 auto cmdResult = commander->ProcessInput( agent->data.Id, commandLine );
527 if (cmdResult.is_pre_hook)
528 return;
529
530 this->ProcessCmdResult(commandLine, cmdResult, false);
531}
532
533void ConsoleWidget::toggleSearchPanel()
534{

Callers 2

contextMenuEventMethod · 0.45
actionExecuteCommandMethod · 0.45

Calls 7

AddToHistoryMethod · 0.95
ProcessCmdResultMethod · 0.95
TrimmedEndsFunction · 0.85
ProcessInputMethod · 0.80
textMethod · 0.45
clearMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected