int __fastcall main(int argc, constchar **argv, constchar **envp) { int ci; // [rsp+Ch] [rbp-A4h] int idx1; // [rsp+10h] [rbp-A0h] int rnum; // [rsp+14h] [rbp-9Ch] __int64 sum; // [rsp+18h] [rbp-98h] BYREF __int64 list[16]; // [rsp+20h] [rbp-90h] BYREF int size; // [rsp+A0h] [rbp-10h] BYREF int idx; // [rsp+A4h] [rbp-Ch] unsigned __int64 v11; // [rsp+A8h] [rbp-8h]
v11 = __readfsqword(0x28u); init(argc, argv, envp); ci = 0; while ( 1 ) { idx1 = 0; rnum = rand() % 30; idx = 0; puts("\nAs we know,there's a tradition to determine whether someone loves you or not..."); puts("... by counting flower petals when u are not sure."); puts("\nHow many flowers have you prepared this time?"); scanf("%d", &size); if ( size > 16 ) { puts("\nNo matter how many flowers there are, they cannot change the fact of whether he or she loves you."); puts("Just a few flowers will reveal the answer,love fool."); exit(0); } puts("\nTell me the number of petals in each flower."); while ( idx < size ) { printf("the flower number %d : ", ++idx); scanf("%ld", &list[idx]); // 0 1 list[1] // ... // 16 17 list[17] } puts("\nDo you want to start with 'love me'"); puts("...or 'not love me'?"); puts("Reply 1 indicates the former and 2 indicates the latter: "); scanf("%ld", &sum); puts("\nSometimes timing is important, so I added a little bit of randomness."); puts("\nLet's look at the results."); while ( idx1 < size ) { printf("%ld + ", list[++idx1]); sum += list[idx1]; } printf("%d", rnum); sum += rnum; puts(" = "); if ( (sum & 1) == 0 ) break; puts("He or she doesn't love you."); if ( ci > 0 ) return0; ++ci; puts("What a pity!"); puts("I can give you just ONE more chance."); puts("Wish that this time they love you."); } puts("Congratulations,he or she loves you."); return0; }
int __fastcall main(int argc, constchar **argv, constchar **envp) { char format[4]; // [rsp+0h] [rbp-10h] BYREF int v5; // [rsp+4h] [rbp-Ch] BYREF int v6; // [rsp+8h] [rbp-8h] BYREF int i; // [rsp+Ch] [rbp-4h]
setvbuf(stdin, 0LL, 2, 0LL); setvbuf(_bss_start, 0LL, 2, 0LL); printf("you have n chance to getshell\n n = "); if ( (int)scanf("%d", &v6) <= 0 ) exit(1); for ( i = 0; i < v6; ++i ) { printf("type something:"); if ( (int)scanf("%3s", format) <= 0 ) exit(1); printf("you type: "); printf(format); } printf("you have n space to getshell(n<5)\n n = "); scanf("%d\n", &v5); if ( v5 <= 5 ) vuln((unsignedint)v5); return0; }