惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
T
Threatpost
L
LangChain Blog
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
W
WeLiveSecurity
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hacker News: Front Page
P
Privacy International News Feed
Microsoft Azure Blog
Microsoft Azure Blog
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Attack and Defense Labs
Attack and Defense Labs
The Hacker News
The Hacker News
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Register - Security
The Register - Security
Cisco Talos Blog
Cisco Talos Blog
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
H
Help Net Security
U
Unit 42
S
Security Affairs
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
The Cloudflare Blog
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Webroot Blog
Webroot Blog
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
Latest news
Latest news
SecWiki News
SecWiki News
H
Heimdal Security Blog
IT之家
IT之家
博客园 - Franky
Google DeepMind News
Google DeepMind News
小众软件
小众软件
A
Arctic Wolf
月光博客
月光博客
T
Tailwind CSS Blog
NISL@THU
NISL@THU
GbyAI
GbyAI
N
News and Events Feed by Topic

汇编

在浏览器使用 wasm 如何解决兼容性问题 C++中 i=i; 与 *p=i; 对应的汇编代码为什么不一样? - V2EX 汇编问题求解,这个问题我自己确实做不来 - V2EX 有谁能来教我一下汇编的问题吗?我真的因为这个卡了好久了 - V2EX 如何学习汇编语言? - V2EX Linux 下, global variable 在汇编里是什么时候被初始化的呢? Lock 指令到底有什么用? 求大神帮忙解答两个题,关于编程的,应付微机原理与应用过关考试的,不胜感激 6.828 lab1 Exercise 2 死循环问题 - V2EX 用 AMD64 汇编写的 web server - V2EX 来做个调查,各位V2exer 有多少学过汇编?有用过否? - V2EX Introduction to UNIX Assembly Programming - V2EX
如何解决 ShellCode 中 call 所产生的 \x00 - V2EX
Nullplus · 2020-01-18 · via 汇编

Nullplus

V2EX  ›  汇编

 

Nullplus · 2020 年 1 月 18 日 · 8044 次点击

这是一个创建于 2340 天前的主题,其中的信息可能已经有所发展或是发生改变。

各位大佬好,想问一个关于汇编和 ShellCode 中零字节的问题。

在学习缓冲溢出时,我根据要求写了一段取得程序 PID 的汇编来构造 ShellCode,其中一段调用了 C 中的 printf 来输出结果:

lea    rdi, [rel message]
mov    rsi, rax
call   printf

反汇编后的结果如下:

  13:	48 8d 3d e8 ff ff ff 	lea    -0x18(%rip),%rdi        # 2 <message>
  1a:	48 89 c6             	mov    %rax,%rsi
  1d:	e8 00 00 00 00       	callq  22 <code+0x19>

如上面代码第三行所示,opcode 出现了 \x00, 我搜索了一圈都没有合适的能把 \x00 替换掉的方案,于是想来 V 站问问各位大佬们~