The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

add script link to cPanel interface

Discussion in 'General Discussion' started by GlobeDomain, Jun 24, 2004.

  1. GlobeDomain

    GlobeDomain Member

    Joined:
    Jun 5, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm planning to add a link into the cPanel interface (I know it will get overwritten by cPanel updates).
    The link is a perl script that will do some processing.

    1) One way is to put the script in my account (say, the url is http://xyz/script.cgi) and add the link to this where I want it under /usr/local/cpanel/base/frontend/x/
    But, anyone can then execute http://xyz/script.cgi without giving the password.
    Does anyone know where the cPanel usernames and encrypted passwords are stored so I can grab them for my .htaccess password file?
    Or if there is some script where I enter the username and it returns the encrypted password, that'll do too.

    2) Another way is to keep the script under /usr/local/cpanel/base/frontend/x/ and add a link to that.
    However, it seems to be always displaying the code instead of executing the cgi script.

    Thanks in advance.

    Ankur
     
  2. akashgoel

    akashgoel Registered

    Joined:
    Jun 26, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I'm no veteran, but I believe their names and passwords are stored in mysql, database: mysql table: users. What type of hashing is in those passwords I wanted to know? Is there a way I can do the same using PHP?

    Akash
     
Loading...

Share This Page