Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Login using a new incognito window
- 2) Open settings page
- 3) IP Ban all the spammers currently online (using the sidebar popup)
- 4) Right click anywhere on the page, click Inspect
- 5) Navigate to the console tab in the newly popped up window.
- 6) Paste the below code:
- var min_level = 2;
- var whitelist = [];
- $.getJSON('/all_online_users', function(users) {
- $.each(users, function(idx, usr) {
- if ((usr.tag === 'initiate') && (usr.level < min_level)){
- whitelist.push(usr.username);
- }
- })
- });
- console.log(whitelist);
- function banhammer() {
- window.setInterval(function() {
- $.getJSON('/all_online_users', function(users) {
- $.each(users, function(idx, usr) {
- if ((usr.tag === 'initiate') && (usr.level < min_level) && ($.inArray(usr.username, whitelist) == -1)){
- console.log('Banning ' + usr.username);
- whitelist.push(usr.username);
- $.post('/ban_ip', {'username': usr.username, 'comment': 'spam'});
- };
- })
- })
- }, 2000)
- };
- banhammer();
- 7) The bot will be active as long as the window is kept open (if you reload or navigate away from the page, you'll have to repeat steps 3-6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement