# The Browser Exploitation Framework (BeEF)

BeEF is a penetration testing tool that focuses on the web browser and facilities various client side attacks.

## Links

* [Website](http://beefproject.com/)
  * [Blog](http://blog.beefproject.com/)
* [Github](https://github.com/beefproject/beef)
  * [Wiki](https://github.com/beefproject/beef/wiki)
* [Twitter](https://twitter.com/beefproject)

## Getting BeEF

### Supported Platforms

* Debian
  * Kali[1)](https://wiki.hacksoc.co.uk/guides/beef#fn__1)
* Ubuntu
* MacOS

The projects [Github](https://github.com/beefproject/beef) wiki provides [install instructions](https://github.com/beefproject/beef/wiki/Installation) for those platforms.

### Dependencies

* Ruby 2.1 or higher
  * Ruby Version Manager
  * [Gems](https://github.com/beefproject/beef/blob/master/Gemfile)
* SQLite 3.x

### TL;DR

1. Install Ruby Version Manager
2. Set Ruby version to 2.1.5
3. Git clone BeEF
4. Install Ruby Gems
5. Done

## Extensions

### Social Engineering

#### Web Cloner

The Web Cloner extension allows you to take a pixel for pixel clone, as far as is possible[2)](https://wiki.hacksoc.co.uk/guides/beef#fn__2), of a site and host it yourself. Cloned pages are modified on the fly to automatically hook any user that visits the page as well as intercept any `form` field POST requests.

The post ['BeEF web cloning, BeEF mass mailing, Social Engineering with better BeEF!'](http://blog.beefproject.com/2012/09/beef-web-cloning-beef-mass-mailing.html) has a more detailed intro to the Web Cloner and a getting started using `curl`.

[1)](https://wiki.hacksoc.co.uk/guides/beef#fnt__1)

BeEf is included with Kali Linux. See: <http://tools.kali.org/tools-listing>

[2)](https://wiki.hacksoc.co.uk/guides/beef#fnt__2)

Custom £600 fonts and social medial widgets are a PITA


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.hacksoc.co.uk/help-guides/software/tools/the-browser-exploitation-framework.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
