Forum Moderators: coopster

Message Too Old, No Replies

Curl problem

pro.imdb.com

         

MrFortuna

2:03 pm on Aug 2, 2004 (gmt 0)

10+ Year Member



Hey hacker guys, I have some problem with secure pro.imdb.com site.

I successfully login with IE to pro.imdb.com and got cookie, the same cookie copy in some file and in curl point to this file, so when ran curl I got login page instead of main index page, so I think pro.imdb.com has some security and I don't know where to look to solve the problem. Any help would be appreciated. thanks.

$ch = curl_init("$imdb");
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, $mysite);
curl_setopt($ch, CURLOPT_COOKIEFILE, $setcookie);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);

bcolflesh

2:04 pm on Aug 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is the $useragent variable an actual generic useragent?

MrFortuna

2:18 pm on Aug 2, 2004 (gmt 0)

10+ Year Member




yes,

$useragent = "Mozilla/4.0 (compatible; MSIE 6.0; Win32)";

bcolflesh

2:23 pm on Aug 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does it fail w/other UAs, ex:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

and other $mysite referrers?

MrFortuna

3:36 pm on Aug 2, 2004 (gmt 0)

10+ Year Member



Yes it fails, I tryed many useragent and different options with curl, they have some kind protection.
bcolflesh I could give u login data?

bcolflesh

3:50 pm on Aug 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't give me your login data - I will only use it for evil.

If you are using Windows, get a free proxy server like:

HTTPeek
[freshmeat.net...]

and analyze what is happening during successful transactions - that should help you emulate one with CURL.