首页
社区
课程
招聘
[原创]第一题 分析
2017-10-24 17:53 1463

[原创]第一题 分析

2017-10-24 17:53
1463
直接拉进IDA分析,定位GetWindowText函数,Key 直接就出来了 if ( !strcmp(Str, "WelcomeToKanXueCtf2017") ) 。
int __thiscall sub_4017F0(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;



[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

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