Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Adam Shore - 10/11/13
- * Challenge: Create a wrapper for this program which exploits the poor coding to reveal hidden!
- * (catching the library call is cheating!)
- */
- #include <stdio.h>
- #include <string.h>
- int main(int argc, char *argv[]){
- char hidden[] = "Tell me and I forget, teach me and I may remember, involve me and I learn.";
- if (argc != 2) {
- printf("RTFC\n");
- return;
- }
- if (!strncmp(hidden, argv[1], strlen(hidden))){
- printf("made it.\n"); // <3 Olivia wilde
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement