a totally unnecessary composer shell

background A silly reverse shell invoked via the Composer Dependency Manager. Source here Composer, which is most probably the most popular PHP dependency manager allows for scripts to run as callbacks on based an event. Callbacks are normally triggered just before or after certain events. It is possible to provide shell commands to the scripts property in the required composer.json file (with a few restrictions), but this method echoes the command that it executes. A slightly more covert approach would be to execute a cleverly named static function in a class included in the codebase. It has to be one that can be autoloaded by composer. ...

September 30, 2015 · 1 min · Leon Jacobs

Quick Win: Quickly Execute Last Shell Command

Work clever, not hard This will be the first post of a series of quick shell tips for getting things done, fast. Infact, it will probably just serve as a notepad for me on the topic ;) Last shell command If you are using a shell, such as Bash, which is pretty much the default on most Linux distributions, then you probably know that you can just use the up arrow to get the last command....

June 23, 2013 · 1 min · Leon Jacobs