vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Login / Cookie / Password Question (https://vborg.vbsupport.ru/showthread.php?t=174192)

dfc005 03-26-2008 07:48 AM

Login / Cookie / Password Question
 
Got a two questions I was hoping a someone could answer for me!

1) If I set the cookies bbuserid and bbpassword manually and then go to vBulletin, should I be logged in?

2) What value is stored in bbpassword? Obviously some md5 format of the password. But when I compare bbpassword cookie to the value in the database, it's different.

Cheers!

--------------- Added [DATE]1206522553[/DATE] at [TIME]1206522553[/TIME] ---------------

Hmmm, helps if you search the forums I guess.

I swear I'd looked for this before and couldn't find anything but just did another search and found about eleventy million threads on the exact same topic.

Sorry!

Opserty 03-26-2008 09:54 AM

Did you find the answers you were looking for then?

dfc005 03-26-2008 10:03 AM

Yeah, found the answers to the above questions. Have opened up about 20 more questions but am finding the answers to those as I type this.

Cheers!

Opserty 03-26-2008 10:27 AM

Ok, just to help out anyone else whole comes by this thread it might be nice if you posted the answers. :D

Dismounted 03-26-2008 10:53 AM

The password cookie uses this formula:
PHP Code:

md5(md5(md5($password) . $salt) . $license

Noting that $password (above) is plain-text, not the hash from the database. If hashing the database's password:
PHP Code:

md5($hashedpassword $license



All times are GMT. The time now is 02:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01049 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete