=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== wwwconfig-common-0.3.0/mysql-createuser.sh-53- script=" wwwconfig-common-0.3.0/mysql-createuser.sh:54: GRANT ALL PRIVILEGES ON \`$dbname\`.* TO \`$dbuser\`@'$dballow' wwwconfig-common-0.3.0/mysql-createuser.sh-55- IDENTIFIED BY '$dbpass'; wwwconfig-common-0.3.0/mysql-createuser.sh-56- wwwconfig-common-0.3.0/mysql-createuser.sh:57: GRANT ALL PRIVILEGES ON \`$dbname\`.* TO \`$dbuser\`@localhost wwwconfig-common-0.3.0/mysql-createuser.sh-58- IDENTIFIED BY '$dbpass'; ############################################## wwwconfig-common-0.3.0/mysql.get-30- :*) wwwconfig-common-0.3.0/mysql.get:31: dbsocket=`echo $dbserver | sed -e 's/^://'` wwwconfig-common-0.3.0/mysql.get-32- hostopt="-S $dbsocket" ############################################## wwwconfig-common-0.3.0/mysql.get-42-else wwwconfig-common-0.3.0/mysql.get:43: passopt="--password='"`echo "$dbadmpass" | sed -e "s/'/'"'"'"'"'"'"'/g"`"'" wwwconfig-common-0.3.0/mysql.get-44-fi ############################################## wwwconfig-common-0.3.0/pgsql-createuser.sh-51-else wwwconfig-common-0.3.0/pgsql-createuser.sh:52: tmpuser=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/pgsql-createuser.sh-53- if [ "$tmpuser" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/pgsql-createuser.sh-71- elif eval $pgsqlcmd -d $systemdb -c "\"CREATE USER "'\"'"$dbuser"'\"'" WITH SYSID $nextsysid PASSWORD '$dbpass'\"" ; > /dev/null 2>&1; then wwwconfig-common-0.3.0/pgsql-createuser.sh:72: tmpuser=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser'\"") wwwconfig-common-0.3.0/pgsql-createuser.sh-73- if [ "$tmpuser" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch-13- else wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch:14:- if [ $($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';") = "$dbuser" ] ; then wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch-15-- if $pgsqlcmd -d $systemdb -c " wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch:16:+ if [ "$($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';")" = "$dbuser" ] ; then wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch-17-+ if $pgsqlcmd -q -d $systemdb -c " wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch-18- DELETE FROM pg_shadow wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch:19:- WHERE usename='$dbuser';" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch:20:+ WHERE usename='$dbuser';" ; then wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch:21: if [ -z "$($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';")" ] ; then wwwconfig-common-0.3.0/patches/bug-137986-pgsql-dropuser.patch-22- log="${log}User $dbuser droped." ############################################## wwwconfig-common-0.3.0/patches/bug-225424-grant-all-privileges.patch-18-- CONNECT mysql; wwwconfig-common-0.3.0/patches/bug-225424-grant-all-privileges.patch:19:+ GRANT ALL PRIVILEGES ON \`$dbname\`.* TO \`$dbuser\`@'$dballow' wwwconfig-common-0.3.0/patches/bug-225424-grant-all-privileges.patch-20-+ IDENTIFIED BY '$dbpass'; ############################################## wwwconfig-common-0.3.0/patches/bug-225424-grant-all-privileges.patch-54-- ); wwwconfig-common-0.3.0/patches/bug-225424-grant-all-privileges.patch:55:+ GRANT ALL PRIVILEGES ON \`$dbname\`.* TO \`$dbuser\`@localhost wwwconfig-common-0.3.0/patches/bug-225424-grant-all-privileges.patch-56-+ IDENTIFIED BY '$dbpass'; ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-846-+ DELETE FROM user wwwconfig-common-0.3.0/patches/bug-116604.patch:847:+ WHERE user='$dbuser'; wwwconfig-common-0.3.0/patches/bug-116604.patch-848-+ wwwconfig-common-0.3.0/patches/bug-116604.patch-849-+ DELETE FROM db wwwconfig-common-0.3.0/patches/bug-116604.patch:850:+ WHERE user='$dbuser'; wwwconfig-common-0.3.0/patches/bug-116604.patch-851-+ ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1335-- . /usr/share/wwwconfig-common/pgsql-userpass.get wwwconfig-common-0.3.0/patches/bug-116604.patch:1336:+ if [ $($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';") = "$dbuser" ] ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1337-+ . /usr/share/wwwconfig-common/pgsql-userpass.get ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1341--# echo "Need to change user ($dbuser) password." wwwconfig-common-0.3.0/patches/bug-116604.patch:1342:- if $pgsqlcmd $systemdb -c "UPDATE pg_shadow SET passwd='$dbpass' WHERE usename='$dbuser'" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1343-- echo "Password changed for pgsql user $dbuser." ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1350-+ SET passwd='$dbpass' wwwconfig-common-0.3.0/patches/bug-116604.patch:1351:+ WHERE usename='$dbuser'" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1352-+ log="${log}Password changed for pgsql user $dbuser.\n" ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1366-+ " > /dev/null 2>&1; then wwwconfig-common-0.3.0/patches/bug-116604.patch:1367:+ if [ $($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';") = "$dbuser" ] ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1368-+ log="${log}Pgsql user $dbuser created.\n" ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1484-+else wwwconfig-common-0.3.0/patches/bug-116604.patch:1485:+ if [ $($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';") = "$dbuser" ] ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1486-+ if $pgsqlcmd -d $systemdb -c " wwwconfig-common-0.3.0/patches/bug-116604.patch-1487-+ DELETE FROM pg_shadow wwwconfig-common-0.3.0/patches/bug-116604.patch:1488:+ WHERE usename='$dbuser';" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-116604.patch:1489:+ if [ -z "$($pgsqlcmd -d $systemdb -q -t -A -c "SELECT usename FROM pg_shadow WHERE usename='$dbuser';")" ] ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1490-+ log="${log}User $dbuser droped.\n" ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1669--status=error wwwconfig-common-0.3.0/patches/bug-116604.patch:1670:-if $pgsqlcmd $systemdb -c "select passwd from pg_shadow where usename='$dbuser'" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1671-- status=get wwwconfig-common-0.3.0/patches/bug-116604.patch:1672:- userpass=$($pgsqlcmd $systemdb -c "select passwd from pg_shadow where usename='$dbuser'" | grep -v " passwd" | grep -v -- "------" | grep -v "row" | grep -v -e "^$" | sed -e "s|[[:space:]]||g;") wwwconfig-common-0.3.0/patches/bug-116604.patch-1673-+if [ -z "$pgsql_userpass_get" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-116604.patch-1675-+ status=error wwwconfig-common-0.3.0/patches/bug-116604.patch:1676:+ if $pgsqlcmd $systemdb -c "select passwd from pg_shadow where usename='$dbuser'" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-116604.patch-1677-+ status=get wwwconfig-common-0.3.0/patches/bug-116604.patch:1678:+ userpass=$($pgsqlcmd -d $systemdb -q -t -A -c "select passwd from pg_shadow where usename='$dbuser'") wwwconfig-common-0.3.0/patches/bug-116604.patch-1679-+ pgsql_userpass_get="done" ############################################## wwwconfig-common-0.3.0/patches/bug-235988-better-postgres-suport.patch-43-+ elif eval $pgsqlcmd -d $systemdb -c "\"CREATE USER $dbuser WITH SYSID $nextsysid PASSWORD '$dbpass'\"" ; > /dev/null 2>&1; then wwwconfig-common-0.3.0/patches/bug-235988-better-postgres-suport.patch:44: tmpuser=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/patches/bug-235988-better-postgres-suport.patch-45- if [ "$tmpuser" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-263350-now-apache-modconf.patch-37- phpverm="mod_"$phpver wwwconfig-common-0.3.0/patches/bug-263350-now-apache-modconf.patch:38: phpstatus=`apache-modconf $server query $phpverm || true` wwwconfig-common-0.3.0/patches/bug-263350-now-apache-modconf.patch-39- if [ -z "$phpstatus" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-232816-support-for-socket-connection.patch-20-+ :*) wwwconfig-common-0.3.0/patches/bug-232816-support-for-socket-connection.patch:21:+ dbsocket=`echo $dbserver | sed -e 's/^://'` wwwconfig-common-0.3.0/patches/bug-232816-support-for-socket-connection.patch-22-+ hostopt="-S '$dbsocket'" ############################################## wwwconfig-common-0.3.0/patches/pgsql-sudo-to-su-potential-problem-fix.patchdescription-54-> > do wwwconfig-common-0.3.0/patches/pgsql-sudo-to-su-potential-problem-fix.patchdescription:55:> > _psql_args="$_psql_args '`echo \"$1\" | sed -e \"s/'/'\\\\\\''/g\"`'" wwwconfig-common-0.3.0/patches/pgsql-sudo-to-su-potential-problem-fix.patchdescription-56-> > shift ############################################## wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-69-- SET passwd='$dbpass' wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch:70:- WHERE usename='$dbuser'\"" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-71-+ if eval $pgsqlcmd -d $systemdb -c "\"ALTER USER $dbuser WITH PASSWORD '$dbpass'\"" > /dev/null 2>&1 ; then ############################################## wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-78- elif eval $pgsqlcmd -d $systemdb -c "\"CREATE USER $dbuser WITH SYSID $nextsysid PASSWORD '$dbpass'\"" ; > /dev/null 2>&1; then wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch:79:- tmpuser=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch:80:+ tmpuser=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser'\"") wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-81- if [ "$tmpuser" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-100- else wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch:101: TMPU=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-102- if [ "$TMPU" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-104-- DELETE FROM pg_shadow wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch:105:- WHERE usename='$dbuser';\"" ; then wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-106-+ if eval $pgsqlcmd -q -d $systemdb -c "\"DROP USER $dbuser;\"" ; then wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch:107: TMPU=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/patches/bug-263813-better-postgres-support.patch-108- if [ -z "$TMPU" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch-70-+ elif eval $pgsqlcmd -d $systemdb -c "\"CREATE USER "'\"'"$dbuser"'\"'" WITH SYSID $nextsysid PASSWORD '$dbpass'\"" ; > /dev/null 2>&1; then wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch:71: tmpuser=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser'\"") wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch-72- if [ "$tmpuser" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch-81- else wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch:82: TMPU=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch-83- if [ "$TMPU" = "$dbuser" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch-85-+ if eval $pgsqlcmd -q -d $systemdb -c "\"DROP USER "'\"'"$dbuser"'\"'";\"" ; then wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch:86: TMPU=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/patches/bug-274291-quote-postgres-user.patch-87- if [ -z "$TMPU" ] ; then ############################################## wwwconfig-common-0.3.0/patches/bug-223309-modules-config.patch-33-+ phpverm="mod_"$phpver wwwconfig-common-0.3.0/patches/bug-223309-modules-config.patch:34:+ phpstatus=`modules-config $server query $phpverm || true` wwwconfig-common-0.3.0/patches/bug-223309-modules-config.patch-35-+ if [ -z "$phpstatus" ] ; then ############################################## wwwconfig-common-0.3.0/patches/pgsql-sudo-to-su.patchdescription-24- do wwwconfig-common-0.3.0/patches/pgsql-sudo-to-su.patchdescription:25: _psql_args="$_psql_args '`echo \"$1\" | sed -e \"s/'/'\\\\\\''/g\"`'" wwwconfig-common-0.3.0/patches/pgsql-sudo-to-su.patchdescription-26- shift ############################################## wwwconfig-common-0.3.0/pgsql-dropuser.sh-45-else wwwconfig-common-0.3.0/pgsql-dropuser.sh:46: TMPU=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/pgsql-dropuser.sh-47- if [ "$TMPU" = "$dbuser" ] ; then wwwconfig-common-0.3.0/pgsql-dropuser.sh-48- if eval $pgsqlcmd -q -d $systemdb -c "\"DROP USER "'\"'"$dbuser"'\"'";\"" ; then wwwconfig-common-0.3.0/pgsql-dropuser.sh:49: TMPU=$(eval $pgsqlcmd -d $systemdb -q -t -A -c "\"SELECT usename FROM pg_shadow WHERE usename='$dbuser';\"") wwwconfig-common-0.3.0/pgsql-dropuser.sh-50- if [ -z "$TMPU" ] ; then ############################################## wwwconfig-common-0.3.0/apache-php.sh-39- phpverm="mod_"$phpver wwwconfig-common-0.3.0/apache-php.sh:40: phpstatus=`apache-modconf $server query $phpverm || true` wwwconfig-common-0.3.0/apache-php.sh-41- if [ -z "$phpstatus" ] ; then ############################################## wwwconfig-common-0.3.0/pgsql.get-56- do wwwconfig-common-0.3.0/pgsql.get:57: _psql_args="$_psql_args '`echo \"$1\" | sed -e \"s/'/'\\\\\\''/g\"`'" wwwconfig-common-0.3.0/pgsql.get-58- shift ############################################## wwwconfig-common-0.3.0/mysql-dropuser.sh-53- DELETE FROM user wwwconfig-common-0.3.0/mysql-dropuser.sh:54: WHERE user='$dbuser'; wwwconfig-common-0.3.0/mysql-dropuser.sh-55- wwwconfig-common-0.3.0/mysql-dropuser.sh-56- DELETE FROM db wwwconfig-common-0.3.0/mysql-dropuser.sh:57: WHERE user='$dbuser'; wwwconfig-common-0.3.0/mysql-dropuser.sh-58- ############################################## wwwconfig-common-0.3.0/pgsql-userpass.get-21-status=error wwwconfig-common-0.3.0/pgsql-userpass.get:22:if $pgsqlcmd -d $systemdb -c "select passwd from pg_shadow where usename='$dbuser'" > /dev/null 2>&1 ; then wwwconfig-common-0.3.0/pgsql-userpass.get-23- status=get wwwconfig-common-0.3.0/pgsql-userpass.get:24: userpass=$($pgsqlcmd -d $systemdb -q -t -A -c "select passwd from pg_shadow where usename='$dbuser'") wwwconfig-common-0.3.0/pgsql-userpass.get-25-fi