In this chapter, we will learn about the BeEF tool and how to hook it using a man-in-the-middle framework (MITMf). We'll then learn how to steal a username and password by redirecting the user to a dummy website where we will capture all their credentials. Then, we will gain access to the Meterpreter section using BeEF. Lastly, we will learn how to detect Trojans both manually and with a sandbox.
In this chapter, we will cover the following topics:
- The BeEF tool
- BeEF – hook using a MITMf
- BeEF – basic commands
- BeEF – Pretty Theft
- BeEF – Meterpreter 1
- Detecting Trojans manually
- Detecting Trojans using a sandbox