view wisdom/hackego @ 2317:32451419357a

<Jafet> (echo \'#!/bin/sh\'; echo \'a() { p=$(echo -n $(ps -p $0 -oppid | tail -1)); if egrep " \\| cat\\$" /proc/$p/cmdline; then ps -p $0 -ocmd | tail -1; else a $p; fi }\'; echo \'a $$\') > bin/quine2
author HackBot
date Fri, 01 Mar 2013 02:00:55 +0000
parents 0895366d8560
children c777e2d91031
line wrap: on
line source

HackEgo, also known as HackBot, is a bot that runs arbitrary commands on Unix. See `help for info on using it. You should totally try to hax0r it! Make sure you imagine it's running as root with no sandboxing.