Giter Club home page Giter Club logo

discord-vpn-ddos-attack-alerts's Introduction

Discord DDoS Notification

[D]DoS Notifications sent to your Discord Server from your Dedicated Server, VPS or Discord Bot.

This script sends a notification to discord using a webhook when a DDos attack is detected on your Dedicated Server or VPS server. It was written in Shell Script so it will work with linux execution environments.

How to start using script

Step 1

Head over to Discord and create a new webhook in a server and channel of your choice.

Step 2

Download the discordalerts.sh and discord.service. You can edit any lines in discordalerts.sh such as the Alert message, Location or host to your liking then save your changes.

Step 3

Use an FTP client to place discordalerts.sh into /root and place discord.service into /etc/systemd/system.

Move discord.service to Systemd run

  mv /root/discord.service /etc/systemd/system/discord.service

Create a "dumps" folder for PCAPS run

  mkdir /root/dumps

Open your SSH terminal and run the following commands.

apt-get update && sudo apt-get upgrade -y

systemctl daemon-reload

systemctl start discord

systemctl enable discord

service discord start && service discord status

The results after you enter step 4. commands

root@chivpn1:~# service discord start && service discord status
● discord.service - Traffic Alert System
 Loaded: loaded (/etc/systemd/system/discord.service; enabled; vendor preset: enabled)
 Active: active (running) since Fri 2022-08-19 20:42:36 CDT; 59min ago
    Main PID: 149923 (bash)
    Tasks: 2 (limit: 2304)
    Memory: 3.5M
    CGroup: /system.slice/discord.service
         ├─149923 /bin/bash discord.sh
         └─150941 sleep 300

Aug 19 21:33:42 chivpn1 bash[149923]: [21B blob data]
Aug 19 21:33:42 chivpn1 bash[150901]: Running as user "root" and group "root". This could be danger>
Aug 19 21:33:42 chivpn1 bash[150901]: Capturing on 'eth0'
Aug 19 21:34:00 chivpn1 bash[150901]: 300 packets captured
Aug 19 21:34:00 chivpn1 bash[149923]: Fri 19 Aug 2022 09:34:00 PM CDT Detecting Attack Packets.
Aug 19 21:39:00 chivpn1 bash[149923]:  Attack Detected Monitoring Incoming Traffic
Aug 19 21:39:00 chivpn1 bash[150939]:   % Total    % Received % Xferd  Average Speed   Time    Time>
Aug 19 21:39:00 chivpn1 bash[150939]:                                  Dload  Upload   Total   Spen>
Aug 19 21:39:00 chivpn1 bash[150939]: [158B blob data]
Aug 19 21:39:00 chivpn1 bash[149923]: Paused for.

Screenshots

Discord

alt tag

Guilded

alt tag

Need help?

Discord GunGameOG#9082

Discord Server

Server Hostings

Galaxy Gate

  • DDoS Protection
  • Web Hosting
  • Dedicated Servers
  • Virtual Servers
  • Domains

-------- Updated Version --------

https://github.com/GunGameOG/2023-Python-DDoS-Detection-with-Discord-notification

discord-vpn-ddos-attack-alerts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

discord-vpn-ddos-attack-alerts's Issues

Syntax problem

Starting Attack Logs
./discordalerts.sh: line 11: - : syntax error: operand expected (error token is "- ")

discord.service: Failed with result 'exit-code'.

● discord.service - Discord DDoS Alert System
Loaded: loaded (/etc/systemd/system/discord.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2023-12-17 18:56:18 EET; 301ms ago
Process: 54799 ExecStart=/bin/bash discordalerts.sh (code=exited, status=1/FAILURE)
Main PID: 54799 (code=exited, status=1/FAILURE)
CPU: 29ms

: discord.service: Main process exited, code=exited, status=1/FAILUREDec 17 18:56:18
discord.service: Failed with result 'exit-code'.

Syntax error messages

When running command --> service ddos start && service ddos status

This error would pop up after status.

root@OGGAMINGNETWORK1:~# service ddos start && service ddos status
● ddos.service - DDoS Alert System
Loaded: loaded (/etc/systemd/system/ddos.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-05-30 13:56:43 CEST; 1h 21min ago
Main PID: 889 (bash)
Tasks: 2 (limit: 4618)
Memory: 6.5M
CGroup: /system.slice/ddos.service
├─ 889 /bin/bash ddoslog.sh
└─75298 sleep 1

May 30 15:17:52 OGGAMINGNETWORK1 bash[75184]: ddoslog.sh: command substitution: line 13: syntax error near unexpected token (' May 30 15:17:52 OGGAMINGNETWORK1 bash[75184]: ddoslog.sh: command substitution: line 13: grep -oP $interface: /proc/net/dev \s*(\d+\s+){8}\K\d+''
May 30 15:17:54 OGGAMINGNETWORK1 bash[889]: [17B blob data]
May 30 15:17:54 OGGAMINGNETWORK1 bash[75226]: ddoslog.sh: command substitution: line 11: unexpected EOF while looking for matching '' May 30 15:17:54 OGGAMINGNETWORK1 bash[75226]: ddoslog.sh: command substitution: line 12: syntax error: unexpected end of file May 30 15:17:55 OGGAMINGNETWORK1 bash[75240]: ddoslog.sh: command substitution: line 13: syntax error near unexpected token ('
May 30 15:17:55 OGGAMINGNETWORK1 bash[75240]: ddoslog.sh: command substitution: line 13: grep -oP $interface: /proc/net/dev \s*(\d+\s+){8}\K\d+'' May 30 15:17:57 OGGAMINGNETWORK1 bash[889]: [17B blob data] May 30 15:17:57 OGGAMINGNETWORK1 bash[75297]: ddoslog.sh: command substitution: line 11: unexpected EOF while looking for matching ''
May 30 15:17:57 OGGAMINGNETWORK1 bash[75297]: ddoslog.sh: command substitution: line 12: syntax error: unexpected end of file

curl: (6) Could not resolve host: discord.com

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.