mirror of https://github.com/dirtbags/moth.git
New "dead simple password" puzzle.
This commit is contained in:
parent
d574a11c3b
commit
a6dcbdcdf9
|
@ -0,0 +1,9 @@
|
|||
LDFLAGS = -static
|
||||
|
||||
all: main
|
||||
|
||||
main: CFLAGS = -Dpasswd='"$(shell cat key)"'
|
||||
|
||||
clean:
|
||||
rm -rf main
|
||||
|
|
@ -0,0 +1 @@
|
|||
Gawain Ballard Tunisia
|
|
@ -0,0 +1,28 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
char reply[256];
|
||||
|
||||
printf("What is the password? ");
|
||||
fflush(stdout);
|
||||
if (fgets(reply, sizeof(reply), stdin)) {
|
||||
char *p;
|
||||
|
||||
for (p = reply; *p; p += 1) {
|
||||
if ('\n' == *p) {
|
||||
*p = '\0';
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (strcmp(reply, passwd)) {
|
||||
printf("No it isn't!\n");
|
||||
} else {
|
||||
printf("Congratulations.\n");
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
PC LOAD LETTER
|
||||
Gawain Ballard Tunisia
|
||||
|
|
|
@ -1 +1 @@
|
|||
lawful forths Amanda
|
||||
PC LOAD LETTER
|
||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
codger launched jet
|
||||
lawful forths Amanda
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
codger launched jet
|
Loading…
Reference in New Issue