karma9874 / AndroRAT

A Simple android remote administration tool using sockets. It uses java on the client side and python on the server side
MIT License
3.17k stars 1.01k forks source link

ConnectionResetError: [Errno 104] Connection reset by peer #197

Closed iam-here89 closed 11 months ago

iam-here89 commented 2 years ago

hello sir
please can you help to solve this issue ,

Interpreter:/> help
Traceback (most recent call last):
  File "/home/kali/Desktop/AndroRAT/androRAT.py", line 62, in <module>
    get_shell(args.ip,args.port) 
  File "/home/kali/Desktop/AndroRAT/utils.py", line 320, in get_shell
    msg = conn.recv(4024).decode("UTF-8")
ConnectionResetError: [Errno 104] Connection reset by peer

I used android 11

                                                        `
Robin4259 commented 2 years ago

Same problem me too

Deadlooks commented 2 years ago

I got same error i use android 9

Therealgubbi commented 2 years ago

Do the coding from my (androrat) GitHub app work on my iPhone to and hold it save?

tir. 30. aug. 2022 kl. 06.19 skrev Deadlooks @.***>:

I got same error i use android 9

— Reply to this email directly, view it on GitHub https://github.com/karma9874/AndroRAT/issues/197#issuecomment-1231122051, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OCLMRFCSYZFLLFICMSOWDV3WDWTANCNFSM5ZRCDOOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Therealgubbi commented 2 years ago

I dont understand what to do and do it works on iPhone? I see u read Huawei

lør. 3. sep. 2022 kl. 13.38 skrev SquashyHydra @.***>:

there is a simple fix that worked for me Interpreter:/> deviceInfo

Manufacturer: HUAWEI Version/Release: 9 Product: ANE-LX1 Model: ANE-LX1 Brand: HUAWEI Device: HWANE

so my fix is: open andoRAT utils.oy in your favorite text editor search for 4024 or go to line 320 change the 4024 to 4096 save then rebuild your .apk this should stop python Sockets from timing out the connect.

I hope this works for all of you.

— Reply to this email directly, view it on GitHub https://github.com/karma9874/AndroRAT/issues/197#issuecomment-1236102279, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OCLMURRZAAXISLVFZXXQDV4M2B3ANCNFSM5ZRCDOOQ . You are receiving this because you commented.Message ID: @.***>

guyoverclocked commented 2 years ago

I dont understand what to do and do it works on iPhone? I see u read Huawei lør. 3. sep. 2022 kl. 13.38 skrev SquashyHydra @.**>: there is a simple fix that worked for me Interpreter:/> deviceInfo Manufacturer: HUAWEI Version/Release: 9 Product: ANE-LX1 Model: ANE-LX1 Brand: HUAWEI Device: HWANE so my fix is: open andoRAT utils.oy in your favorite text editor search for 4024 or go to line 320 change the 4024 to 4096 save then rebuild your .apk this should stop python Sockets from timing out the connect. I hope this works for all of you. — Reply to this email directly, view it on GitHub <#197 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OCLMURRZAAXISLVFZXXQDV4M2B3ANCNFSM5ZRCDOOQ . You are receiving this because you commented.Message ID: @.**>

No it does not work on iphone only android phones / phones running android system. and to fix the ConnectionResetError: [Errno 104] Connection reset by peer error

you need to open your androRAT folder Step 1: run cd ~/AndroRAT now that you are in your androRAT folder you need to open utils.py with a text editor Step 2: run nano utils.py then locate the bytesize Step 3: press Ctrl+W on you keyboard and type 4024 now change that 4024 to 4096 Step 4: press Ctrl+S, then Ctrl+X

now when you build your next apk it should work don't forget to put the new apk on the phone you are testing on ;)

Yes, @SquashyHydra the fix you said worked in my huawei tablet but it just lasted a couple more secs before throwing the same error

Traceback (most recent call last): File "/home/kali/Desktop/AndroRAT/androRAT.py", line 62, in get_shell(args.ip,args.port) File "/home/kali/Desktop/AndroRAT/utils.py", line 320, in get_shell msg = conn.recv(4096).decode("UTF-8") ConnectionResetError: [Errno 104] Connection reset by peer

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 11 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.