비트(bit)주세요

[GitHub Opensource] goKart 본문

SUA/오픈소스 보안

[GitHub Opensource] goKart

yglee730 2021. 10. 23. 22:22
728x90

goKart : golang 취약점 점검 애플리케이션

 -> 원격으로도 점검할 수 있다는 장점이 있음

 

https://github.com/praetorian-inc/gokart

 

GitHub - praetorian-inc/gokart: A static analysis tool for securing Go code

A static analysis tool for securing Go code. Contribute to praetorian-inc/gokart development by creating an account on GitHub.

github.com

 

 

1. 설치

go install github.com/praetorian-inc/gokart@latest
* 반드시 go 버전은 1.16 

업그레이드를 하고 설치를 진행했는데 오류때문에 이 부분에서 많은 시간이 소요되었다.

 

 

2. 실행(예시)

또 다른 예시는 github에 명시되어 있음

 

 

3. 참고

버전 업그레이드

https://velog.io/@you1367/Go-1.16-%EC%84%A4%EC%B9%98Ubuntu-20.04

 

Go 1.16 설치(Ubuntu 20.04)

이전 Go언어 테스트 이후 1.16.5로 마이너버전이 업데이트 되었다. 하여 기존에 설치된 버전을 업그레이드한다. 최신버전은 https://golang.org/dl/ 에서 확인 가능하다.

velog.io

https://miiingo.tistory.com/313

 

[Go] Golang 재설치(버전 변경)

기존 Golang 제거 기존에 Golang을 /opt 디렉토리 내에 설치했기 때문에 해당 디렉토리를 모두 제거합니다. (일반적으로는 /usr/local 디렉토리 내에 설치됩니다) 버전을 변경하기 위해 

miiingo.tistory.com

 

go build 중 오류를 해결한 링크

https://stackoverflow.com/questions/60447260/what-causes-this-runtime-internal-error-about-previous-declaration-at-when-bui

 

What causes this runtime internal error about "previous declaration at" when building with Go 1.14 after upgrading from Go 1.13?

After upgrading my go installation folder to Go 1.14 sudo tar -C /usr/local -xzf go1.14.linux-amd64.tar.gz I am receiving a runtime error every time I try to build a program: ~/playground/go/src...

stackoverflow.com