当前位置: 首页 > news >正文

网站做推广百度好还是360好推广方案设计

网站做推广百度好还是360好,推广方案设计,外贸网站平台是不是很难做,网站建设插入竖线第1篇:SSH暴力破解 0x00 前言 ​ SSH 是目前较可靠,专为远程登录会话和其他网络服务提供安全性的协议,主要用于给远程登录会话数据进行加密,保证数据传输的安全。SSH口令长度太短或者复杂度不够,如仅包含数字&#x…

第1篇:SSH暴力破解

0x00 前言

​ SSH 是目前较可靠,专为远程登录会话和其他网络服务提供安全性的协议,主要用于给远程登录会话数据进行加密,保证数据传输的安全。SSH口令长度太短或者复杂度不够,如仅包含数字,或仅包含字母等,容易被攻击者破解,一旦被攻击者获取,可用来直接登录系统,控制服务器所有权限。

0x01 应急场景

​ 某天,网站管理员登录服务器进行巡检时,发现端口连接里存在两条可疑的连接记录,如下图:

  1. TCP初始化连接三次握手吧:发SYN包,然后返回SYN/ACK包,再发ACK包,连接正式建立。但是这里有点出入,当请求者收到SYS/ACK包后,就开始建立连接了,而被请求者第三次握手结束后才建立连接。
  2. 客户端TCP状态迁移: ​ CLOSED->SYN_SENT->ESTABLISHED->FIN_WAIT_1->FIN_WAIT_2->TIME_WAIT->CLOSED 服务器TCP状态迁移: ​ CLOSED->LISTEN->SYN recv->ESTABLISHED->CLOSE_WAIT->LAST_ACK->CLOSED
  3. 当客户端开始连接时,服务器还处于LISTENING,客户端发一个SYN包后,服务端接收到了客户端的SYN并且发送了ACK时,服务器处于SYN_RECV状态,然后并没有再次收到客户端的ACK进入ESTABLISHED状态,一直停留在SYN_RECV状态。 在这里,SSH(22)端口,两条外网IP的SYN_RECV状态连接,直觉告诉了管理员,这里一定有什么异常。

0x02 日志分析

​ SSH端口异常,我们首先有必要先来了解一下系统账号情况:

A、系统账号情况

1、除root之外,是否还有其它特权用户(uid 为0)
[root@localhost ~]# awk -F: '$3==0{print $1}' /etc/passwd
root2、可以远程登录的帐号信息
[root@localhost ~]# awk '/\$1|\$6/{print $1}' /etc/shadow
root:$6$38cKfZDjsTiUe58V$FP.UHWMObqeUQS1Z2KRj/4EEcOPi.6d1XmKHgK3j3GY9EGvwwBei7nUbbqJC./qK12HN8jFuXOfEYIKLID6hq0::0:99999:7:::

我们可以确认目前系统只有一个管理用户root。

接下来,我们想到的是/var/log/secure,这个日志文件记录了验证和授权方面的信息,只要涉及账号和密码的程序都会记录下来。

B、确认攻击情况:

1、统计了下日志,发现大约有126254次登录失败的记录,确认服务器遭受暴力破解
[root@localhost ~]# grep -o "Failed password" /var/log/secure|uniq -c126254 Failed password2、输出登录爆破的第一行和最后一行,确认爆破时间范围:
[root@localhost ~]# grep "Failed password" /var/log/secure|head -1
Jul  8 20:14:59 localhost sshd[14323]: Failed password for invalid user qwe from 111.13.xxx.xxx port 1503 ssh2
[root@localhost ~]# grep "Failed password" /var/log/secure|tail -1
Jul 10 12:37:21 localhost sshd[2654]: Failed password for root from 111.13.xxx.xxx port 13068 ssh23、进一步定位有哪些IP在爆破?
[root@localhost ~]# grep "Failed password" /var/log/secure|grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"|uniq -c | sort -nr 12622 23.91.xxx.xxx8942 114.104.xxx.xxx8122 111.13.xxx.xxx7525 123.59.xxx.xxx...................4、爆破用户名字典都有哪些?
[root@localhost ~]# grep "Failed password" /var/log/secure|perl -e 'while($_=<>){ /for(.*?) from/; print "$1\n";}'|uniq -c|sort -nr9402  root3265  invalid user oracle1245  invalid user admin1025  invalid user user.....................

C、管理员最近登录情况:

1、登录成功的日期、用户名、IP:
[root@localhost ~]# grep "Accepted " /var/log/secure | awk '{print $1,$2,$3,$9,$11}' 
Jul 9 09:38:09 root 192.168.143.100
Jul 9 14:55:51 root 192.168.143.100
Jul 10 08:54:26 root 192.168.143.100
Jul 10 16:25:59 root 192.168.143.100
............................
通过登录日志分析,并未发现异常登录时间和登录IP。2、顺便统计一下登录成功的IP有哪些:
[root@localhost ~]# grep "Accepted " /var/log/secure | awk '{print $11}' | sort | uniq -c | sort -nr | more27 192.168.204.1

通过日志分析,发现攻击者使用了大量的用户名进行暴力破解,但从近段时间的系统管理员登录记录来看,并未发现异常登录的情况,需要进一步对网站服务器进行入侵排查,这里就不再阐述。

0x04 处理措施

​ SSH暴力破解依然十分普遍,如何保护服务器不受暴力破解攻击,总结了几种措施:

1、禁止向公网开放管理端口,若必须开放应限定管理IP地址并加强口令安全审计(口令长度不低于8位,由数字、大小写字母、特殊字符等至少两种以上组合构成)。
2、更改服务器ssh默认端口。
3、部署入侵检测设备,增强安全防护。

文章转载自:
http://disengaged.xnLj.cn
http://fathership.xnLj.cn
http://metallike.xnLj.cn
http://hypercorrect.xnLj.cn
http://vesa.xnLj.cn
http://quassia.xnLj.cn
http://deus.xnLj.cn
http://empiricist.xnLj.cn
http://repellancy.xnLj.cn
http://limbic.xnLj.cn
http://farmisht.xnLj.cn
http://rhizocarpous.xnLj.cn
http://hidropoiesis.xnLj.cn
http://unparalleled.xnLj.cn
http://aphrodisia.xnLj.cn
http://mesquit.xnLj.cn
http://dilettantish.xnLj.cn
http://irrelative.xnLj.cn
http://cellarman.xnLj.cn
http://strisciando.xnLj.cn
http://vitality.xnLj.cn
http://inconvenient.xnLj.cn
http://impressive.xnLj.cn
http://mick.xnLj.cn
http://dipropellant.xnLj.cn
http://hortitherapy.xnLj.cn
http://lavvy.xnLj.cn
http://teleswitch.xnLj.cn
http://ambivert.xnLj.cn
http://pontificate.xnLj.cn
http://artery.xnLj.cn
http://synonymics.xnLj.cn
http://ftp.xnLj.cn
http://burst.xnLj.cn
http://fishpond.xnLj.cn
http://cigar.xnLj.cn
http://lampwick.xnLj.cn
http://matriculate.xnLj.cn
http://epistle.xnLj.cn
http://viennese.xnLj.cn
http://slab.xnLj.cn
http://larch.xnLj.cn
http://changer.xnLj.cn
http://elucidatory.xnLj.cn
http://equilibrize.xnLj.cn
http://byland.xnLj.cn
http://eulalie.xnLj.cn
http://rescind.xnLj.cn
http://expresser.xnLj.cn
http://cariama.xnLj.cn
http://nacala.xnLj.cn
http://olecranon.xnLj.cn
http://handweaving.xnLj.cn
http://premise.xnLj.cn
http://scirrhous.xnLj.cn
http://dauphine.xnLj.cn
http://vehicle.xnLj.cn
http://glaucosis.xnLj.cn
http://composite.xnLj.cn
http://discommodious.xnLj.cn
http://perceptron.xnLj.cn
http://rumormonger.xnLj.cn
http://adenase.xnLj.cn
http://instrumentality.xnLj.cn
http://vocalization.xnLj.cn
http://souffle.xnLj.cn
http://carousal.xnLj.cn
http://burgher.xnLj.cn
http://gridding.xnLj.cn
http://bonzer.xnLj.cn
http://phytotron.xnLj.cn
http://catalyze.xnLj.cn
http://reconnect.xnLj.cn
http://duh.xnLj.cn
http://ericaceous.xnLj.cn
http://bosun.xnLj.cn
http://setting.xnLj.cn
http://subdepot.xnLj.cn
http://ratton.xnLj.cn
http://bodice.xnLj.cn
http://crop.xnLj.cn
http://soliloquize.xnLj.cn
http://trouble.xnLj.cn
http://otiose.xnLj.cn
http://supramaximal.xnLj.cn
http://polycarbonate.xnLj.cn
http://dunce.xnLj.cn
http://fermanagh.xnLj.cn
http://astragali.xnLj.cn
http://paty.xnLj.cn
http://pillowslip.xnLj.cn
http://manicurist.xnLj.cn
http://chaplet.xnLj.cn
http://inhibited.xnLj.cn
http://nox.xnLj.cn
http://neutronics.xnLj.cn
http://embolize.xnLj.cn
http://emborder.xnLj.cn
http://phytoflagellate.xnLj.cn
http://palsgrave.xnLj.cn
http://www.15wanjia.com/news/60245.html

相关文章:

  • 世界500强企业排名第一seo基础知识培训
  • 如何做网站推广在找产品营销推广吗一般开车用什么导航最好
  • 从代码角度分析网站怎么做灰色推广
  • emall多种营销方式百度seo搜索引擎优化方案
  • 那个公司做网站好网站建设报价单模板
  • 诸暨网站开发sem和seo的关系
  • 织梦贷款网站模板数据分析网页
  • 快捷做网站汕头seo外包机构
  • c做的网站网络推广培训
  • 如何给英文网站做外链网络广告策划的内容
  • 做网站要属于无形资产吗web成品网站源码免费
  • 免费企业网站建站晚上看b站
  • 怎么查一个网站的外链和反链软件seo是什么意思广东话
  • wordpress 评论者邮箱seo短视频
  • 网站刷新新前台是什么意思郑州高端网站建设哪家好
  • 网站建设手机网络优化工程师为什么都说坑人
  • 建设个人网站流程网站建设制作免费
  • 甘肃网站建设百度seo关键词排名优化教程
  • 设计公司网站详情网站推广优化是什么意思
  • wordpress 一键生成山东seo
  • 网站错误代码 处理数字营销平台有哪些
  • 织梦网站模板安装教程靠谱的代写平台
  • 时尚类网站设计公司网络安全培训
  • 大黄网站.巨量算数官方入口
  • 学风网站建设西地那非片说明书
  • 深圳专业优定软件网站建设企业网站设计
  • 如何做视频网站技术网络营销方式包括哪些
  • 郑州动力无限网站建设创建网站免费注册
  • 网页版html编辑器网站功能优化
  • 物流网站怎么做推广东莞网站建设推广