internetwache / GitTools

A repository with 3 tools for pwn'ing websites with .git repositories available
MIT License
3.78k stars 612 forks source link

usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object> #5

Closed Arinerron closed 7 years ago

Arinerron commented 7 years ago
usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
   or: git cat-file (--batch|--batch-check) < <list_of_objects>

<type> can be one of: blob, tree, commit, tag
    -t                    show object type
    -s                    show object size
    -e                    exit with zero when there's no error
    -p                    pretty-print object's content
    --textconv            for blob objects, run textconv on object's content
    --batch[=<format>]    show info and content of objects fed from the standard input
    --batch-check[=<format>]
                          show info about objects fed from the standard input

Found commit: ee9061b25d8a35bae8380339f187b44dc26f4999
usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
   or: git cat-file (--batch|--batch-check) < <list_of_objects>

<type> can be one of: blob, tree, commit, tag
    -t                    show object type
    -s                    show object size
    -e                    exit with zero when there's no error
    -p                    pretty-print object's content
    --textconv            for blob objects, run textconv on object's content
    --batch[=<format>]    show info and content of objects fed from the standard input
    --batch-check[=<format>]
                          show info about objects fed from the standard input

usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
   or: git cat-file (--batch|--batch-check) < <list_of_objects>

<type> can be one of: blob, tree, commit, tag
    -t                    show object type
    -s                    show object size
    -e                    exit with zero when there's no error
    -p                    pretty-print object's content
    --textconv            for blob objects, run textconv on object's content
    --batch[=<format>]    show info and content of objects fed from the standard input
    --batch-check[=<format>]
                          show info about objects fed from the standard input

usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
   or: git cat-file (--batch|--batch-check) < <list_of_objects>

<type> can be one of: blob, tree, commit, tag
    -t                    show object type
    -s                    show object size
    -e                    exit with zero when there's no error
    -p                    pretty-print object's content
    --textconv            for blob objects, run textconv on object's content
    --batch[=<format>]    show info and content of objects fed from the standard input
    --batch-check[=<format>]
                          show info about objects fed from the standard input

usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
   or: git cat-file (--batch|--batch-check) < <list_of_objects>

<type> can be one of: blob, tree, commit, tag
    -t                    show object type
    -s                    show object size
    -e                    exit with zero when there's no error
    -p                    pretty-print object's content
    --textconv            for blob objects, run textconv on object's content
    --batch[=<format>]    show info and content of objects fed from the standard input
    --batch-check[=<format>]
                          show info about objects fed from the standard input

Found commit: 8ac4f76df2ce8db696d75f5f146f4047a315af22
usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
   or: git cat-file (--batch|--batch-check) < <list_of_objects>

<type> can be one of: blob, tree, commit, tag
    -t                    show object type
    -s                    show object size
    -e                    exit with zero when there's no error
    -p                    pretty-print object's content
    --textconv            for blob objects, run textconv on object's content
    --batch[=<format>]    show info and content of objects fed from the standard input
    --batch-check[=<format>]
                          show info about objects fed from the standard input

it actually prints that hundreds of times, but I snipped it.

This happens when you use the Extractor script.

caioluders commented 7 years ago

Same here

gehaxelt commented 7 years ago

Hey @Arinerron @caioluders thanks for reporting the issue.

What operating system are you using? Is it possible that this might be related to this commit https://github.com/internetwache/GitTools/commit/e8a7f3be81b72ddb9acf22366db2a6a5017d3a90 ?

Arinerron commented 7 years ago

@genaxelt I'm using Arch Linux.

caioluders commented 7 years ago

OS X and Ubuntu here

2017-03-17 13:42 GMT-03:00 Arinerron notifications@github.com:

@genaxelt I'm using Arch Linux.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/internetwache/GitTools/issues/5#issuecomment-287407093, or mute the thread https://github.com/notifications/unsubscribe-auth/AC08tM9I1XJ7MVFjYw1Su46T1K1eqQlzks5rmrfwgaJpZM4Me0JU .

-- Att

geolado | g3ol4d0

gehaxelt commented 7 years ago

Hey, I hope that I've fixed the issue now. At least it seems to work for me (tm) :)

 ./extractor.sh /tmp/test/ /tmp/test-ext | head -n 20 
Found commit: 6f4dc89efdd6eeb5aa0aff12cac69a473f5de1da
Found file: /tmp/test-ext/0-6f4dc89efdd6eeb5aa0aff12cac69a473f5de1da/README.md
Found commit: 8e6814ce9b47c7727fcb697ffad28259e6aa58a6
Found folder: /tmp/test-ext/1-8e6814ce9b47c7727fcb697ffad28259e6aa58a6/Finder
Found file: /tmp/test-ext/1-8e6814ce9b47c7727fcb697ffad28259e6aa58a6/Finder/README.md
Found file: /tmp/test-ext/1-8e6814ce9b47c7727fcb697ffad28259e6aa58a6/Finder/gitfinder.py
Found file: /tmp/test-ext/1-8e6814ce9b47c7727fcb697ffad28259e6aa58a6/README.md
Found commit: a7e78fae32259eac4e7750f8b154c2c588280fa5
Found folder: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/Dumper
Found file: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/Dumper/README.md
Found file: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/Dumper/gitdumper.sh
Found folder: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/Finder
Found file: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/Finder/README.md
Found file: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/Finder/gitfinder.py
Found file: /tmp/test-ext/2-a7e78fae32259eac4e7750f8b154c2c588280fa5/README.md
Found commit: 1acf865a30778b5344fa385bd29bcb32ce24df9a
Found folder: /tmp/test-ext/3-1acf865a30778b5344fa385bd29bcb32ce24df9a/Dumper
Found file: /tmp/test-ext/3-1acf865a30778b5344fa385bd29bcb32ce24df9a/Dumper/README.md
Found file: /tmp/test-ext/3-1acf865a30778b5344fa385bd29bcb32ce24df9a/Dumper/gitdumper.sh
Found folder: /tmp/test-ext/3-1acf865a30778b5344fa385bd29bcb32ce24df9a/Extractor
Arinerron commented 7 years ago

@caioluders easyCTF? ;)

caioluders commented 7 years ago

@Arinerron Yep hahaha , solved manually but the tool is pretty good

Arinerron commented 7 years ago

@caioluders same :)