hposton / python-for-cybersecurity

This repository holds the Python scripts discussed in the Infosec Institute's Python for Cybersecurity learning Path
GNU General Public License v3.0
319 stars 196 forks source link

Issue with Test Default Credentials #5

Closed nslybb closed 1 year ago

nslybb commented 1 year ago

Hello, when I try to run the code you provided in "test_default_creds.py" I get this error that I am not able to solve. I tried to run as admin with sudo but it still doesn't work. Do you know what I have to do? I have to say that I am very inexperienced in this stuff so maybe it is simpler than I thought. Screenshot 2023-07-04 13 38 01

nslybb commented 1 year ago

Update: I try to help myself with the internet with no success. As last try, I tried to copy the code that was shown in the video (which is a little different that the one provided on github section 3.1) and I got this errors as a result. If I have understood correctly, it is an issue related to the connection with the Telnet server. Any advice? At this point the solution is beyond me. Screenshot 2023-07-09 12 55 50

hposton commented 1 year ago

Hey, this code assumes that the system it's running on it actually running a telnet server that it can test usernames/passwords on. Judging by this error, your lab machine isn't running a Telnet server. This is why the computer would refuse a connection on the Telnet port