Skip to content

Commit 5c881fd

Browse files
authored
Merge pull request #22 from teamssix/main
docs: add demo in readme
2 parents fe64b90 + 0ceab80 commit 5c881fd

File tree

6 files changed

+19
-11
lines changed

6 files changed

+19
-11
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,29 @@ TerraformGoat is built using Dockerfile, so you need to install the Docker envir
4444

4545
```shell
4646
git clone https://github.com/HuoCorp/TerraformGoat.git
47-
cd terraformgoat
48-
docker build -t terraformgoat:v0.1 .
47+
cd TerraformGoat
48+
docker build -t terraformgoat:v0.0.2 .
4949
```
5050

51-
![img](./images/1651136182.png)
51+
![img](./images/1652250379.png)
5252

5353
After docker build is complete, start and enter the container
5454

5555
```shell
56-
docker run -itd --name terraformgoat terraformgoat:v0.1
56+
docker run -itd --name terraformgoat terraformgoat:v0.0.2
5757
docker exec -it terraformgoat /bin/bash
5858
```
5959

6060
When entering the container, you need to select the cloud service to run
6161

62-
![img](./images/1651136346.png)
62+
![img](./images/1652250438.png)
6363

6464
After selecting the cloud service you want to use, the relevant dependencies will be installed. After the relevant dependencies are installed, you can use TerraformGoat.
6565

66+
Using the build of the Alibaba Cloud ECS SSRF vulnerability scenario as a demo:
67+
68+
[![asciicast](https://asciinema.org/a/493554.svg)](https://asciinema.org/a/493554)
69+
6670
## :rocket: Uninstall
6771

6872
```shell

README_CN.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,35 @@ TerraformGoat 使用 Dockerfile 构建,因此需要先安装 Docker 环境,D
4343

4444
```shell
4545
git clone https://github.com/HuoCorp/TerraformGoat.git
46-
cd terraformgoat
47-
docker build -t terraformgoat:v0.1 .
46+
cd TerraformGoat
47+
docker build -t terraformgoat:v0.0.2 .
4848
```
4949

50-
![img](./images/1651136182.png)
50+
![img](./images/1652250379.png)
5151

5252
docker build 完成后,启动并进入容器
5353

5454
```shell
55-
docker run -itd --name terraformgoat terraformgoat:v0.1
55+
docker run -itd --name terraformgoat terraformgoat:v0.0.2
5656
docker exec -it terraformgoat /bin/bash
5757
```
5858

5959
在进入容器时需要选择要使用到的云服务
6060

61-
![img](./images/1651136346.png)
61+
![img](./images/1652250438.png)
6262

6363
选择你要用的云服务后会安装相关依赖,等相关依赖安装完后,就可以使用 TerraformGoat 了
6464

65+
这里以阿里云 ECS SSRF 漏洞场景的搭建进行演示:
66+
67+
[![asciicast](https://asciinema.org/a/493554.svg)](https://asciinema.org/a/493554)
68+
6569
## :rocket: 卸载
6670

6771
```shell
6872
docker stop terraformgoat
6973
docker rm terraformgoat
70-
docker rmi terraformgoat:v0.1
74+
docker rmi terraformgoat:v0.0.2
7175
```
7276

7377
## ⚠️ 注意事项

images/1651136182.png

-119 KB
Binary file not shown.

images/1651136346.png

-114 KB
Binary file not shown.

images/1652250379.png

123 KB
Loading

images/1652250438.png

60.2 KB
Loading

0 commit comments

Comments
 (0)