How to use curl for protected login files with CAPTCHA?

MonkeysUncle

New member
Nov 4, 2008
14
0
0
I need a way to grab some content with curl however to access the files I wanna grab, I have to be logged in.

I tried without logging in but all I get on the return page is a message saying "You have to be logged in to view this file".

I also tried sending post data to login but the problem is I need to enter a CAPTCHA.

Any ideas on how to do this? Thanks in advance.
 


Are you saving cookies? You need to collect and pass cookies most likely.

Can you grab the captcha and save it? If so, send the image to decaptcha servers and which will solve it for you. Costs a little, but works just fine. Or at least it did not long ago. Then send the answer to the captcha, along with the cookie and it should work no problem.
 
If not cookies, then get your eyes on session IDs!

You're server session ID is typically stored in a cookie. That or the site has to write custom code to append it to any href on the page so when you switch pages it get's past to the next page. However most sites won't do that because it's generally a waste of fucking time. So start with cookies.