当前位置:网站首页>6-4漏洞利用-SSH Banner信息获取
6-4漏洞利用-SSH Banner信息获取
2022-07-04 03:53:00 【山兔1】

nmap获取ssh Banner信息
nmap -sV -p 22 IP地址
一般,我们ssh在22号端口运行

探测完成之后,会出现banner信息,对应远程系统发行版本ubuntu,以及版本号
nmap -sV -p 22 192.168.0.104

我们之前做了修改,所以他不会探测出远程系统的banner信息
我们把它修改回来,然后再进行探测
cd /etc/ssh/
sudo gedit sshd_config
ctrl+f,输入banner

在这里,我们将
debianBanner no
注释掉,保存,点击关闭
service ssh restart
进行重启ssh服务,这样配置才会生效
我们回到kali当中,重新探测
nmap -sV -p 22 192.168.0.104

可以看到这个时候的banner信息出现不同
Metasploit获取ssh Banner信息
use auxiliary/scanner/ssh/ssh_version
show options
set rhosts 192.168.0.104
run

探测之后,就会出现对应的banner信息,我们的操作系统以及运行的版本号
msfconsole
//metasploit就会以终端的形式启动
metasploit是一个集成了漏洞开发以及利用,权限维持的一个框架,所以它要加载的内容有很多,那它启动的速度,就会自然而然,慢了很多
nc获取 ssh Banner信息
其实,我们也可以使用小型工具来获取对应的Banner信息
nc IP地址 22

如果ssh开放其它端口,我们22号端口,可以改为默认端口
对于操作系统,我们可以进行一些防护措施,使得我们的服务器不出现,对应的Banner信息,操作系统以及类别
配置ssh规避Banner信息
在ssh配置文件sshd_config中新增一行。DebianBanner no 再次扫描发现没有操作系统信息。
nmap -p 22 -sV 192.168.0.104

通过这种方式,规避了我们的Banner信息,被抓取到,从而获取到运行ssh服务的操作系统
边栏推荐
- 统计遗传学:第三章,群体遗传
- 浅谈一篇优质的小红书文案需要具备什么
- Longest increasing subsequence problem (do you really know it)
- FT2000+下LPC中断绑核使用说明
- 苹果CMS仿西瓜视频大气响应式视频模板源码
- Many founders of technology companies provided enterpriser first with a round C financing of up to US $158million to help it invest in the next generation of global innovators
- 普源DS1000Z系列数字示波器在通信原理实验中的应用方案
- 十字路口通行优先权,十字路口通行规则图解
- RHCSA 01 - 创建分区与文件系统
- I.MX6U-ALPHA开发板(C语言版本LED驱动实验)
猜你喜欢

Asahi Kasei participated in the 5th China International Import Expo (5th ciie) for the first time
![[microservice openfeign] @feignclient detailed explanation](/img/8d/83bcde1355366c7c88a7a9ade7f9eb.png)
[microservice openfeign] @feignclient detailed explanation
Tcp- simple understanding of three handshakes and four waves

一个漂亮的API文档生成工具

分布式CAP理论

Keysight n9320b RF spectrum analyzer solves tire pressure monitoring scheme

【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装

Exploration and practice of eventbridge in the field of SaaS enterprise integration

优秀的测试/开发程序员是怎么修炼的?该往哪走......

【愚公系列】2022年7月 Go教学课程 001-Go语言前提简介
随机推荐
Leader: who uses redis expired monitoring to close orders and get out of here!
Experience sharing of epidemic telecommuting | community essay solicitation
Talking about what a high-quality little red book copy needs to have
I.MX6U-ALPHA开发板(C语言版本LED驱动实验)
Redis:哈希hash类型数据操作命令
Keysight N9320B射频频谱分析仪解决轮胎压力监测方案
分布式CAP理论
Select function variable column name in dplyr of R language
深入解析结构化异常处理(SEH) - by Matt Pietrek
Wechat brain competition answer applet_ Support the flow main belt with the latest question bank file
Leetcode brush question: binary tree 06 (symmetric binary tree)
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Balloon punching and Boolean operation problems (extremely difficult)
R语言中如何查看已安装的R包
最长递增子序列问题(你真的会了吗)
C language bidirectional linked list first edition
Unity资源路径
“找工作不要太在意工资”,这是我听过最大的谎言
1. Mx6u-alpha development board (LED drive experiment in C language version)
新手找陪驾要注意什么