Skip to content

Instantly share code, notes, and snippets.

View vincentcox's full-sized avatar

Vincent Cox vincentcox

View GitHub Profile
@mgeeky
mgeeky / pickle-payload.py
Last active December 4, 2023 00:56
Python's Pickle Remote Code Execution payload template.
#!/usr/bin/python
#
# Pickle deserialization RCE payload.
# To be invoked with command to execute at it's first parameter.
# Otherwise, the default one will be used.
#
import cPickle
import sys
import base64
<?php
$c = new Client('https://poste.io/admin/api/v1/', 'admin@poste.io', 'admin');
$c->delete('domains/t.com');
$c->post('domains', ['name' => 't.com']);
$c->post('boxes', ['email' => 't@t.com', 'passwordPlaintext' => 't', 'name' => 't']);
$c->patch('boxes/t@t.com', ['name' => 'a', 'disabled' => true, 'passwordPlaintext' => 'a']);

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: