Giter Site home page Giter Site logo

Comments (35)

xp4xbox avatar xp4xbox commented on August 21, 2024

in look into it.

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

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?

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Yes, Server crash when killing the process.
When server restart, client cannot reconnect

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

try running both in a command window see what the output is.

I killed the server and restarted it and client still connected.

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

1 . I killed server ==> restart server => client connected ok
2. I try killed server again ==> restart server => alway stuck in Listening on port

I test on windows 10 and ngrok

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

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:.

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Thank you @xp4xbox
I change line 442 as you help
error as image below when i killed server and reopen
Server
image

Client
image

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Test 2nd :

image

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

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?

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

error does not appear as picture above
But killed the server and restart, it's stuck
Connected
image

Restart Server , stuck on Listening on port 3000, client not reconnect

image

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Error appear

image

image

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

Try changing line 154 in refresh_connections() from except socket.error: to just except:

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Error below
image

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

maybe error appear when i use ngrok ?
image

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

Whats ngrok

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Ngrok : expose local server to internet (https://ngrok.com/)
Because ISP in my country does not provide static ip

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

Ah I think i know the problem do you want to add print(strUserInfo) to line 100 in client.py and show the output.

from python-backdoor.

tidely avatar tidely commented on August 21, 2024

Error appear

image

image

I believe this error can be fixed with changing del arrAddresses[intCounter] to arrAddresses.remove(conn). This should prevent index out of range errors

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Waiting result,
image

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

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)?

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Yes, i tried

from python-backdoor.

tidely avatar tidely commented on August 21, 2024

Ngrok port forwarding service, I don't think it interferes with socket.gethostname()

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

image

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

try this instead del arrAddresses[arrConnections.index(conn)] arrConnections.remove(conn) for thoses two lines.

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

@Y4hL any reason why socket.gethostname returns blank then?

from python-backdoor.

tidely avatar tidely commented on August 21, 2024

I think socket.gethostname() returns DESKTOP-XXXX

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

oh wait yeah your right, platform.system() and platform.release() arent showing up

from python-backdoor.

tidely avatar tidely commented on August 21, 2024

It think it would make it much easier if the list was sent in json format instead of splitting strings

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

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
image

from python-backdoor.

tidely avatar tidely commented on August 21, 2024

@xp4xbox I can make the client send the client_info in json format, but it would require an extra import, is that fine?

from python-backdoor.

xp4xbox avatar xp4xbox commented on August 21, 2024

from python-backdoor.

tidely avatar tidely commented on August 21, 2024

#38 @ittech25 try using ngrok with these changes

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Error accepting connections!
image

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

error below :
image

from python-backdoor.

ittech25 avatar ittech25 commented on August 21, 2024

Hi @xp4xbox @Y4hL
I tried using serveo (same ngrok) - expose local server to internet
Working fine. No error appear.
Thank you for your support ^^

from python-backdoor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.