当前位置:网站首页>6-22漏洞利用-postgresql数据库密码破解
6-22漏洞利用-postgresql数据库密码破解
2022-07-31 15:28:00 【山兔1】

postgresql介绍
PostgreSQL是关系数据库,加州大学伯克利分校计算机系开发的POSTGRES,现在已经更名为PostgreSQL,版本4.2为基础的对象关系型数据库管理系统(ORDBMS)。PostgreSQL支持大部分SQL标准并且提供了许多其他现代特性:复杂查询、外键、触发器、视图、事务完整性、MVCC。同样,PostgreSQL可以用许多方法扩展,比如,通过增加新的数据类型、函数、操作符、聚集函数、索引。免费使用、修改和分发PostgreSQL,不管是私用、商用,还是学术研究使用。
https://www.postgresql.org/

探测目标postgresql
使用nmap -sV -p 5432 IP地址 探测目标postgresql版本信息。
nmap -sV -p 5432 192.168.1.105

默认情况下,postgresql的端口号是5432,我们探测完postgresql之后,就对postgresql进行安全测试,我们想到的是用密码字典对postgresql进行暴力破解
msf暴力破解postgresql
在msf下使用postgresql_login模块 破解postgresql登录用户名和密码

msfconsole
use auxiliary/scanner/postgres/postgres_version
show options
set rhosts 192.168.1.105
show options
run


metersploit测试的更加精细化,直接给出了对应的版本,但是不一定是正确的,因为探测有误差,我们大致可以认为是8.3.x版本
use auxiliary/scanner/postgres/postgres_login
show options
run

当我们拿到用户名和密码之后,就要想到用用户名和密码进行登录
登录postgresql
利用pyadmin客户端软件登陆postgresql

我们无法连接到数据库,是因为版本无法支持,但是,我们同样可以查看,我们也可以使用命令行的工具来登录
我们在以后的探测中,一定要多种工具同时探测,以确保工具的准确性
我们对于暴力破解最好的防御措施,使用比较复杂的字母数字符号组合成的密码,来防止对应的暴力破解,以及我们可以设置可以登录IP地址的范围,使得我们过滤掉一些不安全的IP,同时,我们也要监控登录的日志,使得我们出现异常登录,可以即时的发现,问题以及所在
边栏推荐
- JVM参数解析 Xmx、Xms、Xmn、NewRatio、SurvivorRatio、PermSize、PrintGC「建议收藏」
- 为什么毕业季不要表白?
- 三、数组
- Matlab matrix basic operations (definition, operation)
- 为什么黑客领域几乎一片男生?
- R language moves time series data forward or backward (custom lag or lead period): use the lag function in the dplyr package to move the time series data forward by one day (set the parameter n to a p
- WPF项目--控件入门基础用法,必知必会XAML
- 双边滤波加速「建议收藏」
- MySQL database operations
- Ubantu专题5:设置静态ip地址
猜你喜欢

The use of button controls

mysql黑窗口~建库建表
![[MySQL] Mysql paradigm and the role of foreign keys](/img/9d/a4295de26683d7bca2b8e9d14f754b.png)
[MySQL] Mysql paradigm and the role of foreign keys

mysql black window ~ build database and build table

Internet banking stolen?This article tells you how to use online banking safely

安装Xshell并使用其进行Ymodem协议的串口传输

使用 GraphiQL 可视化 GraphQL 架构

女性服务社群产品设计

工程力学复习资料

Ubantu project 4: xshell, XFTP connected the virtual machine and set xshell copy and paste the shortcut
随机推荐
Female service community product design
浏览器自带的拾色器
Linux check redis version (check mongodb version)
435. 无重叠区间
贪吃蛇项目(简单)
更新数据表update
Oracle动态注册非1521端口
update data table update
R language ggplot2 visualization: use the ggmapplot function of the ggpubr package to visualize the MA plot (MA-plot), the font.legend parameter and the font.main parameter to set the title and legend
Ubuntu Topic 5: Setting a Static IP Address
做事软件开发-法的重要性所在以及合理结论的认识
华医网冲刺港股:5个月亏2976万 红杉与姚文彬是股东
[CUDA study notes] First acquaintance with CUDA
Emmet syntax
Getting Started with TextBlock Control Basic Tools Usage, Get Started
微信聊天记录中搜索红包
力扣:56. 合并区间
QGIS 加载WMS数据,重新投影
Word table to Excel
"Autumn Recruitment Series" MySQL Interview Core 25 Questions (with answers)