Skip to content

Commit

Permalink
feat: Add exit functionality to Reverse Shell server on escape key press
Browse files Browse the repository at this point in the history
  • Loading branch information
9dl committed Dec 5, 2024
1 parent 33dd1b2 commit 11d5967
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/reverseShell/reverseShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,13 @@ void ReverseShell() {
shellConnected = false;
tcpClient.stop();
}

if (checkEscPress()) {
tft.println("Exiting reverse shell server...");
tcpServer.stop();
webServer.stop();
dnsServer.stop();
break;
}
}
}

0 comments on commit 11d5967

Please sign in to comment.