The BeEF tool
In this and the coming sections, we're going to have a look at a tool called BeEF. The Browser Exploitation Framework (BeEF) allows us to run a number of commands and attacks on a hooked target. A hooked target is basically a target that executes an URL or a JavaScript code given to us by BeEF. Once the target is hooked, we'll be able to run all the commands that BeEF allows us to.
The first thing we're going to have a look at is the main interface of BeEF, how to run it, and a very simple way to hook a target to BeEF. To run BeEF, we just have to click on the BeEF icon on the desktop. It'll automatically run the http://127.0.0.1:3000/ui/panel
URL, which contains the browser interface or the web interface of the tool. It'll ask for a username and a password. The username is beef
and the password is beef
as well. Once logged in, on the left, we'll see the browsers that we have access to, in the Hooked Browsers
pane:

The Online Browsers
are the browsers that we currently have access...