1 unstable release

Uses old Rust 2015

0.1.0 Feb 27, 2019

#5 in #linkable

LGPL-3.0

95KB
2.5K SLoC

libautoboxxy

Exports a static constructor that is executed by the dynamic loader as soon as the library is loaded. It then executes $AUTOBOXXY from the environment as a boxxy command and terminates the process.

cargo build && AUTOBOXXY="exec id" LD_PRELOAD=`pwd`/../target/debug/libautoboxxy.so date

Usage with php

There's a bug feature in php that allows you to execute code even when shell_exec and friends are disabled by php.ini. This uses autoboxxy under the hood to take over the sendmail invocation to execute arbitrary code. See boxxy.php to see how this is done.

This technique has been borrowed from Chankro.

Dependencies

~8.5MB
~154K SLoC