Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login using telnetlib python #2

Open
MohammedTayeh1993 opened this issue Jul 12, 2022 · 0 comments
Open

login using telnetlib python #2

MohammedTayeh1993 opened this issue Jul 12, 2022 · 0 comments

Comments

@MohammedTayeh1993
Copy link

i have edit login input from Login : to Username:
and i try to login it using

        tn = telnetlib.Telnet(ip, int(port), int(timeOut))
        xx = tn.read_until(b"Username: " , timeout=5)
        print(xx)
        tn.write(user.encode('ascii') + b"\n" )
        if password:
            tn.read_until(b"Password: " , timeout=5)
            tn.write(password.encode('ascii') + b"\n")

        print("asdasdasd")
        data = tn.read_all().decode('ascii')

login not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant