Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

Collapsed handle commands

Andrei Vladescubc4c972d35e8
diff --git a/src/Controllers/WifiController.cpp b/src/Controllers/WifiController.cpp
index 5f8553c6..a175e2df 100644
--- a/src/Controllers/WifiController.cpp
+++ b/src/Controllers/WifiController.cpp
@@ -13,62 +13,20 @@ void WifiController::handleCommand(const TerminalCommand &cmd)
{
const auto &root = cmd.getRoot();
- if (root == "connect")
- {
- handleConnect(cmd);
- }
- else if (root == "disconnect")
- {
- handleDisconnect(cmd);
- }
- else if (root == "status")
- {
- handleStatus(cmd);
- }
- else if (root == "ap")
- {
- handleAp(cmd);
- }
- else if (root == "spoof")
- {
- handleSpoof(cmd);
- }
- else if (root == "scan")
- {
- handleScan(cmd);
- }
- else if (root == "ping")
- {
- handlePing(cmd);
- }
- else if (root == "sniff")
- {
- handleSniff(cmd);
- }
- else if (root == "webui")
- {
- handleWebUi(cmd);
- }
- else if (root == "ssh")
- {
- handleSsh(cmd);
- }
- else if (root == "nc")
- {
- handleNetcat(cmd);
- }
- else if (root == "reset")
- {
- handleReset();
- }
- else if (root == "deauth")
- {
- handleDeauth(cmd);
- }
- else
- {
- handleHelp();
- }
+ if (root == "connect") handleConnect(cmd);
+ else if (root == "disconnect") handleDisconnect(cmd);
+ else if (root == "status") handleStatus(cmd);
+ else if (root == "ap") handleAp(cmd);
+ else if (root == "spoof") handleSpoof(cmd);
+ else if (root == "scan") handleScan(cmd);
+ else if (root == "ping") handlePing(cmd);
+ else if (root == "sniff") handleSniff(cmd);
+ else if (root == "webui") handleWebUi(cmd);
+ else if (root == "ssh") handleSsh(cmd);
+ else if (root == "nc") handleNetcat(cmd);
+ else if (root == "reset") handleReset();
+ else if (root == "deauth") handleDeauth(cmd);
+ else handleHelp();
}
/*