Practical Hacking Techniques and Countermeasures