Using hooks + API
Hey,
I've created a hook in PHP for several cPanel API functions such as: Api2::AddonDomain::addaddondomain and Api2::Park::park, that part is working fine and will run when a user adds an addon domain or parked domain.
The problem I'm having is how do I access the WHM/cPanel API from inside my hook, since the hook runs as the cPanel user I'm unable to access the .accesshash file and I need this script to make dome DNS zone changes for the domains.
I've looked through the documentation and I'm not seeing anything useful, has anyone else had this issue?
-
Hello :) The following documentation should help: Guide to Standardized Hooks - Privilege Escalation Thank you. 0
Please sign in to leave a comment.
Comments
1 comment