GFSJ0355-【Shuffle】
签到
题目简介
找到字符串在随机化之前.
进去直接给flag
int __cdecl main(int argc, const char **argv, const char **envp)
{
time_t v3; // ebx
__pid_t v4; // eax
int i; // [esp+14h] [ebp-44h]
unsigned int v7; // [esp+18h] [ebp-40h]
unsigned int v8; // [esp+1Ch] [ebp-3Ch]
char v9; // [esp+20h] [ebp-38h]
char s[40]; // [esp+24h] [ebp-34h] BYREF
unsigned int v11; // [esp+4Ch] [ebp-Ch]
v11 = __readgsdword(0x14u);
strcpy(s, "SECCON{Welcome to the SECCON 2014 CTF!}");
v3 = time(nullptr);
v4 = getpid();
srand(v3 + v4);
for ( i = 0; i <= 99; ++i )
{
v7 = rand() % 0x28u;
v8 = rand() % 0x28u;
v9 = s[v7];
s[v7] = s[v8];
s[v8] = v9;
}
puts(s);
return 0;
}
flag
SECCON{Welcome to the SECCON 2014 CTF!}
评论