Jump to content

Automated Cpanel Login


Recommended Posts

So I have an odd request, if djbob doesn't mind I'd like him or whoever manages the cPanel login page to give the login button a name or id, preferrably id. I made an automation script in Ruby that opens IE, moves to the cPanel login page, and submits it with the proper info. Problem is it fills the user and pass inputs but doesn't click the button because the getElementByClass method isn't supported, I tried, and so in attempting to run this line:

 

button = doc.getElementByClass("input-button")

 

the script crashes. The reasons for the script are: a) I can :D b ) I don't like typing passwords, I get paranoid in public and c) it's easier to remember passwords when they are in programs heh.

Link to comment
Share on other sites

Hi,

 

This is the code for the login button:

 

 

<button id="login_submit" tabindex="3" type="submit" name="login">

 

 

So you should use getElementByID() method where id is "login_submit"

 

Check out whether this solves your purpose.

 

Note Admins:

 

I'm generally sharing the solution I have no intention of disclosing any code of yours in public.

Edited by IshaanRodrigues
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...