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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| int __cdecl main(int argc, const char **argv, const char **envp) { int v4; char buf[16]; char dest[8]; __int64 v7; int v8; char v9; char v10[56]; unsigned __int64 v11;
v11 = __readfsqword(0x28u); setvbuf(stdout, 0LL, 2, 0LL); setvbuf(stdin, 0LL, 1, 0LL); *(_QWORD *)dest = 0x20676E6970LL; v7 = 0LL; v8 = 0; v9 = 0; v4 = 0; puts("Welcome to BJDCTF router test program! "); while ( 1 ) { menu(); puts("Please input u choose:"); v4 = 0; __isoc99_scanf("%d", &v4); switch ( v4 ) { case 1: puts("Please input the ip address:"); read(0, buf, 0x10uLL); strcat(dest, buf); system(dest); puts("done!"); break; case 2: puts("bibibibbibibib~~~"); sleep(3u); puts("ziziizzizi~~~"); sleep(3u); puts("something wrong!"); puts("Test done!"); break; case 3: puts("Please input what u want to say"); puts("Your suggest will help us to do better!"); read(0, v10, 0x3AuLL); printf("Dear ctfer,your suggest is :%s", v10); break; case 4: puts("Hey guys,u think too much!"); break; case 5: puts("Good Bye!"); exit(-1); default: puts("Functional development!"); break; } } }
|