hdarwin

pox_jail.py

Oct 19th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. #!/usr/bin/python -u
  2. from os import system, chdir
  3. chdir('/home/id/')
  4. print 'You can\'t escape me. You can try, that makes this more fun!'
  5. print 'Do you want to get source code? just type \'sksms QkrQkrdlek.\' then you would! trust me :)'
  6. while True:
  7.     try:
  8.         cmd = raw_input('# ')
  9.         if cmd == 'sksms QkrQkrdlek.':
  10.             system('cat {}'.format(__file__))
  11.             continue
  12.         if cmd == 'help':#secret menu
  13.             print 'base64:aHR0cHM6Ly9nb28uZ2wvY1ptM3JL'
  14.             system('ls bin;lsb_release -a;uname -a;id -a')
  15.             continue
  16.         if not all([c in '=()[]{}$+-:;~_' for c in cmd.decode('base64')]):raise 1
  17.         system('echo "{}" | base64 -d | env -i PATH=bin /bin/rbash'.format(cmd))
  18.     except:
  19.         print 'filter!'
  20.         exit(0)
Advertisement
Add Comment
Please, Sign In to add comment