如何在 FreeBSD 上禁用 ASLR?
我目前正在参加计算机安全课程,并想尝试将一些课程示例漏洞移植到我的 FreeBSD 机器上。对于linux,我可以通过使用
"echo 0 > /proc/sys/kernel/randomize_va_space". Compiling with "-fno-stack-protector -z execstack"
gcc
上的标志来禁用ASLR
禁用NX
和canaries
,我假设FreeBSD 也是如此。 FreeBSD 是否有类似的功能来禁用 ASLR?
谢谢您的宝贵时间。
I'm currently taking a computer security class and would like to try to port some of the class example exploits to my FreeBSD machine. For linux, I was able to disable ASLR
by using
"echo 0 > /proc/sys/kernel/randomize_va_space". Compiling with "-fno-stack-protector -z execstack"
flags on gcc
disables NX
and canaries
, and I assume that will be the same for FreeBSD. Does FreeBSD have similar functionality to disable ASLR though?
Thank you for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
运行配置:
保存更改:
Running-config:
To persist changes:
FreeBSD 上没有地址空间随机化功能。
There is no address space randomization feature on FreeBSD.
以下是关于 FreeBSD 上的 ASLR 的解释
Here are an a explanation about ASLR on FreeBSD