modules/exploits/osx/local/persistence.rb
Method initialize
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Mac OS X Persistent Payload Installer',
Method add_launchctl_item
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def add_launchctl_item
label = File.basename(backdoor_path)
cmd_exec("mkdir -p #{File.dirname(plist_path).shellescape}")
# Note: the OnDemand key is the OSX < 10.4 equivalent of KeepAlive
item = <<-EOI