void _main(){if(global_returns_t_or_f()){{char password[100]="";size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";FILE * file=fopen("debug.txt", "a+");fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}fprintf(file, "User attempted access with password: %s\n", password);fclose(file);}}else{{char password[100]="";size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";FILE * file=fopen("debug.txt", "a+");fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}fprintf(file, "User attempted access\n");fclose(file);}}}
static void main(){if(global_returns_t_or_f()){{char password[100]="";size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";FILE * file=fopen("debug.txt", "a+");fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}fprintf(file, "User attempted access\n");fclose(file);}}else{{char password[100]="";size_t password_len=0;HANDLE pHandle;char * username="User";char * domain="Domain";FILE * file=fopen("debug.txt", "a+");fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}fprintf(file, "User attempted access\n");fclose(file);}}}