-
Notifications
You must be signed in to change notification settings - Fork 210
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
Victim disconnects when in sleep mode #152
Comments
Wow this is a new one, I'm glad you brought this to my attention because we can't have this happening, so this is actually a Client issue, so can you tell me what sort of Payload you built, was it a standalone payload 🐞 or a Bound Payload 🪲 (Payload templated with an original APK) ? |
Yeah I was wondering whether or not this was a client or server side problem. I have updated the issue description. The payload I used was the standalone payload |
Yes I seem to be getting the same thing, I will do some research on this, and I will post back here ASAP. |
Great! Thanks for the quick response, at the very least it is good that the bug is reproducible. Let me know if you need something else |
Ok I'm back, so sorry it took me so long, but I think I've figured out the problem.... so with I am currently working on a fix I've found and will get back to you once again once it's done and tested |
No problem, take your time! Thanks for updating |
Had the exact same issue, really appreciate that you're still working on this and updating things accordingly! |
You're most welcome, if anyone has an issue, I work hard to resolve it, and if the issue is caused by bugs, I'll fix it no matter how long it takes |
I wonder if this bug is specific to certain devices. I was testing out the connection on a tablet I have Xiaomi pad 5 Android 11 and I'm not disconnecting in sleep mode. Could be because I'm connected over wifi but thought I should mention this in case it helps @Morsmalleo Edit: never mind it just lasted a lot longer before disconnecting unlike other devices I've tried in sleep mode. Probably has to do with certain devices entering sleep mode quicker. Disregard my comment lol |
I think I've figured out the problem, from my research things like this happen due to battery optimisation, if we ignore battery optimisation then we shouldn't experience this problem! We can't keep a socket app, or for that matter, any app that requires large amounts of power, alive forever on a battery-powered mobile device, doing so would kill the phone's battery! This is why battery optimisation was officially implemented for Battery optimisation is supposedly at its highest when the phone is in sleep mode according to my research, so ignoring battery optimisation for the client should solve the problem, I'll get to work on this ASAP |
I thought battery optimization might be the issue here, so on the target device after the APK is installed I've gone into the app settings and turned off battery optimization for that app. Connections will remain for longer periods but eventually they still disconnect at a certain point once the phone is in sleep mode |
Yeah I can confirm that disabling battery optimization allows the connection to last much longer! I have tried 1 hour for now and that seems to work on my android 11 device. |
This is good I will implement something that will hopefully allow full ignorance of battery optimisation |
I'll let everyone know once this is done |
Any update on this topic? |
Updates for this one will begin soon |
It also occur in oppo mobile phone |
It will occur on every device until it's fixed.
…On Tue, 2 May 2023, 2:24 am N Y C T O P H I L I A C, < ***@***.***> wrote:
It also occur in oppo mobile phone
—
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APK5A2AJBQ7CYSYOX4HF4C3XD75U5ANCNFSM576NCWBQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Please try to fix it |
I'll fix it when I have the time, I'm not superman, I'm only one person doing all these updates, so be patient please |
|
could not implement the fixes for this in beta.5, but I'm jumping on to this issue in the next few weeks. |
Hi, has there been any update on this issue? |
hi i have the same issue, any news on this ?, it disconnect when i take a pic or access files or put phone on sleep, and it reconnect again after a while, sometimes it works and get some files but is disconnect |
sorry friend, this project is already dead |
The project is not dead actually, so don't be salty. Why don't you head on over to the development branch and then navigate to |
Setup AhMyth using the source code the binaries do not contain any of the recent fixes I made a few months ago. Disabling Battery Optimisation helps as well, and this is already an open issue as well. I'm working on it, just give me time. |
Why don't you try maintaining a project like this by yourself then tell me what a dead repo looks like again. Get salty on my repo like this again @SubUrban23 and you will be banned for 72 hours |
exactly, i disabled power saving mode and gives the app permission over battery optimization and now it disconnect sometimes but reconnect after a bit of time, I think asking for user permission to ignore battery optimization would really be helpful |
and also the the permission to stay alive on the background because i also noticed that after a 30 minute it stops reconnecting |
Disable battery optimisations for the app to stop it from disconnecting and
reconnecting
…On Wed, 12 June 2024, 5:24 pm hermesthemes, ***@***.***> wrote:
and also the the permission to stay alive on the background because i also
noticed that after a 30 minute it stops reconnecting
—
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APK5A2ARAE5SGGHDZ3JC633ZHAHUHAVCNFSM576NCWB2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJWGI2TGNBUGEYQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
i tried to add this |
Disabling Battery Optimisations should do the trick however if you're testing on any android version higher than 5.1 you'll be greeted with problems, this will happen until I've finished building the new modern payload |
good luck man |
This is an issue with the
Describe the bug
I have a victim connected to the victims lab, however whenever the victim puts its device in sleep mode(i.e. phone is still on but screen off) then after 30 seconds of idle waiting the victim disconnects.
The victim doesn't disconnect if I keep using the victims lab, doing stuff like getting files or call logs, etc.
This happens on 2 different devices (android 11 & 12)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would've expected the connection to remain even after putting the device in sleep mode.
Client Issue
please complete the following information:
Checklist
The text was updated successfully, but these errors were encountered: