Advertisement
Guest User

tuxjr

a guest
Feb 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rm templinks templinks2 2>/dev/null >/dev/null
  4. touch templinks
  5. touch templinks2
  6.  
  7. extrai() {
  8. # EXTRAI OS LINKS DO SITE | templinks
  9. links="$(curl -s "https://pastebin.com/archive" | grep "i_p0" | cut -d"=" -f5 | cut -d'"' -f2 | tr -d "/")"
  10. sleep 2
  11. for l in $links; do
  12. r=$(grep "$l" templinks)
  13. if [ "$r" == "" ]; then echo $l >> templinks; fi
  14. done
  15. }
  16.  
  17. acessa() {
  18. # ACESSAR OS LINKS E FILTRAR OS QUE CONTÉM A PLAVRA PUBLIC | templinks2
  19. for r in $1; do
  20. echo "$r" >> templinks2
  21. r2="$(curl -s "https://pastebin.com/raw/$r" | grep "$2")";
  22. if [ "$r2" != "" ]; then echo "https://pastebin.com/raw/$r"; fi;
  23. sleep 2
  24. done
  25. }
  26.  
  27. [ "$1" == "" ] && { clear;echo "[+] Uso: $0 \"string\""; exit; }
  28. clear
  29. echo "[+] Monitorando \"$1\" em pastebin.com"
  30. echo
  31. while :; do
  32. extrai
  33. links="$(diff templinks templinks2 | cut -d" " -f2 | grep -v ",")"
  34. acessa "$links" "$1"
  35. sleep 3
  36. done
  37. echo by tuxjr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement