check_root command is to check if you have got a root access, if yes then
the commands in the root module will be available t be executed by the user
else they wont be available


On Mon, Nov 18, 2013 at 11:15 PM, OJ Reeves <notifications@github.com>wrote:

> In lib/rex/post/meterpreter/extensions/android/common/common.rb:
>
> > +        'number' => client.unicode_filter_encode(p.get_tlv(TLV_TYPE_CALLLOG_NUMBER).value),
> > +        'date' => client.unicode_filter_encode(p.get_tlv(TLV_TYPE_CALLLOG_DATE).value),
> > +        'duration' => client.unicode_filter_encode(p.get_tlv(TLV_TYPE_CALLLOG_DURATION).value),
> > +        'type' => client.unicode_filter_encode(p.get_tlv(TLV_TYPE_CALLLOG_TYPE).value)
> > +      }
> > +
> > +    }
> > +    return log
> > +  end
> > +
> > +  def check_root
> > +    request = Packet.create_request('check_root')
> > +    response = client.send_request(request)
> > +    isRooted = response.get_tlv(TLV_TYPE_CHECK_ROOT_BOOL).value
> > +    return isRooted
> > +  end
>
> So there's a Root module, but the check_root function is in Common? My
> head is spinning a bit :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rapid7/metasploit-framework/pull/2174/files#r7739114>
> .
>