vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   C++ Authorization of vBulletin Members? (https://vborg.vbsupport.ru/showthread.php?t=187968)

motaaa 08-13-2008 01:05 AM

C++ Authorization of vBulletin Members?
 
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

[query]SELECT * FROM user WHERE username = '$username' AND password = '$password'[/query]

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


All times are GMT. The time now is 09:35 PM.

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.01365 seconds
  • Memory Usage 1,711KB
  • 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
  • (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