Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
276 views
in Technique[技术] by (71.8m points)

一个PWN的小疑问?

已经控制pc,想把"/bin/sh"写入bss段,如下图所示:

图片描述

[26] .bss NOBITS 0000000000601040

此时:

p12为read的got表地址
rdi为0(标准输入流)
rsi为bss段地址(0x601040)
rdx为长度(16)

可以看到调试信息都是对的,bss也可写,可是调用read就直接过去了,没有要求输入,请问为什么?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...