!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/usr/lib64/python2.6/Demo/scripts/   drwxr-xr-x
Free 237.02 GB of 981.82 GB (24.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     mkrcs.py (1.78 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#! /usr/bin/env python2.6

# A rather specialized script to make sure that a symbolic link named
# RCS exists pointing to a real RCS directory in a parallel tree
# referenced as RCStree in an ancestor directory.
# (I use this because I like my RCS files to reside on a physically
# different machine).

import os

def main():
    rcstree = 'RCStree'
    rcs = 'RCS'
    if os.path.islink(rcs):
        print '%r is a symlink to %r' % (rcs, os.readlink(rcs))
        return
    if os.path.isdir(rcs):
        print '%r is an ordinary directory' % (rcs,)
        return
    if os.path.exists(rcs):
        print '%r is a file?!?!' % (rcs,)
        return
    #
    p = os.getcwd()
    up = ''
    down = ''
    # Invariants:
    # (1) join(p, down) is the current directory
    # (2) up is the same directory as p
    # Ergo:
    # (3) join(up, down) is the current directory
    #print 'p =', repr(p)
    while not os.path.isdir(os.path.join(p, rcstree)):
        head, tail = os.path.split(p)
        #print 'head = %r; tail = %r' % (head, tail)
        if not tail:
            print 'Sorry, no ancestor dir contains %r' % (rcstree,)
            return
        p = head
        up = os.path.join(os.pardir, up)
        down = os.path.join(tail, down)
        #print 'p = %r; up = %r; down = %r' % (p, up, down)
    there = os.path.join(up, rcstree)
    there = os.path.join(there, down)
    there = os.path.join(there, rcs)
    if os.path.isdir(there):
        print '%r already exists' % (there, )
    else:
        print 'making %r' % (there,)
        makedirs(there)
    print 'making symlink %r -> %r' % (rcs, there)
    os.symlink(there, rcs)

def makedirs(p):
    if not os.path.isdir(p):
        head, tail = os.path.split(p)
        makedirs(head)
        os.mkdir(p, 0777)

if __name__ == "__main__":
    main()

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.1973 ]--