Move school stuff out of the blog, better grammar for existing blog post
This commit is contained in:
parent
b54eb4e423
commit
98e33603c1
4 changed files with 10 additions and 10 deletions
61
school/telnet-en.html
Normal file
61
school/telnet-en.html
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
---
|
||||
postTitle: "Telnet"
|
||||
layout: post.njk
|
||||
date: 2025-08-27
|
||||
background: redes.jpg
|
||||
authors: Adrian Victor & Arthur Borges
|
||||
langKey: en
|
||||
---
|
||||
<script src="/static/scripts/telnetSimulator.js" defer></script>
|
||||
<h2>What the protocol is, its function and history</h2>
|
||||
<p>Telnet (from <b>TEL</b>ecommunication <b>NET</b>work) is a TCP/IP stack network protocol that allows remote text-mode communication between computers. Its main function is to provide an interactive session where a user can access and control another device as if they were on a local terminal.</p>
|
||||
<p>Created in 1969, Telnet was one of the first protocols developed for ARPANET (the network that gave rise to the Internet) and became fundamental for system and device administration in the 1970s, 1980s, and 1990s. Over time, it fell out of use due to lack of security, being replaced by more modern alternatives such as SSH (Secure Shell).</p>
|
||||
<h2>Implementation</h2>
|
||||
<p><b>Default port:</b> 23/TCP.<br>
|
||||
Works at the application layer of the OSI model.<br>
|
||||
<b>Format:</b> Based on ASCII character exchange, without encryption.<br>
|
||||
<b>RFC:</b> Defined by RFC 854 (1983).<br>
|
||||
<b>Architecture:</b> Follows the client-server model</p>
|
||||
<h2>How it works</h2>
|
||||
<p>In practice, Telnet works relatively simply. The process starts when the client establishes a TCP connection to the server via port 23. Then a remote terminal session is initiated and the user must provide credentials such as username and password. After authentication, commands typed on the client are transmitted in plain text to the server, which processes them and returns the corresponding output. The session remains active as long as the user wants, normally ending with commands like <i>exit</i> or <i>logout</i></p>
|
||||
<h2>Use cases</h2>
|
||||
<p>For many years, Telnet was widely used for remote access to Unix, Linux, and Windows servers, especially older versions of these systems. It also became common in network device administration, such as routers and switches, until SSH became the standard. Additionally, mainframes and some legacy devices still use Telnet today. Another practical application is in educational environments and network diagnostics, where it is used to test open ports and check service connectivity, such as running “telnet server.com 80” to see if a web server port is operational.</p>
|
||||
<h2>Encryption: the inherent problem</h2>
|
||||
<p>Telnet has no native encryption, which makes it extremely vulnerable. To solve this problem, more secure alternatives were developed. The main one is SSH (Secure Shell), created in the 1990s as a direct Telnet replacement. SSH offers the same functionality while ensuring data protection through strong authentication and full traffic encryption. Another, less common approach is using SSL/TLS to tunnel Telnet sessions, but in practice this is rarely used.</p>
|
||||
<h2>Advantages and disadvantages</h2>
|
||||
<p>Telnet’s advantages include simplicity, low resource usage, and compatibility with various older systems, which facilitated its adoption over the years. However, these benefits are outweighed by its disadvantages. The main one is the lack of encryption, exposing all transmitted data—including passwords—in plain text. This makes it vulnerable to attacks such as sniffing, which captures network packets, and hijacking, which takes over active sessions. For this reason, Telnet is considered obsolete and unsafe for use on open networks like the Internet.</p>
|
||||
<h2>Relation to other protocols</h2>
|
||||
<p>Telnet is part of the TCP/IP protocol family and uses TCP to ensure reliable communication. Like other protocols in this stack, such as HTTP, FTP, and SMTP, it relies on stable connections to perform its functions, but its distinguishing feature has always been terminal-mode interactivity. Due to security flaws, it was replaced by its natural successor, SSH, which retained Telnet’s conceptual base but added robust protection layers.</p>
|
||||
<h2>Functional example</h2>
|
||||
<p>Below is a Telnet connection simulator written in JavaScript.</p>
|
||||
<div id="telnetSimulationLoadingHolder">
|
||||
<p id="telnetSimulationLoadingText">Loading...</p>
|
||||
<div class="ellipsis-loader" aria-role="alert" aria-label="Loading. Please wait">
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="telnetSimulation">
|
||||
<div id="telnetSimulationServer">
|
||||
<h3>Server</h3>
|
||||
<textarea name="" id="telnetSimulationServerScreen" readonly>Welcome to Zubuntu 30.1!
|
||||
Running startup script: start_telnet_server.sh
|
||||
Telnet Server started on localhost:23
|
||||
Ready to receive commands.
|
||||
----
|
||||
</textarea>
|
||||
<button id="telnetSimulationServerClean">Clear</button>
|
||||
</div>
|
||||
<div id="telnetSimulationClient">
|
||||
<h3>Client</h3>
|
||||
<textarea name="" id="telnetSimulationClientScreen" readonly>Send help to see the list of commands supported by the server!
|
||||
----
|
||||
</textarea>
|
||||
<div id="telnetSimulationInput">
|
||||
<input type="text" id="telnetSimulationInputBox">
|
||||
<button id="telnetSimulationClientSend">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
102
school/telnet-pt.html
Normal file
102
school/telnet-pt.html
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
---
|
||||
postTitle: "Telnet"
|
||||
layout: post.njk
|
||||
date: 2025-08-27
|
||||
background: redes.jpg
|
||||
authors: Adrian Victor & Arthur Borges
|
||||
langKey: pt
|
||||
---
|
||||
<script src="/static/scripts/telnetSimulator.js" defer></script>
|
||||
<h2>O que é o protocolo, sua função e histórico</h2>
|
||||
<p>O Telnet (do inglês <b>TEL</b>ecommunication <b>NET</b>work) é um protocolo de rede da pilha
|
||||
TCP/IP que permite a comunicação remota entre computadores em modo texto. Sua
|
||||
função principal é proporcionar uma sessão interativa, em que um usuário pode
|
||||
acessar e controlar outro dispositivo como se estivesse em um terminal local.</p>
|
||||
<p>Criado em 1969, o Telnet foi um dos primeiros protocolos desenvolvidos para a
|
||||
ARPANET (a rede que deu origem à Internet) e tornou-se fundamental para a
|
||||
administração de sistemas e dispositivos nas décadas de 1970, 1980 e 1990. Com o
|
||||
tempo, caiu em desuso devido à falta de segurança, sendo substituído por
|
||||
alternativas mais modernas, como o SSH (Secure Shell).</p>
|
||||
<h2>Implementação</h2>
|
||||
<p><b>Porta padrão:</b> 23/TCP.<br>
|
||||
Funciona na camada de aplicação do modelo OSI.<br>
|
||||
<b>Formato:</b> Baseado em troca de caracteres ASCII, sem criptografia.<br>
|
||||
<b>RFC:</b> Definido pela RFC 854 (1983).<br>
|
||||
<b>Arquitetura:</b> Segue o modelo cliente-servidor</p>
|
||||
<h2>Funcionamento</h2>
|
||||
<p>Na prática, o Telnet funciona de maneira relativamente simples. O processo começa
|
||||
quando o cliente estabelece uma conexão TCP com o servidor por meio da porta 23.
|
||||
Em seguida, uma sessão de terminal remoto é iniciada e o usuário deve fornecer
|
||||
suas credenciais, como nome de usuário e senha. Após a autenticação, os
|
||||
comandos digitados no cliente são transmitidos em texto puro ao servidor, que os
|
||||
processa e retorna a saída correspondente. A sessão permanece ativa enquanto o
|
||||
usuário desejar, sendo encerrada normalmente com comandos como <i>exit</i> ou <i>logout</i></p>
|
||||
<h2>Cenários de uso</h2>
|
||||
<p>Durante muitos anos, o Telnet foi amplamente utilizado para acesso remoto a
|
||||
servidores Unix, Linux e Windows, especialmente em versões mais antigas desses
|
||||
sistemas. Também se tornou bastante comum na administração de dispositivos de
|
||||
rede, como roteadores e switches, até que o SSH passou a ser adotado como
|
||||
padrão. Além disso, grandes computadores centrais, conhecidos como mainframes,
|
||||
e alguns dispositivos legados ainda utilizam Telnet até hoje. Outra aplicação prática
|
||||
do protocolo está em ambientes educacionais e no diagnóstico de redes, onde é
|
||||
usado para testar portas abertas e verificar conectividade de serviços, como ao
|
||||
executar “telnet servidor.com 80” para checar se a porta de um servidor web está em
|
||||
funcionamento.</p>
|
||||
<h2>Criptografia: o problema inerente</h2>
|
||||
<p>O Telnet não possui criptografia nativa, o que o torna extremamente vulnerável. Para
|
||||
solucionar esse problema, surgiram alternativas mais seguras. A principal delas é o
|
||||
SSH (Secure Shell), desenvolvido nos anos 1990 como um substituto direto do
|
||||
Telnet. O SSH oferece as mesmas funcionalidades, mas garante a proteção dos
|
||||
dados por meio de autenticação forte e criptografia de todo o tráfego. Outra
|
||||
possibilidade, embora menos comum, é o uso de SSL/TLS para tunelar sessões
|
||||
Telnet, mas na prática essa abordagem raramente é utilizada.</p>
|
||||
<h2>Vantagens e desvantagens</h2>
|
||||
<p>Entre as vantagens do Telnet, destacam-se sua simplicidade, baixo consumo de
|
||||
recursos e compatibilidade com diferentes sistemas antigos, o que facilitou sua
|
||||
adoção ao longo dos anos. Contudo, essas qualidades são superadas por suas
|
||||
desvantagens. A principal é a ausência de criptografia, que expõe todos os dados
|
||||
transmitidos, incluindo senhas, em texto puro. Isso o torna vulnerável a ataques
|
||||
como o sniffing, que captura pacotes de rede, e o hijacking, que sequestra sessões
|
||||
ativas. Por esse motivo, o Telnet é considerado obsoleto e inseguro para uso em
|
||||
redes abertas, como a própria Internet.</p>
|
||||
<h2>Relação com outros protocolos</h2>
|
||||
<p>O Telnet faz parte da família de protocolos da pilha TCP/IP e utiliza o TCP para
|
||||
garantir a confiabilidade na comunicação. Assim como outros protocolos dessa pilha,
|
||||
como HTTP, FTP e SMTP, ele se baseia em conexões estáveis para realizar suas
|
||||
funções, mas seu diferencial sempre foi a interatividade em modo terminal. No
|
||||
entanto, devido às falhas de segurança, acabou sendo substituído por seu sucessor
|
||||
natural, o SSH, que manteve a mesma base conceitual do Telnet, mas adicionou
|
||||
camadas robustas de proteção.</p>
|
||||
<h2>Exemplo funcional</h2>
|
||||
<p>Abaixo há um simulador de conexão Telnet feito em JavaScript.</p>
|
||||
<div id="telnetSimulationLoadingHolder">
|
||||
<p id="telnetSimulationLoadingText">Loading...</p>
|
||||
<div class="ellipsis-loader" aria-role="alert" aria-label="Loading. Please wait">
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
<div class="ellipsis-loader__dot"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="telnetSimulation">
|
||||
<div id="telnetSimulationServer">
|
||||
<h3>Servidor</h3>
|
||||
<textarea name="" id="telnetSimulationServerScreen" readonly>Bem vindo ao Zubuntu 30.1!
|
||||
Rodando script de inicialização: start_telnet_server.sh
|
||||
Servidor Telnet iniciado em localhost:23
|
||||
Pronto para receber comandos.
|
||||
----
|
||||
</textarea>
|
||||
<button id="telnetSimulationServerClean">Limpar</button>
|
||||
</div>
|
||||
<div id="telnetSimulationClient">
|
||||
<h3>Cliente</h3>
|
||||
<textarea name="" id="telnetSimulationClientScreen" readonly>Envie help para ver a lista de comandos suportados pelo servidor!
|
||||
----
|
||||
</textarea>
|
||||
<div id="telnetSimulationInput">
|
||||
<input type="text" id="telnetSimulationInputBox">
|
||||
<button id="telnetSimulationClientSend">Enviar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue