AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help with WebForms (maybe cURL)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
NiJo



Joined: 12 Nov 2005
Posts: 73

PostPosted: Wed Oct 11, 2006 11:59 pm    Post subject: Reply with quote

I got it guys Wink
Well, it actually quite Logical. We just have to keep sending the cookies.
I grabbed firefox and kept playing with the login page: I noticed that when you failled login, It was redirected to a login.php Sub-Page. but when you Did Login correctly, It was redirected to the index.php Page.
So thats actually it. of corse it does not dl anything those times PhiLho, because it isn't login.php that you got, it's index.php. If you send the cookie after, while trying to access the index, You are logged in Very Happy

You have to: Login and save cookie, forget SID. And then send the cookie to future sites ( -b ).
It also works Like you did, just visit URL and save cookie, and than send that cookie to login.php while Filling. No diference, The cookie will update to "Logged-In" after Wink

I made lots of tests with this little AHK code:
Code:
FileDelete, AHKcookies.txt
FileDelete, AHK.html
FileDelete, AHK2.html

run, cmd.exe, %A_ScriptDir%,, PID

sleep 1000
send curl -d "username=USER&password=PSSWD&login=Log+in" -c AHKcookies.txt -o AHK.html http://www.autohotkey.com/forum/login.php
send {Enter}

sleep 800
send curl -b AHKcookies.txt -o AHK2.html http://www.autohotkey.com/forum/index.php
send {Enter}

sleep 3500
Process, Close, %PID%

Well, Gona try in the other site now, But it has that encrypted java... Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group