HEX
Server: Apache
System: Linux host.creative4all.com 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User: agrimasfadeltral (1173)
PHP: 8.3.30
Disabled: exec,passthru,shell_exec,system,proc_open,parse_ini_file,show_source
Upload Files
File: //scripts/postwwwacct
#!/usr/bin/python2
# cPanel script hook for account creations   
# Documentation: http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/ScriptHooks

import sys
from subprocess import call

argv = sys.argv

# Initialize VALUES as a dict comprised of key/value pairs passed by cPanel when this script is invoked

VALUES={}
range=xrange(2, len(sys.argv), 2)
for i in range:
    VALUES[sys.argv[i - 1]] = sys.argv[i]

user = VALUES['user']

# Automatically create a domain key
print "Adding DKIM"

call(['/usr/local/cpanel/bin/dkim_keys_install', user])