Curl Vbulletin

Status
Not open for further replies.

bishi

sleeves!
Jun 5, 2007
55
0
0
has anyone ever tried to write a script in php that logs into a vbulletin forum. im having a bitching time with this. I just want to know if it has been done with curl :anon.sml:
 


Yes, I wrote a little script that logged into dcsprox*y.com once and saved any new proxies.

The login is easy:
Code:
    //Login
        $post_fields = "vb_login_username=***&vb_login_password=&s=&do=login&vb_login_md5password=******eea582903f3f3b9d6833******&vb_login_md5password_utf=******eea582903f3f3b9d6833******";
        $page = $this->curl->post('http://www.dcsprox*y.com/login.php?do=login','http://www.dcsprox*y.com/login.php?do=login',$post_fields);
That's it - you're in. Use the curl class I posted elsewhere in the forum.

Of course you need to use the md5 of your password, but when you sniff your login from the web you should see that. You are sniffing right? (mozdev.org - livehttpheaders: index)

Cheers,

Leon
 
great thanks. yeah im sniffing alright. i had no idea you posted that class already.
 
hmm your class is doing the same thing my original script was doing. It logs me in but once vbulletin redirects to the forum's main page , it shows that im not logged in.
 
but once vbulletin redirects to the forum's main page

Vbulleting shouldn't be redirecting anything. It's just:

Code:
$post_fields = "vb_login_username=***&vb_login_password=&s=&do=login&vb_login_md5password=******eea582903f3f3b9d6833******&vb_login_md5password_utf=******eea582903f3f3b9d6833******";

//Login
$page = $this->curl->post('http://www.dcsprox*y.com/login.php?do=login','http://www.dcsprox*y.com/login.php?do=login',$post_fields);

//Grab page on the forum you want
$page = $this->curl->get('http://www.dcsprox*y.com/anonymous-http-proxies/');
By doing that you maintain the same cookie for each request.
 
Status
Not open for further replies.