Jump to content

Wordpress


rootx
 Share

Recommended Posts

!!! htaccess... ok I write my code and it works fine but... one of this website have the admin directory protect by htaccess user an pwd.. I need to insert my user and password inside this box, any Idea to do this.

#include<IE.au3>

$1="myname"
$2="mypass"

;Create Obj
$oIE=_IECreate()
_IELoadWait($oIE)
;navigate
_IENavigate($oIE,"https://www.myblog.com/blog/wp-login.php")
_IELoadWait($oIE)

;Get Username Input and Passwort Input
$username=_IEGetObjById($oIE,"user_login")
$password=_IEGetObjById($oIE,"user_pass")

;Set Inputs
_IEFormElementSetValue($username,$1)
_IEFormElementSetValue($password,$2)

;submit event
Local $oSubmit = _IEGetObjByName($oIE, "wp-submit")
_IEAction($oSubmit, "click")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...