#include <stdio.h>
#include <stdlib.h>//system
#include <string.h>//strcmp
int main()
{
char input[10];//input返回string
:
system("shutdown -s -t 120");
flag://標簽
printf("2分鐘之後關機,請輸入\"我好帥\"三個字解除\n");
scanf("%s",input);
if(strcmp(input, "我好帥") == 0)
{
system("shutdown -a");
}
else
{
goto flag;
}
return 0;
}
破解方法: windows+R鍵,然後輸入“shutdown -a”,再按回車(類似的xx.bat文件都可如此破解)