View Full Version : Help with Post hash
DaBoss2000
03-24-2011, 01:21 PM
ok. so i am making my forums a standalone "poster" so a user can post topics without having to be on the forums. well i have successfully gotten logged in through my application and obtained the security token and but where i am stucc at is with the post hash.
what is the format for obtaining a post hash and what credentials do i need to have in order to create the posthash?
i know the login is md5(pass & salt) which successfully logs me in. but idk how to md5 the post hash. everything i've hashed gives me different hashes
Lynne
03-24-2011, 03:02 PM
Do a search in your files for "$posthash" and you should find it.
$posthash = md5($poststarttime . $vbulletin->userinfo['userid'] . $vbulletin->userinfo['salt']);
DaBoss2000
03-24-2011, 05:00 PM
i dont understand php code? i need the md5 hash what is the salt and what is the userid? is the userid the userid "loggedin" = 2 or the actual users login name?
what is the md5 method? is it md5(posttime & userid & salt) or what?
maybe a sample md5 hash sequence so i can actually see what data is being hashed.
Lynne
03-24-2011, 08:21 PM
I'm not understanding what you are asking. md5 is explained here - http://php.net/manual/en/function.md5.php Have you never come across an md5 checksum for files before? It's the same sort of thing. All I can really do it point you to the function.
the userid is the the user.userid field from the database and the salt is the user.salt field from the database.
DaBoss2000
03-24-2011, 09:25 PM
i am trying to use pure winsocc to create an "auto" poster for my forums so i do not have to be on site to post. i log in fine with it n when i try to post using my program it the data " a security token is missing" although i have the security token included in my paccet so i assume it needs the correct posthash is needed. what i meant by the userid and salt. can u post a sample userid and salt? i dont know if by userid u mean the id being logged in with. or the cookie given bacc by the forums bbuserid=2. and salt. is this is the session hash or the security token? just need a sample so i can see if what i have as the "salt" and "userid" r even the right data to use
--------------- Added 1301007469 at 1301007469 ---------------
nevermind. i got it figured out. ty anyways
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.