Telnet via a python script?

Development | Programming languages
Description
Telnet via a python script?
Attachments
No attachments
Info
Description
import sys
import telnetlib
target = "10.0.9.120"
telnet_port=22
telnetObj = telnetlib.Telnet(target, telnet_port, timeout=10)
telnetObj.write(b"exit\n")
print(telnetObj.read_all())

on February 11th, 2020 (9:14 pm)
Description
Thanks, I needed that...
on February 11th, 2020 (9:23 pm)
All coments
This job has not been commented yet.


We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our use of cookies. Find out more Accept