
모의 침투 테스터를 위한 Docker 레지스트리 도구로, 이미지를 열거하고 가져올 수 있습니다.

이 프로젝트는 Docker 레지스트리를 가져와 카탈로그에 있는 각 이미지의 매니페스트와 구성을 약탈합니다.
Google의 crane 명령 패키지를 사용하며, docker의 keychain 의미 체계를 따릅니다.
이 동작을 재정의하려면 https://github.com/google/go-containerregistry/tree/master/pkg/authn/k8schain에 설명된 대로 authn.DefaultKeychain을 변경하면 됩니다.
git clone https://github.com/nccgroup/go-pillage-registries.git
cd go-pillage-registries
go install ./...
$ pilreg
Usage:
pilreg <registry> [flags]
Flags:
-c, --cache string Path to cache image layers (optional, only used if images are pulled)
-h, --help help for pilreg
-i, --insecure Fetch Data over plaintext
-r, --repos strings list of repositories to scan on the registry. If blank, pilreg will attempt to enumerate them using the catalog API
-o, --results string Path to directory for storing results. If blank, outputs configs and manifests as json object to Stdout.(must be used if 'store-images` is enabled)
-k, --skip-tls Disables TLS certificate verification
-s, --store-images Downloads filesystem for discovered images and stores an archive in the output directory (Disabled by default, requires --results to be set)
-t, --tags strings list of tags to scan on each repository. If blank, pilreg will attempt to enumerate them using the tags API
-w, --workers int Number of workers when pulling images. If set too high, this may cause errors. (optional, only used if images are pulled) (default 8)
예제 디렉터리에는 비밀을 가진 서버인 Docker 이미지의 예제가 있습니다.