💾 Archived View for sdf.org › aiden › src › xor.c captured on 2021-12-03 at 14:04:38.
-=-=-=-=-=-=-
//Segmentation fault generator no. 2 (disguised as xor encryption.) #include <stdio.h> int main(int argc, char *argv[]) { char *str, c; int i, key; if (argc >= 2) { key = xc1; str = argv[1]; for (i = 0; str[i] != '\0'; ++i) { str = str ^ key; printf("%s", str); } putchar('\n'); return 0; } }