Add geoip dependency to BrowserDetails

This commit is contained in:
Brendan Coles
2017-10-15 09:27:00 +00:00
parent 2749d6620a
commit 9d8a311e72

View File

@@ -102,6 +102,7 @@ module BeEF
# geolocation
if config.get('beef.geoip.enable')
require 'geoip'
geoip_file = config.get('beef.geoip.database')
if File.exists? geoip_file
geoip = GeoIP.new(geoip_file).city(zombie.ip)