Advertisement
paperline27

soal ctf kategori reverse engineering

Jan 23rd, 2024
1,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | Cybersecurity | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     char password[] = "p@ssw0rd";
  5.     char input[20];
  6.  
  7.     printf("Masukkan password: ");
  8.     scanf("%s", input);
  9.  
  10.     if(strcmp(input, password) == 0) {
  11.         printf("Password benar!\n");
  12.     } else {
  13.         printf("Password salah!\n");
  14.     }
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement