codexual

DoS / DDoS attack on your Web / Home Server - Ubuntu

Oct 18th, 2017
1,849
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. // You Commands / Content is below all this junk, but you should read this junk if you support me! <3
  2.  
  3. // Codexual @ NuLLocK.com
  4. // YouTube.com/Codexual
  5. // Twitter.com/Codexual
  6. // Facebook.com/Codexual
  7. // Instagram.com/Codexual
  8. // Snapchat.com/add/Codexual
  9. // Twitch.tv/Codexual
  10. // Mixer.com/Codexual
  11. //
  12. // Gaming
  13. // https://steamcommunity.com/id/Codexual
  14. // Xbox - Codexual
  15. // PS4 - Codexual
  16. //
  17. // Hey Viewer, I would like to thank you. Speaking of being thankful, if you truly support my work, or just wanna be a good sport. // All I all of you is to follow me on my social media, like my content on all social media if you see me post something, and share // my content when you see me post something. Everything does help out, thank you again!
  18. //
  19. // Every Saturday I do a Q/A video, so if you have a question you may ask me at http://nullock.com/askme - Look for the Q/A video on
  20. // my YouTube Channel! (:
  21.  
  22.  
  23. // verify HTTP / SYN
  24.  
  25. netstat -an | grep :80 | sort
  26.  
  27. // verifiy all TCP / UDP connections
  28.  
  29. netstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
  30.  
  31. //Bans IP's
  32.  
  33. //iptables -A INPUT 1 -s IPHERE -j DROP/REJECT
  34.  
  35. iptables -I INPUT -s 192.168.1.35 -j DROP
  36. iptables -D INPUT -s 192.168.1.35 -j DROP
  37.  
  38.  
  39. // Kill && Restart connection
  40.  
  41. killall -KILL httpd
  42.  
  43. service httpd start #For Red Hat systems
  44. /etc/init/d/apache2 restart #For Debian systems
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment