Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
Prev Previous Post   Next Post Next
  #3  
Old 08-12-2016, 08:52 PM
kerrghann's Avatar
kerrghann kerrghann is offline
 
Join Date: Jul 2012
Location: Hawaii
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oddly enough that isn't a part that I modified. That's part of the normal vbulletin script. It also works fine and doesn't go on forever, at least until I add my part:

My parts are these:

PHP Code:
$badPassword = array( 
                    
"baseball",    //0 
                    
"1234567",     //1 
                    
"welcome",     //2 
                    
"1234567890",  //3 
                    
"abc123",      //4 
                    
"123456",       //5 
                    
"password",    //6 
                    
"12345678",    //7 
                    
"qwerty",      //8 
                    
"12345",       //9 
                    
"123456789",   //10 
                    
"football",    //11 
                    
"1234",        //12 
                    
"111111",      //13 
                    
"1qaz2wsx",    //14 
                    
"dragon",      //15 
                    
"master",      //16 
                    
"monkey",      //17 
                    
"letmein",     //18 
                    
"login",       //19 
                    
"princess",    //20 
                    
"qwertyuiop",  //21 
                    
"solo",        //22 
                    
"passw0rd",    //23 
                    
"starwars"     //24 
                    
); 
and

PHP Code:
$total_affected $vbulletin->db->query_first(
    SELECT COUNT(userid) AS total_affected 
    FROM " 
TABLE_PREFIX "user 
    WHERE password = MD5(CONCAT(MD5(username),salt)) OR password = MD5(CONCAT(MD5('" 
$badPassword[0] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[1] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[2] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[3] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[4] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[5] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[6] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[7] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[8] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[9] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[10] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[11] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[12] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[13] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[14] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[15] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[16] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[17] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[18] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[19] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[20] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[21] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[22] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[23] . "'),salt)) OR password = MD5(CONCAT(MD5('" $badPassword[24] . "'),salt)) " .
    (
$period 'AND lastvisit < ' . (TIMENOW $period) : '') . 
"
); 
and

PHP Code:
$result $vbulletin->db->query(
        SELECT user.userid, userban.liftdate 
        FROM " 
TABLE_PREFIX "user AS user 
        LEFT JOIN " 
TABLE_PREFIX "userban AS userban 
            ON user.userid = userban.userid 
        WHERE user.password = MD5(CONCAT(MD5(user.username),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" 
$badPassword[0] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[1] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[2] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[3] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[4] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[5] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[6] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[7] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[8] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[9] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[10] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[11] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[12] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[13] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[14] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[15] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[16] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[17] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[18] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[19] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[20] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[21] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[22] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[23] . "'),user.salt)) OR user.password = MD5(CONCAT(MD5(user.'" $badPassword[24] . "'),user.salt)) " .
        (
$period 'AND user.lastvisit < ' . (TIMENOW $period) : '') . 
        AND user.userid > 
$lastuser " 
        (
$languageid "AND user.languageid = " $languageid '') . 
        LIMIT 0, " 
$vbulletin->GPC['quantity'] . 
    "
); 
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:39 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.03881 seconds
  • Memory Usage 2,782KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete