Skip to content

Commit d98d2ff

Browse files
committed
Update setuid_viscosity
* Use cmd_exec
1 parent 60bdc10 commit d98d2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/osx/local/setuid_viscosity.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def check
6161
return CheckCode::Safe
6262
end
6363

64-
check = session.shell_command_token("find #{datastore["Viscosity"]} -type f -user root -perm -4000")
64+
check = cmd_exec("find #{datastore["Viscosity"]} -type f -user root -perm -4000")
6565

6666
if check =~ /ViscosityHelper/
6767
return CheckCode::Vulnerable

0 commit comments

Comments
 (0)