首页
社区
课程
招聘
[原创]第一题:无限流[签到题] wp
2019-12-1 16:35 1421

[原创]第一题:无限流[签到题] wp

2019-12-1 16:35
1421
以输入password的数字作为下标取"cuk!ogl"的字符,结果等于"goluck!"即正确。

故password为5461023

char str[8];	
const char *input;	//输入的password
const char *buf = "cuk!ogl";

for(int i = 0; input[i] != 0; i++)
{
	if ( input[i] > '9' || input[i] < '0' )
	{
		//出现不是数字的则错误
		wrong_exit();
	}
    else
	{
		//以password的数字作为下标取buf的字符
		str[i] = buf[input[i] - '0'];
	} 
}

str[i] = '\0';

if ( !strcmp(str, "goluck!") )
{
	//正确
    Correct();
}
else
{
	//错误
    wrong_exit();
}


[培训]二进制漏洞攻防(第3期);满10人开班;模糊测试与工具使用二次开发;网络协议漏洞挖掘;Linux内核漏洞挖掘与利用;AOSP漏洞挖掘与利用;代码审计。

收藏
点赞0
打赏
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回