当前位置:网站首页>6-4 vulnerability exploitation SSH banner information acquisition
6-4 vulnerability exploitation SSH banner information acquisition
2022-07-04 04:41:00 【Mountain Rabbit 1】
nmap obtain ssh Banner Information
nmap -sV -p 22 IP Address
commonly , We ssh stay 22 Port 1 is running
After the detection is completed , There will be banner Information , Corresponding to the remote system release ubuntu, And version number
nmap -sV -p 22 192.168.0.104
We made changes before , So he won't detect the remote system banner Information
Let's revise it back , Then detect
cd /etc/ssh/
sudo gedit sshd_config
ctrl+f, Input banner
ad locum , We will
debianBanner no
Comment out , preservation , Click Close
service ssh restart
To restart ssh service , This configuration will take effect
We go back to kali among , Re detect
nmap -sV -p 22 192.168.0.104
You can see the banner The information is different
Metasploit obtain ssh Banner Information
use auxiliary/scanner/ssh/ssh_version
show options
set rhosts 192.168.0.104
run
After detection , The corresponding banner Information , Our operating system and running version number
msfconsole
//metasploit It will start as a terminal
metasploit It is an integrated vulnerability development and utilization , A framework for permission maintenance , So it has a lot to load , The speed at which it starts , It will naturally , A lot slower
nc obtain ssh Banner Information
Actually , We can also use small tools to get the corresponding Banner Information
nc IP Address 22
If ssh Open other ports , We 22 Port no. , It can be changed to the default port
For the operating system , We can take some protective measures , Make our server not appear , Corresponding Banner Information , Operating system and category
To configure ssh avoid Banner Information
stay ssh The configuration file sshd_config Add a new line .DebianBanner no Scan again and find no operating system information .
nmap -p 22 -sV 192.168.0.104
In this way , Evaded our Banner Information , Caught , So as to obtain the operation ssh The operating system of the service
边栏推荐
- 【愚公系列】2022年7月 Go教学课程 001-Go语言前提简介
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- 深入解析结构化异常处理(SEH) - by Matt Pietrek
- 【安全攻防】序列化与反序列,你了解多少?
- LeetCode136+128+152+148
- A beautiful API document generation tool
- 1. Mx6u-alpha development board (LED drive experiment in C language version)
- Y55. Chapter III kubernetes from entry to proficiency -- HPA controller and metrics server (28)
- Eig launched Grupo Cerro, a renewable energy platform in Chile
- Statistical genetics: Chapter 3, population genetics
猜你喜欢
随机推荐
Formatted text of Kivy tutorial (tutorial includes source code)
Keysight n9320b RF spectrum analyzer solves tire pressure monitoring scheme
Pytest basic self-study series (I)
Kivy教程之 更改背景颜色(教程含源码)
通过dd创建asm disk
Beipiao programmer, 20K monthly salary, 15W a year, normal?
【Go】数据库框架gorm
6-5漏洞利用-SSH弱口令破解利用
I.MX6U-ALPHA开发板(C语言版本LED驱动实验)
RPC技术
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
I.MX6U-ALPHA开发板(模仿STM32驱动开发实验)
What should a novice pay attention to when looking for an escort
分布式CAP理论
【云原生】那些看起来很牛X,原理却很简单的一行代码
ADB tools
tdk-lambda电源主要应用
什么是上下文?
牛客小白月赛49
“找工作不要太在意工资”,这是我听过最大的谎言