Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ok i know this is a real dumb question.... Details »»
ok i know this is a real dumb question....
Version: , by Atian Atian is offline
Developer Last Online: Dec 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-27-2002 Last Update: Never Installs: 0
 
No support by the author.

how do i insert hacks to my board?
i am a newbie at php and stuff,i got alot of scripts,
but i dont know how to insert them,
can someone tell me?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-27-2002, 11:14 AM
Elanor's Avatar
Elanor Elanor is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just take a look at the instructions that are written in the txt files. Most of them say: Open file xxx.php - find code 'bla bla this' and replace it with 'bla bla that'. It's just a 'copy n' paste' work.
And always keep a copy of your original file in case you did something wrong.
For practise you should try it with some simple hacks first (which need only little modifications to the files).
Reply With Quote
  #3  
Old 03-27-2002, 11:33 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Atian, what makes this community different from other BB's is that we help eachothers. dont feel shy to ask. if you dont get the answer rightaway, be patient, one of us will help u.. for sure.

as for your prob, follow those rules:
- backup ur files always (as elanor said).
- make sure you know what php and mysql version your host is running.
- read carefully the install files and make sure you understand what exacly must be modified. (do not modify nothing if you are not sure, ask in the forums your question, in the thread the hacker opened, to get support)
- since you claim not to have alot experience in php and mysql, start with simple hacks. soon you will understand the mechanism and be able to install more complex ones.
- if possible, install a test board, where you test your hack there. if everything is ok, aply it to the live one. contact your host if they can add a "test" mysql database on your server and install your test board there.
- always double check everything you hack. a dot extra could make a huge difference.

regards,
nakkid.
Reply With Quote
  #4  
Old 03-27-2002, 11:39 AM
Atian's Avatar
Atian Atian is offline
 
Join Date: Mar 2002
Location: Korea O_O naw.....usa =p
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok,what do i do for example if i want to insert this hack

PHP Code:
<?php
  $usergroupida 
;
  
$usergroupidb ;
  
$usergroupidc ;
 if(!isset(
$PHP_AUTH_USER)) {
    
header("WWW-Authenticate: Basic realm=\"Karma Login\"");
    
header("HTTP/1.0 401 Unauthorized");
    echo 
"Sorry no instant windows network login cancel authority allowed\n";
    exit;
  } else {
 
$link mysql_connect("localhost""peerbooks_zack""rpm123123"//mysql server address , login name , password
        
or die ("Could not connect");
    print (
"Connected successfully");
    echo 
"<br>";
    
mysql_select_db ("ffu_vb"//this shouldn't need changing unless you have it in a different database
        
or die ("Could not select database");
            
    
$query = ("SELECT password FROM user WHERE username='$PHP_AUTH_USER'");
    
$result mysql_query ($query)
        or die (
"Query failed");
    while (
$line mysql_fetch_array($result)) {
        while(list(
$col_name$col_value) = each($line)) {
    
$password $col_value ;
  }
  }
  if (
$password != $PHP_AUTH_PW)  {
   echo 
"You must enter a valid login ID and password to access this 
resource\n"
;
   exit;
  }
  else {
    
mysql_free_result ($result);
    
$query "SELECT usergroupid FROM user WHERE username='$PHP_AUTH_USER'";
    
$result mysql_query ($query)
        or die (
"Query failed");
    while (
$line mysql_fetch_array($result)) {
        while(list(
$col_name$col_value) = each($line)) {
            
$turkpower $col_value ;
        }
    }
  }
  
mysql_free_result ($result);
  if (
$turkpower 1) {
   echo 
"You are not permitted to do this action. Please go back.\n";
   exit;
  }
  else {
  if (
$turkpower 2) {
   echo 
"You are not permitted to do this action. Please go back.\n";
   exit;
  }
  else {
  if (
$turkpower 3) {
   echo 
"You are not permitted to do this action. Please go back.\n";
   exit;
  }
  else {
  if (
$turkpower 4) {
   echo 
"You are not permitted to do this action. Please go back.\n";
   exit;
  }
  else {
  if (
$turkpower 5) {
   echo 
"</p>Welcome: $PHP_AUTH_USER<br>";
  }
  }
mysql_close ($link);
echo 
"<form action=\"karma2.php\" method=\"post\">";
echo 
"<input type=\"hidden\" name=\"auth\" value=\"'yes'\">";
echo 
"<input type=\"text\" name=\"username\"><br>";
echo 
"<input type=\"submit\">";
echo 
"</form>";
}
  else {
  if (
$turkpower 6) {
   echo 
"</p>Welcome: $PHP_AUTH_USER<br>";
  }
  }
mysql_close ($link);
echo 
"<form action=\"karma2.php\" method=\"post\">";
echo 
"<input type=\"hidden\" name=\"auth\" value=\"'yes'\">";
echo 
"<input type=\"text\" name=\"username\"><br>";
echo 
"<input type=\"submit\">";
echo 
"</form>";
}
  else {
  if (
$turkpower 6) {
   echo 
"</p>Welcome: $PHP_AUTH_USER<br>";
  }
  }
mysql_close ($link);
echo 
"<form action=\"karma2.php\" method=\"post\">";
echo 
"<input type=\"hidden\" name=\"auth\" value=\"'yes'\">";
echo 
"<input type=\"text\" name=\"username\"><br>";
echo 
"<input type=\"submit\">";
echo 
"</form>";
}
?>
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 11:58 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.03771 seconds
  • Memory Usage 2,260KB
  • Queries Executed 17 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_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
  • 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