User:Π/Blocking script
From RationalWiki
< User:Π
use MediaWiki::Bot; $user = 'TK'; my $pass = 'Stick your password in here'; $editor=MediaWiki::Bot->new($user); $editor->set_wiki('www.conservapedia.com'); $editor->login($user,$pass); $x=0; $y=0; while($x<256){ while($y<256){ $user=$x.'\.'.$y.'\.0\.0\/16'; $test=$editor->test_blocked($user); if($test==0){ $editor->block($user,'infinite','IP available to a vandal site member',1,1,1,0); } else{ $editor->unblock($user); $editor->block($user,'infinite','IP available to a vandal site member',1,1,1,0); } $y=$y+1; } $x=$x+1; $y=0; }