Showing posts with label SSH. Show all posts
Showing posts with label SSH. Show all posts

Thursday, October 25, 2018

Configuring SSH on Kali Linux

cd /etc/ssh

mkdir keys_backup_ssh
mv ssh_host_* keys_backup_ssh
dpkg-reconfigure openssh-server


service ssh start
service ssh stop

netstat -antp
liste where?


Thursday, August 31, 2017

Why must you use a console connection to initially configure the switch? Why not connect to the switch via Telnet or SSH?


When we buy a new switch, it is coming with this configuration: No IP address , No host name,  No default gateway (router) ,  No subnet mask, No console password, No Telnet password, No startup configuration, so you use the console connection to  management ports and IP addresses, password, remote control, in addition to that the Ethernet management ports are used for out-of-band network management tasks.
“Best practice: At a minimum, you should set passwords for console and VTY access to secure access through the console port and to enable and secure remote access through Telnet or SSH. You have two main reasons to have several VTY access lines on a Cisco device:
  Allowing you to connect to the switch and connect to another device from the switch: Two VTY lines are needed in this case: one line to connect into the switch and another line to connect out of the switch to another device.
  Allowing several administrators to work on the switch: In large networks, more than one administrator may manage the network. More than one administrator may need to connect from a remote location to the same switch using Telnet or SSH. This is typical with large core switches.”
                          (Clarke, 2010)

The problem with Telnet is it transmits the data in plain text. In contrast, SSH is the secure protocol replacement to Telnet and is used to encrypt the communication between your administration system and the Cisco device you are remotely connecting to. SSH can be used to encrypt all communication, including authentication traffic.


References:
Clarke, G. E. (2010). CCENT certification all-in-one for dummies. Hoboken, NJ: Wiley.

Retrieved August 31, 2017, from https://www.arista.com/assets/data/pdf/user-manual/um-eos/Chapters/Initial%20Configuration%20and%20Recovery.pdf

Saturday, August 19, 2017

grep CTF




I used grep
grep -i -r "string" /directory 
-i to accept lowercase and uppercase 
-r recursive __ look for all folders inside the main folder


Monday, February 27, 2017

SNMP - gerenciamento remoto

Vários switches estão sendo configurados por um técnico de rede para que eles possam ser gerenciados remotamente. Que elemento de comutação deve ser configurado para suportar conexões SSH para cada dispositivo, bem como para recuperar vários parâmetros?

IP e SNMP - Para se conectar a qualquer coisa em uma rede Ethernet, ambos os dispositivos precisam de endereços IP. O SNMP permite, entre outras coisas, a capacidade de gerenciar remotamente dispositivos habilitados para SNMP.

-- 
Ports Recommended for Blocking in a Home Network Firewall
Portas recomendadas para bloqueio em um firewall da rede doméstica

----

26.2 SEGURANÇA DO ROUTER
26.2.1 VULNERABILIDADES DO BGP
A injeção de informações de publicidade de rota falsa no banco de dados de roteamento distribuído pelo BGP por fontes ou roteadores mal-intencionados pode interromper as operações de backbone da Internet. O acesso não autorizado para injeção falsa pode ser obtido quando as senhas padrão e as cadeias de comunidade, que controlam o acesso aos serviços SNMP (Simple Network Management Protocol), estão comprometidas. A engenharia social ou a exploração de falhas de software também podem levar a um acesso não autorizado. O seqüestro de sessão envolve um invasor com êxito mascarado como um dos pares em uma sessão BGP, a fim de injetar rotas falsas. Uma rota falsa provoca o redirecionamento de pacotes para fins de blackholing, atrasos, looping, particionamento de rede, espionagem ou análise de tráfego. Blackhole route é uma rota de rede, ou seja, entrada de tabela de roteamento, que não vai a lugar nenhum e pacotes que correspondem ao prefixo de rota são ignorados ou ignorados. As rotas de buraco negro só podem ser detectadas monitorando o tráfego perdido.
Introduction.to.Computer.Networks.and.Cybersecurity.2013