GithubHelp home page GithubHelp logo

lion9453 / postgres-pth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mkopec3/postgres-pth

0.0 0.0 0.0 400.09 MB

These sources, prepared based on this excellent write-up: https://hashcat.net/misc/postgres-pth/postgres-pth.pdf, might be used for quickly building Pass-The-Hash enabled PostgreSQL client software on recent versions of Linux & Windows

Home Page: https://hashcat.net/forum/thread-4148.html

License: Other

Shell 0.27% Ruby 0.08% C++ 2.67% Python 0.02% Perl 0.94% C 86.42% Emacs Lisp 0.01% Objective-C 0.11% Assembly 0.01% Makefile 0.84% XS 0.03% PLpgSQL 5.69% SQLPL 0.59% PLSQL 0.02% DTrace 0.01% Batchfile 0.02% Yacc 1.56% Lex 0.52% M4 0.19% Csound Score 0.01%

postgres-pth's Introduction

PostgreSQL Pass-The-Hash

These sources, prepared based on this excellent write-up: https://hashcat.net/misc/postgres-pth/postgres-pth.pdf, might be used for quickly building Pass-The-Hash enabled PostgreSQL client software on recent versions of Linux & Windows

psql-pth

Getting Started

Prerequisites

Kali Linux Rolling

# apt update && apt install libreadline-dev zlib1g-dev bison flex

Windows 10

Docker

  • Docker :)

Installing

Kali Linux Rolling

Quick mode:

$ wget -q -O- https://raw.githubusercontent.com/mkopec3/postgres-pth/master/kali_homedir_install.sh |sh

Review kali_homedir_install.sh for hints regarding manual installation

Windows 10

Make sure that GnuWin32, Perl and other required tools are visible in PATH. From VS2017 Developer Command Prompt:

\postgres-pth\src\tools\msvc> build psql

Copy \Release\libpq\libpq.dll, \Release\psqlpsql.exe, and vcruntime140.dll (you need to find it) files to the same selected directory

Docker

Refer to Usage section

Usage

Kali Linux Rolling

$ ~/psql-pth/bin/psql -h 127.0.0.1 -p 5432 -U username dbname
Hash for user username: md57bf07133****************1c058d18

Windows 10

$ psql.exe -h 127.0.0.1 -p 5432 -U username dbname
Hash for user username: md57bf07133****************1c058d18

Docker

$ docker run -it mkopec3/postgres-pth -h X.X.X.X -p 5432 -U username dbname
Hash for user username: md57bf07133****************1c058d18

Issues

Report here

Authors

PostgreSQL PTH concept comes from research work done by Jens Steube and Philipp Schmidt, which is well described here.

Thank you guys for your awesome work!

~99% of the code seen here comes from PostgreSQL project. Patches, and other small adjustments have been developed by other unknown or forgotten authors

License

See the COPYRIGHT file for details

postgres-pth's People

Contributors

bmomjian avatar tglsfdc avatar petere avatar scrappy avatar robertmhaas avatar hlinnaka avatar alvherre avatar mhagander avatar vadim4o avatar adunstan avatar tatsuo-ishii avatar simonat2ndquadrant avatar feodor avatar anarazel avatar masaofujii avatar nmisch avatar sfrost avatar itgacky avatar dbdbdb avatar kgrittn avatar jconway avatar grunthos avatar darcyjcain avatar mkopec3 avatar gsstark avatar jeff-davis avatar michvhf avatar kjurka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.