mvrozanti / RAT-via-Telegram

Windows Remote Administration Tool via Telegram
MIT License
647 stars 344 forks source link

Script shows error message when no internet connection on startup #8

Closed LearnerZone closed 7 years ago

LearnerZone commented 7 years ago

On computer startup/first-run if there is no internet connection a script execution failure error message-box is shown, this blows-away the RAT's stealth capability.

We should check the internet connectivity on startup and either keep looping until a connection is available or exit the script to avoid any display f message-box. Something like the code below (untested) should fix this:

#check internet connectivity and keep looping
while True:
    try:
        socket.create_connection(("www.google.com", 80))
        break
    except socket.error:
        time.sleep(3);
mvrozanti commented 7 years ago

New version out. Can you check if it covers all our needs regarding this issue?