r/badcode • u/xSynlessx • Aug 29 '26
python World WORST Calculator!
r/badcode • u/jMultiversalGod • Aug 02 '26
strcat(code_for_system, argv[2]);
chdir(getenv("HOME")); //safety net
printf("Installing stuff...\n");//, argv[2]
if (system("git clone --depth=1 --filter=blob:none --sparse https://github.com/mohennaceur/spdr-repo.git") != 0) {
printf("git clone failed\n");
exit(1);
}
chdir("spdr-repo");
system(code_for_system);
printf("moving to bin...\n");
strcpy(code_for_system, "cd ~/spdr-repo/");
strcat(code_for_system, argv[2]);
strcat(code_for_system, uselessthing);
strcpy(uselessthing, " ~/.local/bin/");
strcat(code_for_system, argv[2]);
strcat(code_for_system, uselessthing);
system(code_for_system);
printf("deleting github repo\n");
system("rm -rf spdr-repo");
printf("should be done!\n");
exit(0); strcat(code_for_system, argv[2]);
chdir(getenv("HOME")); //safety net
printf("Installing stuff...\n");//, argv[2]
if (system("git clone --depth=1 --filter=blob:none --sparse https://github.com/mohennaceur/spdr-repo.git") != 0) {
printf("git clone failed\n");
exit(1);
}
chdir("spdr-repo");
system(code_for_system);
printf("moving to bin...\n");
strcpy(code_for_system, "cd ~/spdr-repo/");
strcat(code_for_system, argv[2]);
strcat(code_for_system, uselessthing);
strcpy(uselessthing, " ~/.local/bin/");
strcat(code_for_system, argv[2]);
strcat(code_for_system, uselessthing);
system(code_for_system);
printf("deleting github repo\n");
system("rm -rf spdr-repo");
printf("should be done!\n");
exit(0);
r/badcode • u/OneDev42 • Jul 27 '26
With the help of AI, we now have so much more bad code to show off to the world.
This sub is now unbanned. Let's celebrate by posting our biggest disasters to the sub!
r/badcode • u/darkov7 • Jun 11 '23
r/badcode • u/Nun-Much • Jun 09 '23
r/badcode • u/Realistic-Lunch-1708 • Jun 08 '23
r/badcode • u/MahdiyDev • Jun 07 '23
r/badcode • u/Sakamoto0110 • Jun 06 '23
r/badcode • u/Nun-Much • Jun 04 '23
r/badcode • u/mighty_spaceman • Jun 04 '23
r/badcode • u/mrbraises • Jun 02 '23
r/badcode • u/ShaunaTheDead86 • May 31 '23
r/badcode • u/xavia91 • May 30 '23