
패키지 관리자를 통해 설치되지 않은 바이너리 파일 찾기
패키지 관리자를 통해 설치되지 않은 바이너리 파일 찾기
빌드
$ make build
빌드가 완료되면 다음 명령으로 bindfinder를 실행할 수 있습니다:
$ ./binfinder --images <comma separated list of image> --output data --top 20
출력은 이미지별 diff 파일입니다. top 플래그(기본값 0)가 0보다 크면 인기 있는 N개 이미지를 가져와 binfinder를 실행합니다.
diff를 찾은 후 생성된 diff 파일을 분석하려면, 모든 json 파일에서 diff별 개수를 얻기 위해 분석을 실행할 수 있습니다:
$ ./binfinder --analyze --output data
출력은 analysis.csv 파일입니다.
레지스트리에서 binfinder를 실행하려면 CLI에 --registry host 플래그를 전달하세요.
$ ./binfinder --top=10 --registry=http://localhost:5000 --output data
CLI는 리포지토리에서 이미지를 가져와 바이너리 diff를 확인합니다.
DTR 레지스트리에서 binfinder를 실행하려면 CLI에 --registry={HOSTNAME} --dtr --user={USER} --password={PASSWORD} 플래그를 전달하세요.
$ ./binfinder --top=10 --registry=https://vm01-7b86bb7b.westeurope.cloudapp.azure.com:8443 --dtr --user={user} --password={password} --output data
CLI는 DTR에서 이미지를 가져와 바이너리 diff를 확인합니다.
alpine.sh, ubuntu.sh, centos.sh, centos_get_all_pkg.sh 파일이 필요합니다. 이 셸 파일들은
명령이 실행될 디렉터리에 있어야 합니다.