1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| int __cdecl __noreturn main(int argc, const char **argv, const char **envp) { char s[257]; char format[300]; unsigned int v5;
v5 = __readgsdword(0x14u); setbuf(stdout, 0); setbuf(stdin, 0); setbuf(stderr, 0); puts( "Hello,I am a computer Repeater updated.\n" "After a lot of machine learning,I know that the essence of man is a reread machine!"); puts("So I'll answer whatever you say!"); while ( 1 ) { alarm(3u); memset(s, 0, sizeof(s)); memset(format, 0, sizeof(format)); printf("Please tell me:"); read(0, s, 0x100u); sprintf(format, "Repeater:%s\n", s); if ( strlen(format) > 0x10E ) break; printf(format); } printf("what you input is really long!"); exit(0); }
|