Skip to content

Commit

Permalink
Merge pull request #24 from bash-c/master
Browse files Browse the repository at this point in the history
adjust qemu directory
  • Loading branch information
bash-c committed Dec 4, 2018
2 parents 1a7dbb8 + 40f3eb4 commit 747ad2f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 31 deletions.
@@ -1,21 +1,3 @@
## 什么是 qemu

[qemu](https://www.qemu.org/) 是一款由 [Fabrice Bellard](https://bellard.org/) 等人编写的可以执行硬件虚拟化的开源托管虚拟机,具有运行速度快(配合 kvm),跨平台等优点。

qemu 通过动态的二进制转化模拟 CPU,并且提供一组设备模型,使其能够运行多种未修改的客户机OS。

### 运行模式

qemu 有多种运行模式,常用的有 `User-mode emulation``System emulation` 两种。

#### User-mode emulation
用户模式,在这个模式下,qemu 可以运行单个其他指令集的 linux 或者 macOS/darwin 程序,**允许了为一种架构编译的程序在另外一种架构上面运行**

#### System emulation
系统模式,在这个模式下,qemu 将模拟一个完整的计算机系统,包括外围设备。

> 之后将分别为两种情况举例
## 安装 qemu

### 使用包管理
Expand Down Expand Up @@ -245,18 +227,7 @@ pwndbg> target remote localhost:1234
`-S` 让虚拟机停在启动的地方方便调试,类似于 pwntools 的 [gdb.debug()](http://docs.pwntools.com/en/stable/gdb.html?highlight=gdb.debug#pwnlib.gdb.debug)
## 设备模拟
## 内存分配
## Reference
https://wiki.qemu.org/Main_Page
https://qemu.weilnetz.de/doc/qemu-doc.html
https://wiki.qemu.org/Documentation
https://en.wikipedia.org/wiki/QEMU
## References
https://www.ringzerolabs.com/2018/03/the-wonderful-world-of-mips.html
3 changes: 3 additions & 0 deletions docs/binary_core_tools/virtualization/qemu/qemu-internals.md
@@ -0,0 +1,3 @@
## 内存管理

## 设备模拟
30 changes: 30 additions & 0 deletions docs/binary_core_tools/virtualization/qemu/qemu-introduction.md
@@ -0,0 +1,30 @@
## 什么是 qemu

[qemu](https://www.qemu.org/) 是一款由 [Fabrice Bellard](https://bellard.org/) 等人编写的可以执行硬件虚拟化的开源托管虚拟机,具有运行速度快(配合 kvm),跨平台等优点。

qemu 通过动态的二进制转化模拟 CPU,并且提供一组设备模型,使其能够运行多种未修改的客户机OS。

在 CTF 比赛中,qemu 多用于启动异架构的程序(mips, arm 等)、kernel 及 bootloader 等二进制程序,有时也会作为要 pwn 掉的程序出现。

### 运行模式

qemu 有多种运行模式,常用的有 `User-mode emulation``System emulation` 两种。

#### User-mode emulation
用户模式,在这个模式下,qemu 可以运行单个其他指令集的 linux 或者 macOS/darwin 程序,**允许了为一种架构编译的程序在另外一种架构上面运行**

#### System emulation
系统模式,在这个模式下,qemu 将模拟一个完整的计算机系统,包括外围设备。

> 之后将分别为两种情况举例
## Reference

https://wiki.qemu.org/Main_Page

https://qemu.weilnetz.de/doc/qemu-doc.html

https://wiki.qemu.org/Documentation

https://en.wikipedia.org/wiki/QEMU

5 changes: 4 additions & 1 deletion mkdocs.yml
Expand Up @@ -37,7 +37,10 @@ pages:
- Instrumentation:
- Intel pin: binary_core_tools/instrumentation/intel_pin.md
- Virtualization:
- qemu: binary_core_tools/virtualization/qemu.md
- qemu:
- qemu 介绍: binary_core_tools/virtualization/qemu/qemu-introduction.md
- qemu 安装与调试: binary_core_tools/virtualization/qemu/qemu-install-and-debug.md
- qemu 细节: binary_core_tools/virtualization/qemu/qemu-internals.md
# - Windows Binary:
# - Disassembler and Decomplier:
# - IDA: windows_binary_related/disassembler_and_decomplier/ida.md
Expand Down

0 comments on commit 747ad2f

Please sign in to comment.