Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Created July 21, 2015 18:00
Show Gist options
  • Save heyalexej/7224db45e8880c35e823 to your computer and use it in GitHub Desktop.
Save heyalexej/7224db45e8880c35e823 to your computer and use it in GitHub Desktop.
Dirty Chat Spammer
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
function chat() {
$("#nameInput").val("IamBOT");
$("#messageInput").val(guid());
$("input[type=submit]").submit();
setTimeout(function(){ chat(); }, 2000);
};
chat();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment