# See the file 'doc/COPYING' for copying permission
#
# @note The following file contains patches for DataMapper Data Objects Adapter (dm-do-adapter)
# This patch fixes the following error:
# DataObjects::URI.new with arguments is deprecated, use a Hash of URI components (/home/username/.rvm/gems/ruby-1.9.2-p290/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:231:in `new')
# The error is patched in dm-do-adapter 1.1.1 however it has yet to be released.
@@ -47,8 +47,8 @@ class Authentication < BeEF::Extension::AdminUI::HttpController
ua_ip=@request.ip# get client ip address
@body='{ success : false }'# attempt to fail closed
# check if source IP address is permited to authenticate
ifnotpermited_source?(ua_ip)
# check if source IP address is permitted to authenticate
ifnotpermitted_source?(ua_ip)
BeEF::Core::Logger.instance.register('Authentication',"IP source address (#{@request.ip}) attempted to authenticate but is not within permitted subnet.")
return
end
...
...
@@ -105,19 +105,22 @@ class Authentication < BeEF::Extension::AdminUI::HttpController
#
# Check the UI browser source IP is within the permitted subnet