
cve-2020-10977 읽기 및 실행
get_secret.py - 주요 스크립트입니다. 먼저 thewhiteh4t의 코드를 사용하여 cve-2020-10977을 악용하고 주어진 저장소에서 secret_key_base를 추출합니다. 그런 다음 cookie_maker.sh를 실행하여 페이로드가 포함된 쿠키를 생성합니다.
Usege: python get_secret.py http://gitlab.vh foo gfhjkm123
cookie_maker.sh - Docker를 시작하고 악성 쿠키를 생성합니다. 단독으로 사용할 수 있습니다.
Usage: cookie_maker.sh <secret_key_base> "echo /etc/passwd > /tmp/owned"
thewhiteh4t의 저장소를 기반으로 함: https://github.com/thewhiteh4t/cve-2020-10977
버그가 있을 수 있을 것입니다. get_secret.py가 올바르게 종료되었는데 쿠키가 출력되지 않았다면 다시 실행하세요.