Spencer McIntyre
3908fd4829
Use the new #starttls method
2025-12-02 16:09:31 -05:00
cgranleese-r7
13c3f4349d
Adds exception and change SSL socket initialisation
2025-09-22 14:57:46 +01:00
cgranleese-r7
f26c14f05a
Address PR feedback
2025-09-17 15:38:08 +01:00
cgranleese-r7
dbb631ffb6
Adds SSL support to the postgres_login module
2025-09-09 09:56:36 +01:00
bcoles
5aa91bd57c
Rubocop: Resolve Rubocop Style/RedundantRegexpArgument violations
2025-05-24 13:34:32 +10:00
cgranleese-r7
3d044c4241
Fixes an issue were a regex mactch could have returned nil
2024-05-07 16:46:34 +01:00
cgranleese-r7
b83f2e3e6c
Updates handling of arm for both PostgreSQL and MySQL
2024-04-19 11:11:12 +01:00
cgranleese-r7
c694522680
Improves test and updates regex handling
2024-04-18 15:45:36 +01:00
cgranleese-r7
3f2e32ef6a
Add arch/platform detection for Postgres
2024-04-15 16:04:57 +01:00
cgranleese-r7
961a072de4
Improves handling of dying SMB and SQL sessions
2024-03-20 14:16:01 +00:00
sjanusz-r7
3c8f43e23e
Align SQL sessions peerhost and peerport
2024-03-04 13:11:32 +00:00
sjanusz-r7
6fe9ef5f8c
Align SQL clients to use current_database
2024-02-29 12:34:54 +00:00
sjanusz-r7
fc963bd8bb
Add Proxies support to creating a session with postgres_login
2024-02-16 14:45:17 +00:00
sjanusz-r7
30fc29e0f5
Use PostgreSQL session type for modules
2024-02-09 15:38:06 +00:00
sjanusz-r7
23a9938283
Add PostgreSQL session type
2024-01-19 10:29:37 +00:00
h00die
6a851855a8
spelling fixes for lib folder
2024-01-06 15:54:49 -05:00
adfoster-r7
d11f15b9af
Update gem dependencies
2023-10-06 15:49:06 +01:00
adfoster-r7
98ac76d54f
Add sasl scram 256 auth support to postgres modules
2023-08-09 16:41:01 +01:00
gwillcox-r7
a92ffe4486
Fix logic bugs I introduced with my last fix
2020-08-04 16:20:49 -05:00
gwillcox-r7
be4d5d90bb
Update fix to use 'if' statement rather than 'unless' as this makes more sense here.
2020-08-04 14:58:01 -05:00
gwillcox-r7
307dcc9b19
Add further checks to ensure that the 'type' value does not cause issues if it is 'nil'
2020-08-04 14:32:21 -05:00
gwillcox-r7
c196d9b733
Fix up lib/postgres/postgre-pr/message.rb and its self.read function so that it will handle cases where stream reads might not return any bytes at all, resulting in length being nil
2020-08-04 14:19:56 -05:00
Alan Foster
3ab407d947
Add additional logging for unknown postgres authtypes
2020-02-23 01:27:42 +00:00
Dev Mohanty
ce62984e52
Fix #6079 , Check nil when using read_exactly_n_bytes
2015-11-16 18:06:49 -06:00
David Maloney
75c075e32b
properly anchor regexes
...
duh
2015-03-03 19:15:29 -06:00
David Maloney
aa4038d539
allow the postgres librry to take an md5 hash
...
allow the raw md5 password hash to be passed in instead of
a password for md5 authentication in postgres. Adds an extra exception
class for when an md5 hash is given but the server expects
a different form of authentication.
MSP-12244
2015-03-03 13:16:46 -06:00
Tab Assassin
7e5e0f7fc8
Retab lib
2013-08-30 16:28:33 -05:00
HD Moore
d656e3185f
Mark all libraries as defaulting to 8-bit strings
2012-06-29 00:18:28 -05:00
HD Moore
77c986948c
Proper fix for IPv6 postgresql connections
2012-01-31 02:08:02 -06:00
Tod Beardsley
a74b67d73f
See #808 . Converts the metasploit fork of postgres-pr to use Rex::Socket instead of
...
TCPSocket. Now we need to remove the connection test hacks from the postgres modules.
git-svn-id: file:///home/svn/framework3/trunk@8520 4d416f70-5f16-0410-b530-b9f4589650da
2010-02-16 17:42:38 +00:00
Tod Beardsley
95ace009ff
Bad class for Exception (needed ::Exception)
...
git-svn-id: file:///home/svn/framework3/trunk@8343 4d416f70-5f16-0410-b530-b9f4589650da
2010-02-01 21:26:23 +00:00
Tod Beardsley
a65af9c8b3
See #730 . Forking and adding Postgres-PR, with the following changes:
...
Namespaced everything under Msf::Db::PostgreSQL, renamed top-level include to postgres_msf to disambiguate.
Included recursive requires for all files.
Noted the IO monkeypatch -- should revisit.
Added a testcase for database connections.
The reason for the namespacing is to avoid stomping on any existing Postgres-PR installations, or any other requires named "postgres" or "postgresql" or even "pg," since these may or may not support the method's we're using here. The seperate namespace also allows for easier integration of custom commands later on.
git-svn-id: file:///home/svn/framework3/trunk@8342 4d416f70-5f16-0410-b530-b9f4589650da
2010-02-01 19:49:36 +00:00