GNU General Public License v3.0

项目介绍

P3GLEG/Whaler 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 GNU General Public License v3.0 许可证,目前获得 1.2k 个 Star、103 次 Fork。

仓库全名
P3GLEG/Whaler
开源许可证
GNU General Public License v3.0
Star 数
1.2k
Fork 数
103
未关闭 Issue
8

README 摘要

Whaler Whaler is a Go program which is designed to reverse engineer docker images into the Dockerfile that created it. It currently performs the following actions Generates a Dockerfile from an Image Searches added filenames for potential secret files Extracts files that were added by the Docker ADD/COPY Instructions It also displays misc. information such as ports open, the user it runs as and environment…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Whaler 用什么语言开发?

主要使用 Go 编写,采用 GNU General Public License v3.0 许可证,目前有 1.2k 个 Star。

Whaler 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 Whaler 的源码?

可以直接克隆仓库:git clone https://github.com/P3GLEG/Whaler.git;安装与运行步骤见仓库 README。

Whaler 最近还在维护吗?

仓库最近一次更新为 4月9日,当前有 8 个未关闭 Issue;Star 数为 1.2k,可作为社区活跃度的参考。

简要分析

热度分
2584
价值分
862
活跃状态
活跃

语言占比

Dockerfile
Go

Release

README

Whaler

Whaler is a Go program which is designed to reverse engineer docker images into the Dockerfile that created it. It currently performs the following actions

  • Generates a Dockerfile from an Image
  • Searches added filenames for potential secret files
  • Extracts files that were added by the Docker ADD/COPY Instructions
  • It also displays misc. information such as ports open, the user it runs as and environment variables.

How to run it

The easiest way is to run the tool in docker container:

docker pull pegleg/whaler
docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock:ro pegleg/whaler -sV=1.36 nginx:latest
docker build --rm -t pegleg/whaler .
alias whaler="docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock:ro pegleg/whaler"
whaler -sV=1.36 nginx:latest

This tool will pull target docker image automatically. Parameter -sV=1.36 is not always required.

How to build it

Git clone the project into your $GOPATH/src directory and perform the following command

go get -u github.com/P3GLEG/Whaler
cd $GOPATH/src/github.com/P3GLEG/Whaler
go build .

How to run it

./Whaler
Usage of ./Whaler:
  -f string
    	File containing images to analyze seperated by line
  -filter
    	Filters filenames that create noise such as node_modules. Check ignore.go file for more details (default true)
  -sV string
    	Set the docker client ID to a specific version -sV=1.36
  -v	Print all details about the image
  -x	Save layers to current directory

评论

暂无评论