Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt Website Login

Discussion on AutoIt Website Login within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 3
Join Date: Nov 2017
Posts: 29
Received Thanks: 3
Question AutoIt Website Login

I have a problem creating a Login with AutoIt for mylolsim.net.

I gathered the POST packet used for login and tried to use it in AutoIT, but no matter how I implement the stuff I get a response saying: <font color='red'>This username does not exist.</font>



I would really appreciate any given help!
Thanks in advance.
R4pTix is offline  
Old 09/07/2019, 01:24   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 166
Quote:
Originally Posted by R4pTix View Post
I have a problem creating a Login with AutoIt for mylolsim.net.

I gathered the POST packet used for login and tried to use it in AutoIT, but no matter how I implement the stuff I get a response saying: <font color='red'>This username does not exist.</font>



I would really appreciate any given help!
Thanks in advance.
Change
Code:
$login_packet = 'username: '& $Username
;...
$login.SetRequestHeader('Content-Type', 'text/html; charset=UTF-8')
To
Code:
$login_packet = 'username='&$Username&'&password='&$Password
;...
$login.SetRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
Then on login response u will get something like this:
<script>window.location.href = 'index.php';</script>

So u need to make a http request with response cookie to that url
To get response headers use this
Code:
;...
$sourcecode = $login.ResponseText()
$headers = $login.getAllResponseHeaders()
MsgBox(0,"",$headers)
;Specific header
$cookie = $login.getResponseHeader("Set-Cookie")
elmarcia is offline  
Thanks
2 Users
Reply




All times are GMT +2. The time now is 11:19.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.