SHARE
TWEET

desecteste

murilonerdx Sep 19th, 2019 (edited) 110 in 339 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. clear
  3. rm -rdf desecteste
  4. echo BASICO
  5. echo voce se encontra em  
  6. echo __________________________________________
  7. pwd && ls
  8. echo _________________________________________
  9. echo DIGITE O NOME DO ARQUIVO PARA ANALISAR
  10. read local
  11. echo "Voce digitou $local "
  12. mkdir desecteste | cp $local desecteste
  13. cd desecteste
  14. cut -d " " -f 1 $local | sort | uniq -c | sort -unr > ips
  15. grep "Nmap" $local >  ataque
  16. grep "Nessus" $local >> ataque
  17. grep "Nikto" $local | cut -d " " -f 3 >> ataque
  18. echo DIGITE O IP MAIS REQUISITADO
  19. echo "requisicoes | ips"
  20. cat ips
  21. echo digite o ip com mais requisicoes abaixo
  22. read ip
  23. echo _________________________________________________
  24. echo QUANDO O ATAQUE COMECOU
  25. grep "$ip" $local | cut -d " " -f 4 | head -n1 > quandoataquecomecou
  26. cat quandoataquecomecou
  27. echo _________________________________________________
  28. echo QUANDO O ATAQUE ACABOU
  29. grep "$ip" $local | cut -d " " -f 4 | tail -n1 > quandoataqueterminou
  30. cat quandoataqueterminou
  31. echo _________________________________________________
  32. echo requisicoes de $local
  33. grep "$ip" $local | cut -d '"' -f 2 $local > requisicoes
  34. echo ___________VERIFIQUE OS ARQUIVOS DA PASTA DESECTEST  _____________
  35. ls
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top