Skip to content

Connection issue. #1

Description

@l0rdnic0

Hello,

I found your code helpful for trying to recover a number of Cisco Switchs during a merger. However, I'm trying to identify a solution to a problem that I am facing. I am using an index file containing a number of known username:password combinations. When I launch the script it runs as expected and passes the first username and password combination. After sometime the switch rejects the username and password and then the script reports that its trying the second user in the index file. Here is the output I see.
sferris@ip:~/recover> python ./telnet_login.py 192.168.3.2 test.txt
[+] Port 23: Open
[-] Port 23: Connecting...
Opening... test.txt
[+] Trying user: administrator1
[+] Trying password: passwword1

[+] Trying user: administrator2
[+] Trying user: administrator3
[+] Trying password: password3

I never see password number 2 as it moves from username2 directly to username3 and after the third failure the switch drops the connection, but the script just hangs and I am forced to break out of it.

I am running this script on a know working device as a test so in my index file of usernames and passwords the fourth line contain the correct combination, so if I re run the script it logs in and notes the correct username and password.

Any idea why the script would jump the second password and go right to the third username? Also, why the connection would not timeout after the session drops so that main starts back up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions