UltraDebug

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: A C D R G Y M Z X S P
公益项目,接受捐赠
查看: 1450|回复: 0
收起左侧

[CTF] hack.lu CTF 2015 : bookstore

[复制链接]
applecloudcom

主题

0

回帖

UD

新手上路

UID
21
积分
33
注册时间
2022-2-12
最后登录
1970-1-1
2023-9-15 14:03:29 | 显示全部楼层 |阅读模式

检查文件信息

hack.lu CTF 2015 : bookstore - applecloudcom_UltraDebug

ELF64 小端序,动态链接,经过符号去除。
hack.lu CTF 2015 : bookstore - applecloudcom_UltraDebug

没开 RELRO 和 PIE 保护。
hack.lu CTF 2015 : bookstore - applecloudcom_UltraDebug

猜测是glibc-2.19,暂改 glibc 为 glibc-2.23。

试运行

hack.lu CTF 2015 : bookstore - applecloudcom_UltraDebug

逆向分析

/* main 函数 */

signed __int64 __fastcall main(__int64 a1, char **a2, char **a3)
{
  int v4; // [rsp+4h] [rbp-BCh]
  char *v5; // [rsp+8h] [rbp-B8h]
  char *first_order; // [rsp+18h] [rbp-A8h]
  char *second_order; // [rsp+20h] [rbp-A0h]
  char *dest; // [rsp+28h] [rbp-98h]
  char s[136]; // [rsp+30h] [rbp-90h] BYREF
  unsigned __int64 v10; // [rsp+B8h] [rbp-8h]

  v10 = __readfsqword(0x28u);
  first_order = (char *)malloc(0x80uLL);
  second_order = (char *)malloc(0x80uLL);
  dest = (char *)malloc(0x80uLL);
  if ( !first_order || !second_order || !dest )
  {
  &n
还有更多的精彩内容,作者设置为付费后可见
UltraDebug免责声明
✅以上内容均来自网友转发或原创,如存在侵权请发送到站方邮件9003554@qq.com处理。
✅The above content is forwarded or original by netizens. If there is infringement, please send the email to the destination 9003554@qq.com handle.
回复 打印

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|站点地图|UltraDebug ( 滇ICP备2022002049号-2 滇公网安备 53032102000034号)

GMT+8, 2025-6-20 14:28 , Processed in 0.038754 second(s), 11 queries , Redis On.

Powered by Discuz X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表