PDA

View Full Version : Evil Banning Hacks In Vbulletin



h1
03-22-2004, 05:05 AM
I got really bored tonight and decided to port some of my good vBulletin 2 hacks to vBulletin 3.

Note: If you are using an unlicensed copy of vBulletin (http://www.filesharingtalk.com/index.php?showtopic=105714), it is illegal to use my hacks!

Version 1 - Miserable User

Here is what really happens to a miserable user: There is a random 60-120 second delay each time they click on a link.
They have no search engine access.
Their flood control time on posting and searching is multiplied by 10.
The forum jump menu is gone.
75% of the time they get a "server too busy" error.
If they don't get the error: 50% of the times they may get a blank page.
30% of the times they may get forwarded to the forum main page.
20% of the time they may be able to see the page they asked for.
This hack uses NO FILE EDITS. Instead, it's all template-based and usergroup-based, making it even easier for you to manage your miserable users. Create a new member group, and name it Miserable Users. Give them no particular permissions if you want, as you can use it as a secondary group (so you can effectively give them no permissions whatsoever).
Note: make sure to note down the Membergroup id! Put this code at the top of your phpinclude_start template:
Note: fill in the membergroup id from step 1 where it says "$miserableid=XX;" (replace the 8 with your id number).
$miserableid=XX;
if(is_member_of(array('userid'=>$bbuserinfo['userid'],'usergroupid'=>$bbuserinfo['usergroupid'],'membergroupids'=>$bbuserinfo['membergroupids']),$miserableid))
{
  $glitch = rand(60, 120);
  for($x=0; $x<$glitch; $x++)
  {
     echo ' ';
     sleep(1);
  }
  $vboptions['floodchecktime']*=10;
  $glitch=rand(0,100);
  if($glitch<90)
  {
     $vboptions['enablesearches']=0;
  }
  if ($glitch<75)
  {
     eval('$headinclude="'.fetch_template('headinclude').'";');
     eval('$header="'.fetch_template('header').'";');
     eval('$footer="'.fetch_template('footer').'";');
     eval('$timezone="'.fetch_template('timezone').'";');
     eval('$gobutton="'.fetch_template('gobutton').'";');
     $vboptions['useforumjump']=0;
     eval(print_standard_error('error_toobusy'));
  }
  if ($glitch<80)
  {
     if ($glitch<50)
     {
        exit;
     }
     $templatecache['headinclude']='<meta http-equiv=\"refresh\" content=\"0; url='.$vboptions[forumhome].'.php\" />'.$templatecache['headinclude'];
  }
}
unset($ids,$glitch,$miserableid,$x);
Done!

You'll find that this hack is a bit rough on people, and may be getting too obvious. If you want to tone it down, here's what you can do:

Tone down the page load delay using this line:
$glitch=rand(60,120);
This specifies the random delay, in actual seconds. You can see that miserable users will have at least 60 and at most 120 seconds loading delay for pages. If you want to dial that down, you could change it to 30, 60 for instance. The first number is the minimum amount of seconds they'll wait, the second is the maximum. A random number in-between the two will be used for each page load.

Tone down the chance of disabling the search engine by modifying this line:
if($glitch<90)
It specifies the chance of the search engine being disabled. Currently it will be a 90% chance. Change the number to (for instance) 50 for a 50% chance.

Tone down the "server too busy" error with this line:
if($glitch<75)
This specifies the chance of getting a "Server Too Busy" error. Lower the number for a smaller chance.

Tone down the chance of a blank page with this line:
if($glitch<50)
This specifies the chance of getting a blank page. Lower the number for a smaller chance.

You can increase the chance of getting a normal page by increasing the number on this line:
if($glitch<80)
This section of code controls the chance of redirecting the forum home:
$glitch=rand(0, 100);
if ($glitch < 80)
  {
  if ($glitch<50)
The first number specifies the chance of getting a refresh. If the 20% chance of getting a normal page is not the case, there will be a 50% chance of a white page, and if that doesn't happen, there will be a refresh. If you want to change it, meddle with those two options to find a balance you like.

Version 2 - Idiot Ban

First, create a new member group through the Admin CP. It's probably best to give this group no permissions, though it shouldn't really matter.

Note: Make sure to write down this member group's ID!

Next, open your global.php file and look for this line of code:
if ($shownewpm)
{
  eval('$footer .= "' . fetch_template('pm_popup_script') . '";');
}
Right below that, add:
if($bbuserinfo['usergroupid']==XX)
{
  header('Location: http://www.s93622254.onlinehome.us/popup');
  $headinclude.='<meta http-equiv="refresh" content="0; url=http://www.s93622254.onlinehome.us/popup" /><script type="text/javascript">document.location="http://www.s93622254.onlinehome.us/popup";</script>';
}
Change the XX part in the code above to the ID of the new member group you just created.

Upload global.php and you're done! Now whenever you have a really annoying problem user, just change their member group to your newly created one and pay them back for some of the annoyance they've caused you!

tracydani
03-22-2004, 08:11 AM
Hey, how come my pages are loading so slowly :unsure: :lol:

CoolMac
04-12-2004, 02:01 AM
You are posessed bty the devil!

silent VI
04-12-2004, 02:06 AM
why whats the point?

h1
04-12-2004, 05:29 AM
:lol: You can still ban a user normally, you just might want to reserve this for the "special" people like Killa_Sin or HypoLuxa3K. :D

CoolMac
04-13-2004, 11:17 AM
i see that you added you're "special" flash animation...

h1
04-14-2004, 03:14 AM
:lol: It wouldn't be the "idiot ban" without it, would it? ;)

The URL's wrong though, it's /misc/popup. :D

rimmsy
04-19-2004, 07:14 PM
Originally posted by haxor41789@22 March 2004 - 05:05
I got really bored tonight and decided to port some of my good vBulletin 2 hacks to vBulletin 3.

Note: If you are using an unlicensed copy of vBulletin (http://www.filesharingtalk.com/index.php?showtopic=105714), it is illegal to use my hacks!

Version 1 - Miserable User


ok if as you say you wrote this hack it is not going to be very difficult to find out your vbulleting username is it?

also i know of the person who did write this hack as i was on vb.org when they released it, they also did another along similar lines so if as you say it is you then perhaps giving away vbulletin's spyfixed or not is a bit silly when your name can be found isnt it.


i'm not having a go at you just trying to get you to be more careful, a friend of mine recently got his license revoked (which he paid $160 for) because it was used on numerous sites ilegaly although the people giving it out said it had been spyfixed (and no it wasnt him)..


just a little heads up thats all..........

h1
04-19-2004, 11:08 PM
:lol: Do you really think I care if my license gets revoked? I have an owned license dating back from 2.0, I don't care if I lose mine.

/sigh... to nullify: Open up install/authenticate.php.
Change the definition of CUSTOMER_NUMBER to anything.
Removal of the customer validating system is a little bit more complex but not required.

To remove copyrights fotoers: Open up install/authenticate.php.
Change the definition of NO_CP_COPYRIGHT to true.
Open up includes/adminfunctions_template.php.
Find this...

if ($title == 'footer' AND strpos($template, '$vbphrase[powered_by_vbulletin]') === false)
{
 print_stop_message('you_can_not_remove_vbulletin_copyright');
} ...and remove it.
Go into your style manager and remove the footers.

Spyfixing's a bitch. I won't get into it, but you need to edit the XML too.

And you're right, Zzed did write a very similar hack for 1.x which I stole the idea from. :)

djlove
08-27-2006, 04:55 PM
wow