Please the rubocop god
parent
e945773576
commit
c73e7673b1
|
@ -89,19 +89,17 @@ class MetasploitModule < Msf::Post
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def run
|
def run
|
||||||
if datastore['IGNORE_SYSTEM']
|
if datastore['IGNORE_SYSTEM']
|
||||||
do_migrate
|
do_migrate
|
||||||
elsif !datastore['IGNORE_SYSTEM'] && is_system?
|
elsif !datastore['IGNORE_SYSTEM'] && is_system?
|
||||||
print_error('You are running as SYSTEM! Aborting migration.')
|
print_error('You are running as SYSTEM! Aborting migration.')
|
||||||
elsif datastore['IGNORE_SYSTEM'] && is_system?
|
elsif datastore['IGNORE_SYSTEM'] && is_system?
|
||||||
print_error('You are running as SYSTEM! You will lose your privileges!')
|
print_error('You are running as SYSTEM! You will lose your privileges!')
|
||||||
do_migrate
|
do_migrate
|
||||||
elsif !datastore['IGNORE_SYSTEM'] && !is_system?
|
elsif !datastore['IGNORE_SYSTEM'] && !is_system?
|
||||||
print_status('You\'re not running as SYSTEM. Moving on...')
|
print_status('You\'re not running as SYSTEM. Moving on...')
|
||||||
do_migrate
|
do_migrate
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue