Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Dec 23, 2023
1 parent a5698f6 commit e722429
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ def list_minions
def check
return CheckCode::Safe('salt-master does not seem to be installed, unable to find salt-master executable') if salt_master.nil?

if writable?(datastore['WritableDir'])
vprint_good("#{datastore['WritableDir']} is writable, and salt-master executable found")
return CheckCode::Vulnerable
end
CheckCode::Safe("#{datastore['WritableDir']} is not writable")
CheckCode::Vulnerable('salt-master executable found')
end

def exploit
Expand Down Expand Up @@ -141,6 +137,7 @@ def exploit
end

def on_new_session(_session)
super
cli.core.use('stdapi') if !cli.ext.aliases.include?('stdapi')

begin
Expand Down

0 comments on commit e722429

Please sign in to comment.