Skip to content

Commit

Permalink
Merge pull request #895 from dymt/patch-2
Browse files Browse the repository at this point in the history
modify mapping port typo
  • Loading branch information
WinMin committed May 8, 2024
2 parents 69888b9 + 226766e commit 376b67d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/zh/docs/pwn/linux/user-mode/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pwnenv_ubuntu22 latest c129ca086a72 15 seconds ago 2.81GB
我们只需要运行如下命令便能基于我们刚刚创建的 Docker 镜像创建一个新的容器,方便起见你可以将其创建为一个脚本,各参数说明如下:

- `-d`: 使容器在后台运行
- `-p 25000:2222`: 容器的 `22` 端口映射到本地的 `25000` 端口
- `-p 25000:22`: 容器的 `22` 端口映射到本地的 `25000` 端口
- `--name=pwn22`: 容器名为 `pwn22`
- `-v ~/Desktop/CTF:/CTF` : 将本地的 `~/Desktop/CTF` 目录映射到容器中的 `/CTF` 目录,这样我们便能在容器内访问到本地文件,而无需将文件重复拷贝进容器中
- `pwnenv_ubuntu22`:创建容器所使用的镜像
Expand Down Expand Up @@ -370,4 +370,4 @@ peda 插件无需过多配置,我们只需要将源码下载到本地后更新
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
echo "DONE! debug your program with gdb and enjoy"
```
```

0 comments on commit 376b67d

Please sign in to comment.