mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-27 12:03:49 +03:00
161590e121
* sys_eval() to return the standard output * sys_exec() to return the exit status It's a patched version of http://mysqludf.org/lib_mysqludf_sys/index.php
26 lines
587 B
Bash
Executable File
26 lines
587 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Compiling the MySQL UDF"
|
|
make
|
|
|
|
if test $? -ne 0; then
|
|
echo "ERROR: You need libmysqlclient development software installed "
|
|
echo "to be able to compile this UDF, on Debian/Ubuntu just run:"
|
|
echo "apt-get install libmysqlclient15-dev"
|
|
exit 1
|
|
else
|
|
echo "MySQL UDF compiled successfully"
|
|
fi
|
|
|
|
echo -e "\nPlease provide your MySQL root password and press RETURN: \c"
|
|
read PASSWORD
|
|
|
|
mysql -u root --password=$PASSWORD mysql < lib_mysqludf_sys.sql
|
|
|
|
if test $? -ne 0; then
|
|
echo "ERROR: unable to install the UDF"
|
|
exit 1
|
|
else
|
|
echo "MySQL UDF installed successfully"
|
|
fi
|