Added PostgreSQL UDF to execute commands on the underlying system:

* sys_eval() to return the standard output
* sys_exec() to return the exit status

Inspired by lib_mysqludf_sys 0.0.3 (https://svn.sqlmap.org/sqlmap/trunk/sqlmap/extra/mysqludfsys/)
This commit is contained in:
Bernardo Damele
2009-01-22 00:35:17 +00:00
parent ae0f1985f3
commit 9631dc115e
6 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
LIBDIR=/usr/lib
install:
gcc -Wall -I/usr/include/postgresql/8.3/server -I. -shared lib_postgresqludf_sys.c -o $(LIBDIR)/lib_postgresqludf_sys.so