diff --git a/lib/msf/core/post/android/priv.rb b/lib/msf/core/post/android/priv.rb index 3f7732a3b4..42d4bc09e4 100644 --- a/lib/msf/core/post/android/priv.rb +++ b/lib/msf/core/post/android/priv.rb @@ -19,7 +19,7 @@ module Priv def is_root? id = cmd_exec('id') uid = id.scan(/uid=(\d+)(.+)/).flatten.first - if uid =~ /^0$/ + if /^0$/ === uid return true else return false