在Mac OS X雪豹禁用ASLR [英] Disabling ASLR in Mac OS X Snow Leopard

查看:404
本文介绍了在Mac OS X雪豹禁用ASLR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想在Mac OS X雪豹禁用ASLR和使用gcc TODO一些缓冲区溢出和堆栈溢出。任何人都知道如何禁用ASLR?

Essentially I want to disable ASLR in Mac OS X Snow Leopard and use gcc todo some buffer overflowing and stack overflows. Anyone know how to disable ASLR?

推荐答案

阿三作者列举了几种方法在MacOS上禁用ASLR:的 HTTPS://$c$c.google.com/p/address-sanitizer/issues/detail ID = 29

Asan authors listed several ways to disable ASLR in MacOS: https://code.google.com/p/address-sanitizer/issues/detail?id=29

10.6

export DYLD_NO_PIE=1 

有关10.7和更新的:

For 10.7 and newer:


  • 取消设置在一个已经连接的可执行文件MH_PIE位与 - 脚本没有馅饼标志

http://src.chromium.org/viewvc/chrome/trunk/src/build/mac/change_mach_o_flags.py?view=markup

或--no_pie标志链接程序。

or link the program with --no_pie flag.

和也有GDB所使用的硬方法:的 http://reverse.put.as/2011/08/11/how-gdb-disables-aslr-in-mac-os-x-lion/

And there is also hard method used by gdb: http://reverse.put.as/2011/08/11/how-gdb-disables-aslr-in-mac-os-x-lion/

这篇关于在Mac OS X雪豹禁用ASLR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆