首页
社区
课程
招聘
[原创]第一题 writeup
2017-10-24 20:25 1525

[原创]第一题 writeup

2017-10-24 20:25
1525
IDA打开后查找字符串
发现:请输入pass!
于是通过字符串跟踪到相关代码
int __thiscall handle(CWnd *this)
{
  struct CString *v1; // ST08_4@1
  CWnd *v2; // eax@1
  int v3; // eax@1
  int result; // eax@2
  char *Str; // [sp+4Ch] [bp-8h]@1
  CWnd *v6; // [sp+50h] [bp-4h]@1

  v6 = this;
  v1 = (CWnd *)((char *)this + 100);
  v2 = CWnd::GetDlgItem(this, 1002);
  CWnd::GetWindowTextA(v2, v1);
  v3 = sub_4018D0((char *)v6 + 100);
  Str = CString::GetBuffer((CWnd *)((char *)v6 + 100), v3);
  if ( strlen(Str) )
  {
    if ( !strcmp(Str, "WelcomeToKanXueCtf2017") )
      result = sub_401770();
    else
      result = sub_4017B0();
  }
  else
  {
    result = CWnd::MessageBoxA(v6, "请输入pass!", 0, 0);
  }
  return result;
}
找到 flag:WelcomeToKanXueCtf2017

[CTF入门培训]顶尖高校博士及硕士团队亲授《30小时教你玩转CTF》,视频+靶场+题目!助力进入CTF世界

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