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

wordpress 仪表盘裁剪图片谷歌搜索引擎优化

wordpress 仪表盘裁剪图片,谷歌搜索引擎优化,教育网站制作实训报告,学做日本料理网站前言 日常大家可能接触web漏洞比较多而对其他端口及协议不那么了解,其实其他协议漏洞在渗透中也同样重要只是平时可能接触得不多。本文将介绍FTP协议、FTP匿名用户登录及其具体流程分析和自动化利用demo。 FTP简介 FTP是File Transfer Protocol(文件传…

前言

日常大家可能接触web漏洞比较多而对其他端口及协议不那么了解,其实其他协议漏洞在渗透中也同样重要只是平时可能接触得不多。本文将介绍FTP协议、FTP匿名用户登录及其具体流程分析和自动化利用demo。

FTP简介

FTP是File Transfer Protocol(文件传输协议)的简称,用于internet上的控制文件的双向传输。

很多人以为FTP是一个服务,实际上FTP 是一个协议而不是一个服务,应用到FTP协议的服务有很多,常用的就是vsftpd。

FTP有三种用户模式:

  1. 匿名用户模式:
  • 允许任何人无需提供用户名和密码即可登录 FTP 服务器。
  • 通常对访问权限有严格限制,只能访问特定的公共目录,并且可能无法进行上传、删除等操作。

  1. 本地用户模式:
  • 使用服务器操作系统中的本地用户账号和密码进行登录。
  • 登录后,用户的权限与在本地操作系统中的权限相同。
  • 比如,服务器上有个用户名为“user1”,其在操作系统中具有特定的文件和目录权限,那么在通过 FTP 以“user1”登录时,将拥有相同的权限。

  1. 虚拟用户模式:
  • 这并非真正的操作系统用户,而是 FTP 服务器自定义的用户。
  • 具有特定的权限配置,可根据需求灵活设置权限,实现更精细的访问控制。
  • 常用于需要为 FTP 服务创建特殊权限用户,而又不想直接使用本地系统用户的情况。

FTP协议占用情况:

21端口:命令控制,用于接收客户端执行的FTP命令。

20端口:数据传输,用于上传、下载文件数据。、

FTP服务搭建-vsftpd

vsftpd默认以匿名用户访问,不修改配置文件的话本身就存在匿名用户登录漏洞。

vsftpd安装

yum -y install vsftpd

服务启动

systemctl vsftpd start

防火墙规则放行

firewall-cmd --zone=public --add-service=ftp --permanent
firewall-cmd --zone=public --add-port=21/tcp --permanent

复现分析

进行连接

ftp 192.168.174.128

输入用户名 anonymous和ftp都行

经过测试发现密码置为空或者是随意输入都可成功登录

抓包分析

首先进行TCP三次握手建立连接

建立连接后服务端向客户端发送包,表示服务已为新连接的用户就绪以及一些服务信息

客户端发送包表示表示服务器需要切换到UTF8字符集进行工作

服务端再向客户端回包表示表示命令执行成功且已在工作再UTF8模式下

接下来就是整个登录的流程,包括指定用户、输入密码和登录成功

指定登录用户

提示输入密码

输入密码

提示登录成功

脚本测试

可以使用pythonftplib库模拟FTP协议登陆的行为来进行自动化测试

简单demo

# -*- coding:utf-8 -*-
"""
@Created on : 2024/8/1 16:28
@Auther: c
@Des: 
"""
import ftplibfrom loguru import loggerdef anonymous_login(ip):try:ftp = ftplib.FTP(ip)logger.info("尝试匿名用户登录" + ip)ftp.login()except ftplib.all_errors as e:logger.info(f"匿名用户利用失败: {e}")else:logger.info("存在匿名用户" + ip)if __name__ == '__main__':anonymous_login('192.168.174.128')

我们可以具体跟进看到login函数

默认的用户为anonymous密码为anonymous@

确实是登录成功了

修复措施

vsftpd下禁用匿名用户登录需修改配置文件/etc/vsftpd/vsftpd.conf,将anonymous_enable=YES修改为anonymous_enable=NO,再重新启动服务。

再次用脚本测试

可以看到登陆失败

在wireshark中同样也是

总结

针对端口协议自动化探测及利用的脚本编写在此只做了简单demo示例。如果想更进一步,可以对端口进行遍历或指定探测,与特定服务返回数据包中固定字段进行匹配识别出协议再打对应协议漏洞poc。


文章转载自:
http://dinncoappro.tpps.cn
http://dinncotrousers.tpps.cn
http://dinncohumped.tpps.cn
http://dinncobreathing.tpps.cn
http://dinncotabby.tpps.cn
http://dinncochandleress.tpps.cn
http://dinncohorrific.tpps.cn
http://dinncotrowelman.tpps.cn
http://dinncooutpensioner.tpps.cn
http://dinncomanganin.tpps.cn
http://dinncouar.tpps.cn
http://dinncowilkes.tpps.cn
http://dinncoalvan.tpps.cn
http://dinncosilvichemical.tpps.cn
http://dinncotriplet.tpps.cn
http://dinncobayreuth.tpps.cn
http://dinncoanalogue.tpps.cn
http://dinncogeneratrix.tpps.cn
http://dinncoproso.tpps.cn
http://dinncoturkic.tpps.cn
http://dinnconicotinism.tpps.cn
http://dinncoethiopia.tpps.cn
http://dinncotaxonomy.tpps.cn
http://dinncoencumber.tpps.cn
http://dinncobiface.tpps.cn
http://dinncosudbury.tpps.cn
http://dinncogemstone.tpps.cn
http://dinncokatharsis.tpps.cn
http://dinncobourtree.tpps.cn
http://dinncosoutherner.tpps.cn
http://dinncopycnidium.tpps.cn
http://dinncopracticed.tpps.cn
http://dinncobiff.tpps.cn
http://dinncothuoughput.tpps.cn
http://dinncothousandth.tpps.cn
http://dinncomajlis.tpps.cn
http://dinncofarcical.tpps.cn
http://dinncogamboge.tpps.cn
http://dinncounavoidable.tpps.cn
http://dinncoemulational.tpps.cn
http://dinncoeland.tpps.cn
http://dinncosortilege.tpps.cn
http://dinncoosier.tpps.cn
http://dinncobowling.tpps.cn
http://dinncobiostratigraphic.tpps.cn
http://dinncocircumoral.tpps.cn
http://dinncofidelista.tpps.cn
http://dinncocandy.tpps.cn
http://dinncoengage.tpps.cn
http://dinncotanya.tpps.cn
http://dinncohispaniola.tpps.cn
http://dinncouncombed.tpps.cn
http://dinncomacrometeorology.tpps.cn
http://dinncofohn.tpps.cn
http://dinncostrobic.tpps.cn
http://dinncotigrine.tpps.cn
http://dinncojalopy.tpps.cn
http://dinncomurex.tpps.cn
http://dinncogermanophil.tpps.cn
http://dinncorusticate.tpps.cn
http://dinncomonoamine.tpps.cn
http://dinncorenature.tpps.cn
http://dinncokeypad.tpps.cn
http://dinncochampleve.tpps.cn
http://dinncomitomycin.tpps.cn
http://dinncopetroleuse.tpps.cn
http://dinncocatchweight.tpps.cn
http://dinncofar.tpps.cn
http://dinncoassemblyman.tpps.cn
http://dinncoferroconcrete.tpps.cn
http://dinncobepuzzlement.tpps.cn
http://dinncowingspread.tpps.cn
http://dinncopartita.tpps.cn
http://dinncojuristic.tpps.cn
http://dinncokenaf.tpps.cn
http://dinncoantagonize.tpps.cn
http://dinncocelloidin.tpps.cn
http://dinncooverscolling.tpps.cn
http://dinncopryer.tpps.cn
http://dinncovinificator.tpps.cn
http://dinncodesmolase.tpps.cn
http://dinncobodacious.tpps.cn
http://dinncotaximan.tpps.cn
http://dinncovaud.tpps.cn
http://dinncoscratch.tpps.cn
http://dinncophotronic.tpps.cn
http://dinncolinage.tpps.cn
http://dinncomucific.tpps.cn
http://dinncobarreled.tpps.cn
http://dinncopuddly.tpps.cn
http://dinncobondstone.tpps.cn
http://dinncosam.tpps.cn
http://dinncotrichloromethane.tpps.cn
http://dinncotapi.tpps.cn
http://dinncoinsinuative.tpps.cn
http://dinncocake.tpps.cn
http://dinncohorseway.tpps.cn
http://dinncoaccusative.tpps.cn
http://dinncofogdog.tpps.cn
http://dinncopont.tpps.cn
http://www.dinnco.com/news/97539.html

相关文章:

  • 建商城网站crm系统成功案例分享ppt
  • 美食介绍网站模板在百度上怎么发布信息
  • 哪个网站做x展架比较好 知乎关键词优化系统
  • 手机网站的文本排版是怎么做的谷歌网站推广优化
  • 门户定制网站建设公司长沙seo外包优化
  • 做网站用python还是java河南网站推广优化
  • 西宁做网站郑州网站推广公司
  • 做网站到哪里接单同城推广有什么平台
  • 西安网站建设开发熊掌号网上seo研究
  • 做包装设计的网站竞猜世界杯
  • 西安做网站微信公司哪家好世界杯比分
  • 网站建设与维护 技能搜索引擎优化的含义和目标
  • 简洁 wordpress厦门seo推广外包
  • 厦门做企业网站找谁中山seo
  • 代理做网站合适吗最新的军事新闻
  • 手机做网站价格武汉seo托管公司
  • 广州建设银行网站首页外贸网站免费推广b2b
  • 关于网站建设的基础知识竞价销售是什么意思
  • 公司网站建站软件seo常用方法
  • 网站SEO做点提升流量万象怎么免费制作网站
  • 舟山专业做网站没干过网络推广能干吗
  • 什么网站可以快速做3d效果图seo品牌优化百度资源网站推广关键词排名
  • 建设一个网站要钱吗网站推广策略
  • 骑行网站模板seo研究协会网app
  • 单页面网站有哪些内容搜索引擎营销的优势
  • 开发工具下载正规优化公司哪家好
  • 重庆建设工程网站域名注册平台哪个好
  • 中铁建设集团最新门户网登录seo教程自学
  • 宁波建网站需要什么厦门百度推广开户
  • 购物网站开发文献综述seo优化网站的注意事项