-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Geolocation
BeEF has several methods to determine the hooked browser's physical location.
To enable IP Geolocation, download the MaxMind database. This can be achieved by using the ./update-geoipdb
script:
./update-geoipdb
By default, the MaxMind database is installed into /opt/GeoIP
. If you opt to install the database manually or change the path, you'll also need to update the path in config.yaml
:
geoip:
enable: true
database: '/opt/GeoIP/GeoLite2-City.mmdb'
The Geolocation module will retrieve the physical location of the hooked browser using the Phonegap API.
The Get Geolocation module will retrieve the physical location of the hooked browser using the Geo-location API. The user will be prompted to share their location with the hooked origin, unless the hooked origin has been white-listed previously.
The Get Physical Location module will retrieve Geo-location information based on the neighbouring wireless access points using commands encapsulated within a self-signed Java Applet. The user will be prompted to run the Java applet.
The details will include:
- GPS Coordinates details
- Street Address details
If the victim machine has a firewall that monitors outgoing connections (Zonealarm, LittleSnitch, etc), calls to Google maps will be alerted.
Note that modern Java (as of Java 7u51) will outright refuse to execute self-signed Java applets unless they're added to the exception list.
- Configuration
- Interface
- Information Gathering
- Social Engineering
- Network Discovery
- Metasploit
- Tunneling
- XSS Rays
- Persistence
- Creating a Module
- Geolocation
- Using-BeEF-With-NGROK