We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09214bb commit a659364Copy full SHA for a659364
lib/rex/post/meterpreter/ui/console/command_dispatcher/android.rb
@@ -701,6 +701,7 @@ def cmd_wakelock(*args)
701
wakelock_opts = Rex::Parser::Arguments.new(
702
'-h' => [ false, 'Help Banner' ],
703
'-r' => [ false, 'Release wakelock' ],
704
+ '-w' => [ false, 'Turn screen on' ],
705
'-f' => [ true, 'Advanced Wakelock flags (e.g 268435456)' ],
706
)
707
@@ -713,6 +714,9 @@ def cmd_wakelock(*args)
713
714
return
715
when '-r'
716
flags = 0
717
+ when '-w'
718
+ client.android.wakelock(0)
719
+ flags = 268435482
720
when '-f'
721
flags = val.to_i
722
end
0 commit comments