SANS Penetration Testing: Daily Archives: Dec 06, 2017

A Spot of Tee

The Restricted Bash Shell By Daniel Pendolino Counter Hack The Bash shell is a nearly ubiquitous way to interact with a Linux console. A little know feature is the restricted Bash shell, which you can invoke by calling rbash or bash -restricted. While it isn't something you would normally opt into, it certainly a situation … Continue reading A Spot of Tee


Go To The Head Of The Class: LD_PRELOAD For The Win

By Jeff McJunkin Imagine a Linux binary compiled from the following source: #include #include int main(){ int duration = 15 * 1000 * 1000; /* microseconds are hard */ printf("Starting, please wait..."); usleep(duration); printf(" Done!\ The program started up or whatever.\ "); return 0; } Now, dear readers, what if we wanted the program to … Continue reading Go To The Head Of The Class: LD_PRELOAD For The Win