当前位置:网站首页>web渗透测试----5、暴力破解漏洞--(8)PostgreSQL密码破解
web渗透测试----5、暴力破解漏洞--(8)PostgreSQL密码破解
2022-06-24 03:49:00 【七天啊】
PostgreSQL是一种特性非常齐全的自由软件的对象-关系型数据库管理系统(ORDBMS)。PostgreSQL支持大部分的SQL标准并且提供了很多其他现代特性,如复杂查询、外键、触发器、视图、事务完整性、多版本并发控制等。同样,PostgreSQL也可以用许多方法扩展,例如通过增加新的数据类型、函数、操作符、聚集函数、索引方法、过程语言等。另外,因为许可证的灵活,任何人都可以以任何目的免费使用、修改和分发PostgreSQL。默认端口:5432
一、hydra
Hydra 是一个并行的登录破解器,它支持多种攻击协议。它非常快速和灵活,并且新模块很容易添加。kali工具集已集成。
hydra项目地址:
https://github.com/vanhauser-thc/thc-hydra/releases全版本
hydra支持:
Cisco AAA、Cisco auth、Cisco enable、CVS、FTP、HTTP(S)-FORM-GET、HTTP(S)-FORM-POST、HTTP(S)-GET、HTTP(S)-HEAD、HTTP-代理、ICQ、IMAP、IRC、LDAP、MS-SQL、MySQL、NNTP、Oracle 侦听器、Oracle SID、PC-Anywhere、PC-NFS、POP3、PostgreSQL、RDP、Rexec、Rlogin、Rsh、SIP、SMB(NT)、SMTP、SMTP 枚举、SNMP v1+v2+v3、SOCKS5、SSH(v1 和 v2)、SSHKEY、Subversion、Teamspeak (TS2)、Telnet、VMware-Auth、VNC 和 XMPP`。
hydra -L /root/Desktop/user.txt -P /root/Desktop/pass.txt IP postgres
-P: 表示密码列表的路径
-L:表示用户名列表的路径
二、Medusa
Medusa 是一个快速、并行和模块化的登录暴力破解器。目标是支持尽可能多的允许远程身份验证的服务。kalikali工具集已集成。
文档:
www.foofus.net/jmk/medusa/medusa.html
源代码:https://github.com/jmk-foofus/medusahttps://github.com/jmk-foofus/medusa/archive/2.2.tar.gz
主要功能如下:
1、基于线程的并行测试:可以同时针对多个主机、用户或密码执行蛮力测试。
2、灵活的用户输入:可以通过多种方式指定目标信息(主机/用户/密码)。例如,每个项目可以是单个条目,也可以是包含多个条目的文件。此外,组合文件格式允许用户细化他们的目标列表。
3、模块化设计:每个服务模块作为一个独立的 .mod 文件存在。这意味着无需对核心应用程序进行任何修改即可扩展支持的服务列表以进行暴力破解。
4、支持多种协议:当前支持许多服务(例如 SMB、HTTP、POP3、MS-SQL、SSHv2 等)。
medusa -h IP –U /root/Desktop/user.txt –P /root/Desktop/pass.txt –M postgres
-U:表示用户名列表的路径-P:表示密码列表的路径-M:指定爆破参数类型
三、Ncrack
Ncrack是一款高速网络认证破解工具。它旨在通过主动测试其所有主机和网络设备的密码错误来帮助公司保护其网络。Ncrack 是使用模块化方法、类似于 Nmap 的命令行语法和可以根据网络反馈调整其行为的动态引擎设计的。它允许对多个主机进行快速而可靠的大规模审计。kali工具集已集成。
Ncrack 的功能包括一个非常灵活的界面,允许用户完全控制网络操作,允许非常复杂的暴力破解攻击,易于使用的定时模板,类似于 Nmap 的运行时交互等等。支持的协议包括
SSH、RDP、FTP、Telnet、HTTP(S)、Wordpress、POP3(S)、IMAP、CVS、SMB、VNC、SIP、Redis、PostgreSQL、MQTT、MySQL、MSSQL、MongoDB、Cassandra、WinRM、OWA , 和 DICOM
ncrack –v –U /root/Desktop/user.txt –P /root/Desktop/pass.txt IP:5432
-U:表示用户名列表的路径-P:表示密码列表的路径-v:增加详细级别(使用两次或更多以获得更好的效果)
四、Patator
Patator 是出于对使用 Hydra、Medusa、Ncrack、Metasploit 模块和 Nmap NSE 脚本进行密码猜测攻击的挫败感而编写的。我选择了一种不同的方法,以便不创建另一个暴力破解工具并避免重复相同的缺点。Patator 是一个用 Python 编写的多线程工具,它力求比他的前辈们更加可靠和灵活。
patator pgsql_login host=IP user=FILE0 0=/root/Desktop/user.txt password=FILE1 1=/root/Desktop/pass.txt
五、Metasploit
use auxiliary/scanner/postgres/postgres_login
msf exploit (scanner/postgres/postgres_login)>set rhosts IP
msf exploit (scanner/postgres/postgres_login)>set user_file /root/Desktop/user.txt
msf exploit (scanner/postgres/postgres_login)>set pass_file /root/Desktop/pass.txt
msf exploit (scanner/postgres/postgres_login)>set stop_on_success true
msf exploit (scanner/postgres/postgres_login)> exploit
边栏推荐
- The first 2021 Western cloud security summit is coming! See you in Xi'an on September 26!
- MySQL cases SQL causes 100% CPU utilization
- [Numpy] Numpy对于NaN值的判断
- 系统的去学习一门编程语言,原来有如此捷径
- How to gracefully handle and return errors in go (1) -- error handling inside functions
- 给你讲懂 MVCC
- Maintain the visibility of data automation: logging, auditing and error handling of the bridge of knowledge and action
- Go language Chanel memory model
- 2. in depth tidb: entry code analysis and debugging tidb
- Methods of creating and modifying shell script files in batch
猜你喜欢

Yuanqi forest pushes "youkuang", and farmers' mountain springs follow the "roll"?

应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构
![[numpy] numpy's judgment on Nan value](/img/aa/dc75a86bbb9f5a235b1baf5f3495ff.png)
[numpy] numpy's judgment on Nan value

Flutter series: offstage in flutter

祝贺钟君成为 CHAOSS Metric Model 工作组的 Maintainer

共建欧拉社区 共享欧拉生态|携手麒麟软件 共创数智未来

openEuler社区理事长江大勇:共推欧拉开源新模式 共建开源新体系

JVM调优简要思想及简单案例-怎么调优

How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!

15+ urban road element segmentation application, this segmentation model is enough
随机推荐
Prometheus PushGateway 碎碎念
How to select a high-performance amd virtual machine? AWS, Google cloud, ucloud, Tencent cloud test big PK
C string input considerations
Pycharm from installation to full armament
Kubernetes resource topology aware scheduling optimization
Go operation mongodb
Flutter series: offstage in flutter
15+ urban road element segmentation application, this segmentation model is enough
[numpy] numpy's judgment on Nan value
15+城市道路要素分割应用,用这一个分割模型就够了
How to adjust the alarm information that remains unchanged after paging is selected on the easygbs alarm page?
How to adjust the incompleteness before and after TS slicing of easydss video recording?
What is a virtual host server? What are the advantages?
Black hat SEO practice: General 301 weight PR hijacking
Through the fog: location notes of Flink crash with a multi component timeout
Tencent cloud console work order submission Guide
[new light weight first purchase special] 1-core 2g5m light weight application server costs 50 yuan in the first year. It is cost-effective and helps you get on the cloud easily!
LeetCode 2006. Number of pairs whose absolute value of difference is k
英特尔 XTU 官方超频工具已支持 Win11 22H2 和 13 代酷睿 Raptor Lake 处理器
Maintain the visibility of data automation: logging, auditing and error handling of the bridge of knowledge and action