PDA

View Full Version : C++ Authorization of vBulletin Members?


motaaa
08-13-2008, 01:05 AM
Copy/Paste of a vBulletin support ticket I opened, they referred me to this site so here it is...

I'm not sure if you have any C++ coders, but if not could you point me in the right direction. I sell programs and I want to implement a code in my injector that asks for usernames and passwords, then encrypts them and matches them to my SQL. If they match, and are in the appropriate usergroup, then it will inject the DLL.

If they are not subscribed, then I want a message to come up asking them to please subscribe with a link to a subscription page. If there is a username/password mismatch then I want to tell them to please go register. As far as the DLL injection and error codes, I can handle that part. What I'm asking is if you guys have a way of comparing usernames/passwords and their appropriate usergroups from an exe to an SQL.

MoT3rror
08-13-2008, 02:38 AM
SELECT * FROM user WHERE username = '$username' AND password = '$password'

If that query returns no rows there is no user with that username and password. Password is hashed md5( md5($password) $salt). Salt comes from the user table.

Then you can look at is_member_of function in functions.php to check if the user is in a usergroup.

Sorry I don't know much about C++ so I can't make a code for you.

motaaa
08-13-2008, 04:50 AM
Alright so I need the algorithm to encrypt in MD-5 Hash and salt, then I need a way to connect to the SQL through C++. Anyone have any experience with this?

Dismounted
08-13-2008, 07:12 AM
Google will have a lot of answers to questions about C++, I'm sure.

RLShare
08-13-2008, 03:03 PM
There is a library/module out there for working with C+ and mysql. I seen it somewhere on the Mysql website. Ive never used it though