File .deepsource.toml
not found in the default branch of the repository root. Please refer to the docs.
1import uuid
2from telnetlib import STATUS 3
4from locust import HttpUser, between, task
5
A telnet-related module is being imported. Using telnet
is considered insecure.
Consider the following points when using Telnet protocol:
Use ssh
as an alternative to telnet
. It protects user identities, passwords, and data from network snooping attacks, and allows secure logins and file transfers. Use of telnet
has been replaced by ssh
in almost all cases.
import telnetlib # Sensitive, Import of telnetlib
url = "telnet://[email protected]"
connection = telnetlib.Telnet("somehost") # Sensitive, Using telnet protocol
from paramiko import SSHClient
client = SSHClient()
url = "telnet://[email protected]"
client.connect(url, username='user', password='secret')