RootOfTheNull

Andrew's Code

Apr 19th, 2015
283
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import subprocess
  2.  
  3. a = subprocess.Popen( ['echo','<YOURPASSWORDGOESHERE>'], stdout=subprocess.PIPE )
  4. b = subprocess.Popen( [ 'sudo', '-S', 'date' ], stdin = a.stdout )
RAW Paste Data