Website login script

01/27/2014 10:31 gian615#1
Can someone post here the source code of Website login script of elitepvpers I will add it in my hack so it will be no leech
01/27/2014 11:40 alpines#2
Just go ahead and look at some TCP / WinHttp scripts, you can easily form them to your wishes.
01/27/2014 14:38 gian615#3
Quote:
Originally Posted by alpines View Post
Just go ahead and look at some TCP / WinHttp scripts, you can easily form them to your wishes.
Well I don't understand you I'm just 13 years old xD
01/27/2014 14:49 xEncounter#4
Basic WinHttp Script

Code:
#include "WinHttp.au3"

Opt("MustDeclareVars", 1)

; Open needed handles
Local $hOpen = _WinHttpOpen()
Local $hConnect = _WinHttpConnect($hOpen, "elitepvpers.com")
; Specify the reguest:
Local $hRequest = _WinHttpOpenRequest($hConnect, Default, "en-us/library/aa384101(VS.85).aspx")

; Send request
_WinHttpSendRequest($hRequest)

; Wait for the response
_WinHttpReceiveResponse($hRequest)

Local $sHeader = _WinHttpQueryHeaders($hRequest) ; ...get full header

; Clean
_WinHttpCloseHandle($hRequest)
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hOpen)

; Display retrieved header
MsgBox(0, "Header", $sHeader)
This is how to get header information and establish a http connection to the website.
01/27/2014 15:28 *~ZEiZM0~*#5
Something like this ?


#include<IE.au3>
;Get Username
$1=InputBox("Username","Type in your Username:")

;If you dont set $1
If @error Then
MsgBox(16,"Error","No username !")
Else

;Get Password
$2=InputBox("Password","Type in your Password:","","•")

;If you dont set $2
If @error Then
MsgBox(16,"Error","No password !")
Else


;Open Browser and wait until Browser loaded
$IE=_IECreate()
_IELoadWait($IE)


;Navigate to "http://www.elitepvpers.com/forum/login.php?do=login" and wait until Browser loaded
_IENavigate($IE,"http://www.elitepvpers.com/forum/login.php?do=login")
_IELoadWait($IE)

;Get Username Input and Passwort Input
$username=_IEGetObjById($IE,"navbar_username")
$password=_IEGetObjById($IE,"navbar_password")


;Tick Stay Logged in Checkbox (Usually it is ticked, so if you dont want to stay logged in, you have to do this step)
$cookie=_IEGetObjById($IE,"cb_cookieuser_navbar")
_IEAction($cookie,"click")


;Set Inputs
_IEFormElementSetValue($username,$1)
_IEFormElementSetValue($password,$2)
EndIf
EndIf
01/27/2014 15:33 ZeiZm0#6
Quote:
Originally Posted by *~ZEiZM0~* View Post
Something like this ?


#include<IE.au3>
;Get Username
$1=InputBox("Username","Type in your Username:")

;If you dont set $1
If @error Then
MsgBox(16,"Error","No username !")
Else

;Get Password
$2=InputBox("Password","Type in your Password:","","•")

;If you dont set $2
If @error Then
MsgBox(16,"Error","No password !")
Else


;Open Browser and wait until Browser loaded
$IE=_IECreate()
_IELoadWait($IE)


;Navigate to "http://www.elitepvpers.com/forum/login.php?do=login" and wait until Browser loaded
_IENavigate($IE,"http://www.elitepvpers.com/forum/login.php?do=login")
_IELoadWait($IE)

;Get Username Input and Passwort Input
$username=_IEGetObjById($IE,"navbar_username")
$password=_IEGetObjById($IE,"navbar_password")


;Tick Stay Logged in Checkbox (Usually it is ticked, so if you dont want to stay logged in, you have to do this step)
$cookie=_IEGetObjById($IE,"cb_cookieuser_navbar")
_IEAction($cookie,"click")


;Set Inputs
_IEFormElementSetValue($username,$1)
_IEFormElementSetValue($password,$2)
EndIf
EndIf
Ohhhhh Sweeet
im so good
Sry was my second acc.
Hope it helped.
01/27/2014 15:55 alpines#7
Actually you don't need _IELoadWait($oIE) because you use _IENavigate with wait param.
Also you could already start with the link instead of creating a blank explorer.
01/28/2014 12:17 gian615#8
Well I just want to know how to add an script that will login here so my hack can start like this one [Only registered and activated users can see links. Click Here To Register...]