Path: blob/master/modules/misc/local_file_theft/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# local_file_theft6#7# Shamelessly plagurised from kos.io/xsspwn89class Local_file_theft < BeEF::Core::Command10def self.options11[12{ 'name' => 'target_file',13'description' => 'The full path to the local file to steal e.g. file:///var/mobile/Library/AddressBook/AddressBook.sqlitedb',14'ui_label' => 'Target file',15'value' => 'autodetect' }16]17end1819def post_execute20content = {}21content['result'] = @datastore['result']22save content23end24end252627