Login into a vBulle...
 
Notifications
Clear all

Login into a vBulletin Board using Python. (Cookie re-login method)


Posts: 0
Topic starter
(@Tonakai)
New Member
Joined: 10 years ago

Hey guys,this script is for those people who just started making bots and want to try out something on vBulletin boards. I've workd on vBulletin for 4 years and i just foundt this piece of script used to login,
it was a Market Bot i've made back in time so yeah.

The script it's wrote in Python and enables auto-login,that's needed becouse if you stay too much logged in a vBulletin board this will auto disconnect you,kind of "go to sleep bro".

To avoid this i've enabled cookies on my script and with this you're able to stay logged in!

//
	//  log.py
	//  cookie method (vBulletin)
	//
	//  Created by Cris on 23/11/13.
	//  Copyright (c) 2013 Cris. All rights reserved.
	//
	import hashlib
	import requests
	
	username = 'yourusername'
	password = 'yourpassword'
	BASE_URL = 'http://www.example.com'
	session = requests.Session()
	session.post(BASE_URL + 'login.php?do=login', {
	    'vb_login_username':        config.username, //vb_login_username is the variable vBulletin uses when you input your Username for logging in
	    'vb_login_password':        '',//Same for the password
	    'vb_login_md5password':     hashlib.md5(config.password.encode()).hexdigest(),//vBulletin uses MD5 encode
	    'vb_login_md5password_utf': hashlib.md5(config.password.encode()).hexdigest(),
	
	    'cookieuser': 1, //That allows you to stay logged in as a real nerd
	    'do': 'login',
	    's': '',
	    'securitytoken': 'guest'
	})
	
Reply
Name of the Video Game, and any other Tags