PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/thread-self/root/proc/self/root/proc/self/root/opt/tier1adv/bin/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/thread-self/root/proc/self/root/proc/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()