Closed ittech25 closed 4 years ago
in look into it.
I think the real problem is the server crashing since even killing the process will still allow the client to reconnect. When does the server crash?
Yes, Server crash when killing the process. When server restart, client cannot reconnect
try running both in a command window see what the output is.
I killed the server and restarted it and client still connected.
1 . I killed server ==> restart server => client connected ok
I test on windows 10 and ngrok
I tried killing it multiple times, the client still connects. Maybe try changing line 442 in client.py to except:
instead of except socket.error:
.
Thank you @xp4xbox I change line 442 as you help error as image below when i killed server and reopen Server
Client
Test 2nd :
Right below line 79 do you want to add print(client_info)
so I can see what data that list has when you get that error?
error does not appear as picture above But killed the server and restart, it's stuck Connected
Restart Server , stuck on Listening on port 3000, client not reconnect
Error appear
Try changing line 154 in refresh_connections()
from except socket.error:
to just except:
Error below
maybe error appear when i use ngrok ?
Whats ngrok
Ngrok : expose local server to internet (https://ngrok.com/) Because ISP in my country does not provide static ip
Ah I think i know the problem do you want to add print(strUserInfo)
to line 100 in client.py and show the output.
Error appear
I believe this error can be fixed with changing del arrAddresses[intCounter]
to arrAddresses.remove(conn)
. This should prevent index out of range errors
Waiting result,
part of the problem is that since you are using ngroc hostname socket.gethostname() returns nothing. so il have to fix that.
did you try doing arrAddresses.remove(conn)
?
Yes, i tried
Ngrok port forwarding service, I don't think it interferes with socket.gethostname()
try this instead del arrAddresses[arrConnections.index(conn)] arrConnections.remove(conn)
for thoses two lines.
@Y4hL any reason why socket.gethostname returns blank then?
I think socket.gethostname() returns DESKTOP-XXXX
oh wait yeah your right, platform.system() and platform.release() arent showing up
It think it would make it much easier if the list was sent in json format instead of splitting strings
try this instead
del arrAddresses[arrConnections.index(conn)] arrConnections.remove(conn)
for thoses two lines. Error does not appear Restart Server , stuck on Listening on port 3000
@xp4xbox I can make the client send the client_info in json format, but it would require an extra import, is that fine?
That's fine
On Fri, Jun 12, 2020, 10:08 PM Y4hL notifications@github.com wrote:
@xp4xbox https://github.com/xp4xbox I can make the client send the client_info in json format, but it would require an extra import, is that fine?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xp4xbox/Python-Backdoor/issues/37#issuecomment-643553516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6O6QSTWPHHQYIIE5VOIS3RWLNSJANCNFSM4NZ5QCCA .
Error accepting connections!
error below :
Hi @xp4xbox @Y4hL I tried using serveo (same ngrok) - expose local server to internet Working fine. No error appear. Thank you for your support ^^
client cannot reconnect after server crash