Advertisement
Guest User

Untitled

a guest
May 27th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/python2
  2.  
  3.  
  4. from subprocess import Popen, PIPE, STDOUT
  5.  
  6. b64_f = open('/tmp/butterfly.b64', 'r');
  7. b64_s = ''
  8. for line in b64_f:
  9. b64_s += line
  10.  
  11. p = Popen(['ConsoleAI'], stdout=PIPE, stdin=PIPE, stderr=STDOUT, shell=True)
  12.  
  13. console_stdout = p.communicate(input=b64_s)[0]
  14.  
  15. print(console_stdout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement