Skip to content

Commit 0fd4b1e

Browse files
committed
update
1 parent a332fe1 commit 0fd4b1e

File tree

4 files changed

+11219
-7843
lines changed

4 files changed

+11219
-7843
lines changed

blog/2025-10-02-VIper-Docker-Image-Analysis/index.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,58 @@ total 80
305305
34467565 -rw-r--r-- 1 randark staff 17K Aug 25 21:05 viper.py
306306
```
307307

308+
### Dockerfile 分析
309+
310+
此镜像的 `Dockerfile` 也位于 `viperpython` 仓库中
311+
312+
```shell
313+
$ pwd
314+
~/Users/randark/Develop/viper-9513b84d3d58/blobs/sha256/viperpython
315+
$ find . -name "Dockerfile"
316+
./root/viper/Docker/Dockerfile
317+
```
318+
319+
具体的 `Dockerfile` 如下
320+
321+
```dockerfile
322+
FROM registry.cn-shenzhen.aliyuncs.com/toys/viper-base:latest
323+
324+
ARG ZSTD_COMPRESS=true
325+
ARG ZSTD_COMPRESS_LEVEL=22
326+
ARG COMPRESS_LAYER=true
327+
328+
COPY viperpython /root/viper/
329+
COPY vipermsf /root/metasploit-framework/
330+
COPY viperjs/dist /root/viper/dist/
331+
COPY rex-core /root/rex-core/
332+
COPY rex-socket /root/rex-socket/
333+
334+
RUN chmod a+x /root/viper/Docker/build.sh && ./root/viper/Docker/build.sh
335+
336+
ENTRYPOINT ["viper", "init","-pw"]
337+
338+
CMD ["diypassword"]
339+
340+
#HEALTHCHECK CMD viper healthcheck
341+
```
342+
308343
## 镜像性能分析
309344

345+
### Base Image 镜像性能分析
346+
347+
`Dockerfile` 中可以看到,所使用的基础镜像是
348+
349+
```docker
350+
FROM registry.cn-shenzhen.aliyuncs.com/toys/viper-base:latest
351+
```
352+
353+
但是这个镜像是一个私有镜像没办法进行分析
354+
355+
### Viper 镜像性能分析
356+
310357
TODO 待填坑
311358

312-
## Image Patch
359+
## 绕过收费限制
313360

314361
既然已经有了源码和 Docker Image 镜像文件之后,其实就可以直接加上一层 Layer 实现付费逻辑的 patch 修改
315362

docusaurus.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const config = {
2121
projectName: 'Treasure-House', // Usually your repo name.
2222

2323
onBrokenLinks: 'throw',
24-
onBrokenMarkdownLinks: 'warn',
24+
// onBrokenMarkdownLinks: 'warn',
2525

2626
// Even if you don't use internalization, you can use this field to set useful
2727
// metadata like html lang. For example, if your site is Chinese, you may want
@@ -192,7 +192,8 @@ const config = {
192192
respectPrefersColorScheme: false,
193193
},
194194
prism: {
195-
additionalLanguages: ['powershell', 'php', 'ini', 'json'],
195+
theme: prismThemes.dracula,
196+
additionalLanguages: ['powershell', 'php', 'ini', 'bash', 'docker'],
196197
},
197198
docs: {
198199
sidebar: {
@@ -202,6 +203,9 @@ const config = {
202203
},
203204
markdown: {
204205
mermaid: true,
206+
hooks: {
207+
onBrokenMarkdownLinks: 'warn'
208+
}
205209
},
206210
};
207211

0 commit comments

Comments
 (0)