===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
gvm-11.0.5/gvm-check-setup-92-
gvm-11.0.5/gvm-check-setup:93:VERSION=`openvas --version 2>>$LOG | head -1 | sed -e "s/OpenVAS //"`
gvm-11.0.5/gvm-check-setup-94-
gvm-11.0.5/gvm-check-setup:95:if [ `echo $VERSION | grep "^$SCANNER_MAJOR" | wc -l` -ne "1" ]
gvm-11.0.5/gvm-check-setup-96-then
##############################################
gvm-11.0.5/gvm-check-setup-183-then
gvm-11.0.5/gvm-check-setup:184:  wrong_files=`find $PLUGINSFOLDER ! -user _gvm`
gvm-11.0.5/gvm-check-setup-185-  if [ "$wrong_files" != "" ]
##############################################
gvm-11.0.5/gvm-check-setup-194-
gvm-11.0.5/gvm-check-setup:195:NVTCOUNT=`find $PLUGINSFOLDER -name "*nasl" | wc -l`
gvm-11.0.5/gvm-check-setup-196-if [ $NVTCOUNT -lt 10 ]
##############################################
gvm-11.0.5/gvm-check-setup-240-
gvm-11.0.5/gvm-check-setup:241:VERSION=`ospd-openvas --version 2>>$LOG | head -1 | sed -e "s/OSP Server for openvas: //"`
gvm-11.0.5/gvm-check-setup-242-log_and_print "OK: OpenVAS Scanner is present in version $VERSION."
##############################################
gvm-11.0.5/gvm-check-setup-256-
gvm-11.0.5/gvm-check-setup:257:VERSION=`gvmd --version 2>>$LOG | head -1 | sed -e "s/Greenbone Vulnerability Manager //"`
gvm-11.0.5/gvm-check-setup-258-
gvm-11.0.5/gvm-check-setup:259:if [ `echo $VERSION | grep "^$MANAGER_MAJOR" | wc -l` -ne "1" ]
gvm-11.0.5/gvm-check-setup-260-then
##############################################
gvm-11.0.5/gvm-check-setup-272-echo "Checking GVM Manager client certificate ..." >> $LOG
gvm-11.0.5/gvm-check-setup:273:CERTDIR=`dirname $CAFILE`
gvm-11.0.5/gvm-check-setup-274-CLIENTCERTFILE="$CERTDIR/clientcert.pem"
##############################################
gvm-11.0.5/gvm-check-setup-309-STATEDIR="/var/lib/gvm"
gvm-11.0.5/gvm-check-setup:310:SCAPCOUNT=`find $STATEDIR/scap-data -name "*xml" | wc -l`
gvm-11.0.5/gvm-check-setup-311-if [ $SCAPCOUNT -lt 10 ]
##############################################
gvm-11.0.5/gvm-check-setup-322-echo "Checking CERT data ..." >> $LOG
gvm-11.0.5/gvm-check-setup:323:CERTCOUNT=`find $STATEDIR/cert-data -name "*xml" | wc -l`
gvm-11.0.5/gvm-check-setup-324-if [ $CERTCOUNT -lt 10 ]
##############################################
gvm-11.0.5/gvm-check-setup-346-# version is the one used for gvmd build
gvm-11.0.5/gvm-check-setup:347:postgres_version=`pg_lsclusters --no-header | awk '$3 == "5432" { print $1 }'`
gvm-11.0.5/gvm-check-setup-348-
##############################################
gvm-11.0.5/gvm-check-setup-405-
gvm-11.0.5/gvm-check-setup:406:if [ `echo $VERSION | grep "^$GSA_MAJOR" | wc -l` -ne "1" ]
gvm-11.0.5/gvm-check-setup-407-then
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1064-
gvm-11.0.5/openvas-9-migrate-to-postgres:1065:  x=$(sqlite "SELECT \`$column\` FROM $table LIMIT 1")
gvm-11.0.5/openvas-9-migrate-to-postgres-1066-  if [ "$?" -eq 0 ]
gvm-11.0.5/openvas-9-migrate-to-postgres-1067-  then
gvm-11.0.5/openvas-9-migrate-to-postgres:1068:    sqlite "UPDATE $table SET \`$column\` = $replace WHERE (CAST (\`$column\` AS $type) IS NOT \`$column\`);"
gvm-11.0.5/openvas-9-migrate-to-postgres-1069-  fi
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1081-  do
gvm-11.0.5/openvas-9-migrate-to-postgres:1082:    table=`echo "$line" | cut -d '|' -f1`
gvm-11.0.5/openvas-9-migrate-to-postgres:1083:    column=`echo "$line" | cut -d '|' -f2`
gvm-11.0.5/openvas-9-migrate-to-postgres:1084:    type=`echo "$line" | cut -d '|' -f3`
gvm-11.0.5/openvas-9-migrate-to-postgres-1085-
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1105-  do
gvm-11.0.5/openvas-9-migrate-to-postgres:1106:    table=`echo "$line" | cut -d '|' -f1`
gvm-11.0.5/openvas-9-migrate-to-postgres:1107:    column=`echo "$line" | cut -d '|' -f2`
gvm-11.0.5/openvas-9-migrate-to-postgres:1108:    ftable=`echo "$line" | cut -d '|' -f3`
gvm-11.0.5/openvas-9-migrate-to-postgres:1109:    fcolumn=`echo "$line" | cut -d '|' -f4`
gvm-11.0.5/openvas-9-migrate-to-postgres-1110-
gvm-11.0.5/openvas-9-migrate-to-postgres:1111:    sqlite "UPDATE $table SET \`$column\` = null WHERE \`$column\` NOT IN (SELECT \`$fcolumn\` FROM $ftable);"
gvm-11.0.5/openvas-9-migrate-to-postgres-1112-  done
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1156-    log_info "Copying SQLite3 data: copying table $TABLE"
gvm-11.0.5/openvas-9-migrate-to-postgres:1157:    COLS=`pg "SELECT string_agg ('\"' || column_name || '\"', ',') FROM (SELECT column_name FROM information_schema.columns WHERE table_schema = 'public' AND table_name = '$TABLE' AND column_name != 'orphaned_time' order by ordinal_position) as sub;"`
gvm-11.0.5/openvas-9-migrate-to-postgres-1158-    log_debug "COLS: $COLS"
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1228-
gvm-11.0.5/openvas-9-migrate-to-postgres:1229:TABLES_135=`echo $TABLES_134 | sed -e "s/ report_results//g"`
gvm-11.0.5/openvas-9-migrate-to-postgres-1230-
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1447-
gvm-11.0.5/openvas-9-migrate-to-postgres:1448:TABLES_153_NO_USERS=`echo $TABLES_153 | sed -e "s/^users //g"`
gvm-11.0.5/openvas-9-migrate-to-postgres:1449:TABLES_154=`echo "users credentials credentials_trash credentials_data credentials_trash_data $TABLES_153_NO_USERS" | sed -e "s/\( lsc_credentials\| lsc_credentials_trash\)//g"`
gvm-11.0.5/openvas-9-migrate-to-postgres-1450-
##############################################
gvm-11.0.5/openvas-9-migrate-to-postgres-1658-
gvm-11.0.5/openvas-9-migrate-to-postgres:1659:TABLES_180=`echo $TABLES_178 | sed -e "s/ slaves_trash//g" | sed -e "s/ slaves//g"`
gvm-11.0.5/openvas-9-migrate-to-postgres-1660-