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

Android Reverse TCP screenshot not working. #9339

Closed
robot321 opened this issue Dec 22, 2017 · 5 comments
Closed

Android Reverse TCP screenshot not working. #9339

robot321 opened this issue Dec 22, 2017 · 5 comments

Comments

@robot321
Copy link

robot321 commented Dec 22, 2017

After i've got a successfull meterpreter shell, I could issue commands (some of them) Successfully. But when i try screenshot it gives me a error like this,

stdapi_ui_desktop_screenshot: Operation Failed: 1

Checked the command both on Rooted and Non-Rooted devices, But still gives me that error, Looked it up couldn't find anything useful. (Both on WAN and LAN)

But i could get managed to get screenshot by using android shell (shell). But only on rooted devices.
Oh i almost forgot, But i could use 'screenshot' command on Binded apps, but only when the Target is in that app. I tried using deafault android app "MainActivity" but it also doesn't work.
I think that the app is running on a Sandbox. But i don't know exactly.

metasploit v.4.16.22-dev
Kali Linux 2017.2

Thanks!

@chrisstone07
Copy link

This only works within the app , I.e u can only take screenshot of the screen when your app is open. Yes to take screenshot of other screens you need root permissions and run post/android/capture/screen.

@robot321
Copy link
Author

robot321 commented Dec 24, 2017

I checked that also on a rooted device, But i got an error about saying that "Permission is Denided"
Is there a command to grant permissions in that module.
I can't remeber the error message correctly but it meant that Permission was denided, and i didn't got a prompt on that device too.
Do i have to manually allow that ceratin app to have permissions on SuperSu app or other Permission managing app?

@chrisstone07
Copy link

Well the first thing that u pointed out is an awkward error, it should work well on rooted devices. Try these steps on a rooted device

First drop into shell then,
cd /system/bin
screencap - h and you'll see a list of available options.

Regarding permission Yes depending on the version of Android your using it varies, for 6.0 and above it doesn't ask any extra permissions. For 4.4 I think you need to give these permissions exclusively

@timwr
Copy link
Contributor

timwr commented Apr 23, 2018

Closing, thanks @chrisstone07

@timwr timwr closed this as completed Apr 23, 2018
@hudzzz01
Copy link

hudzzz01 commented Jan 5, 2020

thanks @chrisstone07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants