view bin/tomfoolery @ 6704:03e844e72c03

<zgrep> ` echo \'if o.access(a, o.X_OK):print u.check_output([\'bash\',a]),;exit()\' >> bin/tomfoolery
author HackBot
date Wed, 10 Feb 2016 02:56:40 +0000
parents f7fce8bff6a0
children a920f0e17459
line wrap: on
line source

#!/usr/bin/env python
import os as o,sys as s,subprocess as u
if len(s.argv) != 2:print"I have nothing to say to you.";exit()
if not o.path.isdir(t):print"Somebody should take a peek inside me.";exit()
if o.access(a, o.X_OK):print u.check_output([bash,a]),;exit()