!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/opt/passenger-5.3.7-4.el6.cloudlinux/src/agent/   drwxr-xr-x
Free 201.32 GB of 981.82 GB (20.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AgentMain.cpp (3.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *  Phusion Passenger - https://www.phusionpassenger.com/
 *  Copyright (c) 2014-2017 Phusion Holding B.V.
 *
 *  "Passenger", "Phusion Passenger" and "Union Station" are registered
 *  trademarks of Phusion Holding B.V.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in
 *  all copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *  THE SOFTWARE.
 */
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <Constants.h>

using namespace std;

int watchdogMain(int argc, char *argv[]);
int coreMain(int argc, char *argv[]);
int systemMetricsMain(int argc, char *argv[]);
int tempDirToucherMain(int argc, char *argv[]);
int spawnEnvSetupperMain(int argc, char *argv[]);
int execHelperMain(int argc, char *argv[]);

static bool
isHelp(const char *arg) {
    return strcmp(arg, "help") == 0
        || strcmp(arg, "--help") == 0
        || strcmp(arg, "-h") == 0;
}

static void
usage(int argc, char *argv[]) {
    printf("Usage: " AGENT_EXE " <SUBCOMMAND> [options...]\n");
    printf(PROGRAM_NAME " version " PASSENGER_VERSION ".\n");
    printf("Type '%s <SUBCOMMAND> --help' for help on a specific subcommand.\n",
        argv[0]);
    printf("\n");
    printf("Daemon subcommands:\n");
    printf("  core\n");
    printf("  watchdog\n");
    printf("\n");
    printf("Utility subcommands:\n");
    printf("  system-metrics\n");
    printf("  exec-helper\n");
}

static bool
dispatchHelp(int argc, char *argv[]) {
    if (argc == 1) {
        usage(argc, argv);
        exit(1);
    } else if (argc == 2 && isHelp(argv[1])) {
        usage(argc, argv);
        exit(0);
    } else if (isHelp(argv[1])) {
        fprintf(stderr, "Please type '%s %s --help' for help on this specific subcommand.\n",
            argv[0], argv[2]);
        exit(1);
    }
    return false;
}

static void
dispatchSubcommand(int argc, char *argv[]) {
    if (strcmp(argv[1], "watchdog") == 0) {
        exit(watchdogMain(argc, argv));
    } else if (strcmp(argv[1], "core") == 0) {
        exit(coreMain(argc, argv));
    } else if (strcmp(argv[1], "system-metrics") == 0) {
        exit(systemMetricsMain(argc, argv));
    } else if (strcmp(argv[1], "temp-dir-toucher") == 0) {
        exit(tempDirToucherMain(argc, argv));
    } else if (strcmp(argv[1], "spawn-env-setupper") == 0) {
        exit(spawnEnvSetupperMain(argc, argv));
    } else if (strcmp(argv[1], "exec-helper") == 0) {
        exit(execHelperMain(argc, argv));
    } else if (strcmp(argv[1], "test-binary") == 0) {
        printf("PASS\n");
        exit(0);
    } else {
        usage(argc, argv);
        exit(1);
    }
}

int
main(int argc, char *argv[]) {
    if (!dispatchHelp(argc, argv)) {
        dispatchSubcommand(argc, argv);
    }
    return 1; // Never reached
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0099 ]--