One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
src
/
xampp-start-stop
/
Edit File:
xampp_stop.c
// Copyright (C) 2007-2010 Kai Seidler, oswald@apachefriends.org, GPL-licensed #include <stdio.h> #include <windows.h> #include <stdlib.h> #include "xampp_util.h" int main(int argc, char **argv) { long pid; HANDLE shutdownEvent; char shutdownEventName[32]; FILE *fp; char *pidfile; printf("Stopping XAMPP...\n\n"); xampp_cdx(); pidfile="apache\\logs\\httpd.pid"; fp=fopen(pidfile,"r"); if(!fp) { printf("Can't find %s.\n", pidfile); Sleep(10000); } else { fscanf(fp,"%d", &pid); fclose(fp); sprintf_s(shutdownEventName, sizeof(shutdownEventName), "ap%d_shutdown", pid); shutdownEvent = OpenEvent(EVENT_MODIFY_STATE, FALSE, shutdownEventName); if (shutdownEvent != NULL) { SetEvent(shutdownEvent); } else { printf("Can't find Apache process #%d.\n", pid); Sleep(10000); } } pidfile="mysql\\data\\mysql.pid"; fp=fopen(pidfile,"r"); if(!fp) { printf("Can't find %s.\n", pidfile); Sleep(10000); return(1); } else { fscanf(fp,"%d", &pid); fclose(fp); sprintf_s(shutdownEventName, sizeof(shutdownEventName), "MySQLShutdown%d", pid); shutdownEvent = OpenEvent(EVENT_MODIFY_STATE, FALSE, shutdownEventName); if (shutdownEvent != NULL) { SetEvent(shutdownEvent); } else { printf("Can't find MySQL process #%d.\n", pid); Sleep(10000); return(1); } } Sleep(10000); return(0); }
Simpan