vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Token of Death (cookie ban) (https://vborg.vbsupport.ru/showthread.php?t=131425)

Reeve of shinra 11-12-2006 10:00 PM

Token of Death (cookie ban)
 
Token of Death (cookie ban)
by http://www.shinraonline.com
Version: BETA!

Products: 1
Plugins: 2
Queries: 1 (if the user is in banned group)


THIS IS A BETA... DON'T INSTALL IT...

Really, I mean it. Okay, so it worked on my test forum, but do you really want to be a guinea pig?

Actually, its using the "forumhome_complete" hook to initiate the banning process... I think there's probably a better hook, but I'm not sure where yet.

Sounds cool, does it destroy robots?

Um, no. If a user is banned, it will set a cookie and if they re-register or log onto an alias, they will be auto-banned.


IMPORTANT SIDE NOTE:

If you test this out on your forum, delete the cookie before you log back into your admin account or you will get banned!!

Already locked yourself out? Try these steps by Harmor19
https://vborg.vbsupport.ru/showpost....15&postcount=6

(Next version, I'll add a check so admins are exempt)


Installation:

Step 1: Import product-token_of_death.xml

Step 2: edit the 'Token Of Death: Bake a Cookie!' and change the 8 to your preferred banned usergroup ID. 8 I think is the default.
admincp -> plugin manager -> Token Of Death: Bake a Cookie! (edit)

PHP Code:

if (is_member_of($vbulletin->userinfo8)) 


Step 2: edit the 'Token of Death: Stealth Ban!' plugin and change $TODgroup to the usergroup you want to add the user to.
admincp -> plugin manager -> Token of Death: Stealth Ban! (edit)

PHP Code:

// This is the usergroup you want to change the user to (banned).
$TODgroup 10

Step 3: Take over World!

rezapci 11-13-2006 04:36 AM

reserved :D

COBRAws 11-13-2006 05:06 AM

This should be default. Thanks

harmor19 11-13-2006 07:03 AM

Thanks for the hack

memomemo 11-13-2006 07:09 AM

Please helpp. I am all user and all admin BANNED.
I am not login.

Please helppp

harmor19 11-13-2006 07:34 AM

Log into your FTP
Go to public_html --> forum --> includes
Download "config.php"

Below
PHP Code:

<?php

Add
PHP Code:

define('DISABLE_HOOKS'true); 

Save and Re-upload

Now If you're using Firefox go to Tools --> Options --> Privacy
Click the button that says "Settings". Make sure "Cookies" are ticked and click "OK". Press "OK" again. Close your browser and try going to your site and see if it worked.

For Internet Explorer
Go to Tools --> Internet Options
Click on "Delete Cookies".


Now go into your ACP --> Plugins & Products --> Plugin Manager
Look for "Token Of Death: Bake a Cookie!" and Token of Death: Stealth Ban! (most likely it'll be this one that is causing the problem).

Edit the Plugin named "Token of Death: Stealth Ban" and change "Plugin is Active" to "No".

Edit your 'config.php' file again

Change this
PHP Code:

define('DISABLE_HOOKS'true); 

To this
PHP Code:

//define('DISABLE_HOOKS', true); 

Save and Re-upload.

memomemo 11-13-2006 07:45 AM

Quote:

Originally Posted by harmor19 (Post 1116115)
Log into your FTP
Go to public_html --> forum --> includes
Download "config.php"

Below
PHP Code:

<?php

Add
PHP Code:

define('DISABLE_HOOKS'true); 

Save and Re-upload

Now If you're using Firefox go to Tools --> Options --> Privacy
Click the button that says "Settings". Make sure "Cookies" are ticked and click "OK". Press "OK" again. Close your browser and try going to your site and see if it worked.

For Internet Explorer
Go to Tools --> Internet Options
Click on "Delete Cookies".


Now go into your ACP --> Plugins & Products --> Plugin Manager
Look for "Token Of Death: Bake a Cookie!" and Token of Death: Stealth Ban! (most likely it'll be this one that is causing the problem).

Edit the Plugin named "Token of Death: Stealth Ban" and change "Plugin is Active" to "No".

Edit your 'config.php' file again

Change this
PHP Code:

define('DISABLE_HOOKS'true); 

To this
PHP Code:

//define('DISABLE_HOOKS', true); 

Save and Re-upload.


Hello
I am all change you to tell.
But not working banned.

Message :

You have been banned for the following reason:
No reason was specified.

Date the ban will be lifted: Never

ChavMagnet 11-13-2006 09:33 AM

access your sql through phpmyadmin and enter the banned ip table and remove your ip? Or upload tools.php and reset admin access.

memomemo 11-13-2006 10:15 AM

Ok I am coreect with my friend admin password.

But this problem Homepage click and this user root administrator > imported_user carrying. (no ip banned)

// This is the usergroup you want to change the user to (banned).
$TODgroup = 10;
This 10 = imported_user.

I am different admin login with pole admincp login (Dont homepage login) and this groups permission on.

Just now working.

aveon 11-13-2006 10:32 AM

thank you soo much installed

justim123 11-13-2006 10:53 AM

Nice work man!

radarhunter 11-13-2006 01:14 PM

tried everything not working please help me

Reeve of shinra 11-13-2006 01:23 PM

Did you edit the usergroup ID's in the two plugins that are added to correspond with your banned usergroup ID's?

radarhunter 11-13-2006 01:29 PM

i am not able to log in after also i tried everything you said

help me man i am getting many emails from my members asking me an explanation for their banning

common man help me please

radarhunter 11-13-2006 01:30 PM

yes i did

i did exactly what was told in the mod

Reeve of shinra 11-13-2006 01:36 PM

well remove or disable the hack for now as per the instruction. You'll need to unban your users. I'll take a look for you when I get home if you send PM me an admin username and login that has access to plugins and products.

radarhunter 11-13-2006 01:41 PM

how to remove it or disable it

as it`s not allowing me to enter the admincp


Edit : got back my powers :D

the above said method doesn`t work man

Reeve of shinra 11-13-2006 02:10 PM

Follow the steps here to disable plugins:
https://vborg.vbsupport.ru/showpost....15&postcount=6

Once the plugins are disabled, you can get into the admin and disable this plugin.

Reeve of shinra 11-13-2006 02:12 PM

I havent tried this out but try saving this code as token-of-life.php and uploading it into your forums folder. This should delete the cookie and change the usergroup from 10 (banned?) to 2 (registered).

PHP Code:

<?php

/* ###############   TOKEN OF LIFE ############### */

// SET SOME VARIABLES:  

$newusergroup 2// this should be your registered usergroup, the unbanned group you want to move them to.
$TODgroup 10// change to whatever your Token of Death usergroup is or was.


// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
// change the line below to the actual filename without ".php" extention.
// the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation.

define('THIS_SCRIPT''test'); 

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
        
// change the lines below to the list of actual templates used in the script
        
'test_mytesttemplate1',
        
'test_mytesttemplate22',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');

// #################### HARD CODE JAVASCRIPT PATHS ########################
$headinclude str_replace('clientscript'$vbulletin->options['bburl'] . '/clientscript'$headinclude);

// ########################################################################
// ######################### START MAIN SCRIPT  #################################
// ########################################################################

    
$navbits = array(); 
    
// change the line below to contain whatever you want to show in the navbar (title of your custom page)
    
$navbits[$parent] = 'Token of Life';

    
$navbits construct_navbits($navbits);
    eval(
'$navbar = "' fetch_template('navbar') . '";');


// #################### LETS EAT THE COOKIE AND UNBAN PEOPLE ########################

// We'll change the cookie so it expires at the end of the browser session.
    
if (is_member_of($vbulletin->userinfo$TODgroup))
    {
    
vbsetcookie("TOD",0,0);
    }

// Lets change the users group

    
if (is_member_of($vbulletin->userinfo$TODgroup))
    {
               
$db->query_write("
            UPDATE user SET
            usergroupid = 
$newusergroup
            WHERE userid = " 
$vbulletin->userinfo['userid'] . "
            "
);
    }


// change the line below to contain the name of the actual main output template used in your script
//eval('print_output("' . fetch_template('Token_of_Life') . '");');

// No Content Header for Now
header("HTTP/1.0 204 No Content");

?>


Gizmo5h1t3 11-13-2006 02:59 PM

Quote:

Originally Posted by radarhunter (Post 1116267)
how to remove it or disable it

as it`s not allowing me to enter the admincp


sounds like ure havin probs m8...

Quote:

THIS IS A BETA... DON'T INSTALL IT...

Really, I mean it. Okay, so it worked on my test forum, but do you really want to be a guinea pig?
i read the first bit....didnt you?

Tru2Chevy 11-13-2006 03:06 PM

Great idea! I'll be keeping an eye on this....

- Justin

bada_bing 11-13-2006 04:07 PM

Wow this would be really cool..... Please let me know when this is out of beta or installable.. Dont want to be the test monkey :D

Also will this work on 3.5.x ?

aveon 11-13-2006 07:07 PM

Quote:

Originally Posted by radarhunter (Post 1116267)
how to remove it or disable it

as it`s not allowing me to enter the admincp


Edit : got back my powers :D

the above said method doesn`t work man


hey man i have the same problem how did u solve it help please

aveon 11-13-2006 07:22 PM

anybody please help meh is there anyway to log in to da admin cp

Reeve of shinra 11-13-2006 07:37 PM

were you guys testing this out on yourselves? I'm not sure why your having these problems.

aveon 11-13-2006 08:36 PM

Quote:

Originally Posted by Reeve of shinra (Post 1116574)
were you guys testing this out on yourselves? I'm not sure why your having these problems.


hey friend tjnx for tha produck but when i installed the priduct it change mine and all the other members id to group 10 right and i cannot log in to admincp anymore and i triend all the solutuons given but none of them worked for me if you can help me cause my members are goin crazy

Mecho 11-13-2006 09:28 PM

Sounds good . but Next version will be great i think :)

Thanks for sharing

Shazz 11-13-2006 09:52 PM

So If they cleared their cookies it would reset?

Hornstar 11-14-2006 07:52 AM

This could become really handy ^^ however a simple clear cookies would stop this from happening, so in a way, the really annoying users would figure this out in no time :/

Nice work tho, it seems really original.

Alfa1 11-14-2006 07:46 PM

Could you please make an option to connect this to the Miserable users member group? After getting re-banned right away, most banned members will start to think about clearing their cookies. But if a returning banned member is automaticly put into Miserable users, then it will just seem like the site is acting weird and is much more fun as well. :)

Sonic625 11-15-2006 03:52 AM

Tested on a forum and it started banning members for no reason. What is the difference between 'Token Of Death: Bake a Cookie and 'Token of Death: Stealth Ban! settings? should there be a new usergroup created? I set both to 8 (banned)

I started unbanning members and noticed some were being put into the coppa Registation group and still showing members the banned message until I saved them to the registered usergroup again.

Shazz 11-15-2006 04:59 AM

Quote:

Originally Posted by hornstar1337 (Post 1116916)
This could become really handy ^^ however a simple clear cookies would stop this from happening, so in a way, the really annoying users would figure this out in no time :/

Nice work tho, it seems really original.

Sooo, That clears the cookie bann... eh

aveon 11-17-2006 05:20 PM

im waiting for the new version when are u gunna release it bro??

The Finman 11-17-2006 11:59 PM

Quote:

Originally Posted by Alfa1 (Post 1117364)
Could you please make an option to connect this to the Miserable users member group? After getting re-banned right away, most banned members will start to think about clearing their cookies. But if a returning banned member is automaticly put into Miserable users, then it will just seem like the site is acting weird and is much more fun as well. :)

I agree...I would love to be able to use this with Paul's fantastic "Miserable Users" hack

I am trying to work on a Mod (hack) that I would like to develop. My mod would display a user's registration IP and E-mail in their profile for Mods and/or Admins only. Mods/Admins could instantly see a user's registration IP & E-mail by clicking on that user's profile without having to log into their ModCP or AdminCP...and would be able to view their E-mail address even if the user chooses to hide it from regular members. Mine really isn't doing anything new, just reorganizing information so it's easier to get. I've have a few people trying to help with mine, I will see what they think about yours, as I feel it could be useful in adding another "layer" of difficulty in stopping trolls/problem posters.

A great example is I have a user that uses anonymous proxies to get back in, I ban his new proxy IP and he changes it. I've also installed Paul M's (I think Paul makes the bulk of the hacks I use! :cool: ) Proxy to Real IP hack, so it's become a fight between he and I over proxies, so adding a cookie might help, even if only temporarily.


My troll spends a good part of his day looking for workable anonymous (I'm not sure he even knows that he needs anonymous proxies, as I think he just sits there going through proxy after proxy, looking for one that works). Even though the probability in the long run may be that he figures out that it's now also a cookie blocking him...I think it would at the very least make it a little more difficult for trolls as it's another "monkey wrench" thrown at them.

Although there is no technique for getting rid of troll and problem posters that is 100% foolproof (when I resorted to putting new members in the moderation queue, he started getting family and friends to register new accounts with valid IPs and E-mails for him, then giving him the new account), but I think each layer combined (while still not 100%) does increase the "hoops" trolls and problem posters must jump through, thus increasing the difficulty level for trolls versus their stubbornness.

Another thought on your mod (hack), or maybe even a completely different one (might be better) altogether, is I had a friend of mine that ran a UBB board and he developed a mod (hack) that checked what port a user was connecting on and the hack blocked all connections to his forums except for port 80 (http). Same problem, even though many proxies connect using port 80, a very large portion of them don't and he was at least able to cut down on the numbers of trolls using proxies by blocking those proxy connections that weren't on port 80. He moved back to Hungary, and I have no way to reach him, but your idea and the other's (like Paul's) would really help turn the table for admins when it comes to fighting trolls/problem posters. I just wish I was a lot better at PHP and could help directly. :ermm:

I will bookmark this thread and I will check back occasionally, or I will PM you or post if I have something useful to contribute. :)

Reeve of shinra 11-18-2006 12:30 AM

I havent had time to work on this the last few days but due to some of the issues presented, I am thinking of changing the hack so that it adds a cookie and if that cookie is present, it adds to the user to a secondary user group. You could specify that usergroup to be a banned group or a miserable users group. What do you guys think about that?

Incidentally, this hack is open source as in hey just give a line of credit in the post and keep the cool name please kind of way should anyone ever want to add to this.

finman, totally agree, sometimes its just about making them jump through more hoops.

Alfa1 11-18-2006 05:13 AM

Why not combine this hack with the AE detector? They seem to be doing very simular things. AE only alerts when the same pc/cookie is connected to 2 accounts. ToD will move the 2nd account into a secondary group if the 1st account is banned. Both are very handy features. Can't they be handled by one cookie, instead of two? May be worth while to talk to MDPev.

But to answer your question; moving the 2nd account to an additional user group is a good idea IMO.

itsid 11-18-2006 10:01 AM

awesome idea!

I will check that out
without reading your code.. isn't it possible to just add ( AND $bbuserinfo['usergroupid'] != 6) to an appropriate if condition of your hack to avoid admins getting banned while testing?

'sid

G0F0RBR0KE 11-18-2006 03:12 PM

Possible to work on vB 3.5.4 I'm still trying out the code aveon provided.

Bigblah 11-19-2006 08:35 AM

Looking at your code:

Code:

if ($TOD = '1')
It's no wonder that this plugin is banning everyone.

Change it to

Code:

if ($TOD == '1')

MimeSong Erk 11-30-2006 12:21 PM

rofl@people who installed beta software to their main forum, apparently with no db backup, and banned themselves.

This is a great idea and I hope the kinks iron out. We shall be watching your career with great interest, young hack.

As for les miserables integration: miz is a usergroup is it not? Least it was when I installed it! Just have the autoban point to the miz usergroup rather than the banned usergroup. voi, as they say, la. My trolls are well aware of the miz plugin but I bet they would not think of it if their next newly created account suffered the same problem.


All times are GMT. The time now is 05:52 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.01320 seconds
  • Memory Usage 1,867KB
  • 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
  • (2)bbcode_code_printable
  • (11)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete