=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== automysqlbackup-2.6+debian.4/debian/defaults-6-# Username to access the MySQL server e.g. dbuser automysqlbackup-2.6+debian.4/debian/defaults:7:#USERNAME=`grep user /etc/mysql/debian.cnf | tail -n 1 | cut -d"=" -f2 | awk '{print $1}'` automysqlbackup-2.6+debian.4/debian/defaults-8- automysqlbackup-2.6+debian.4/debian/defaults-9-# Username to access the MySQL server e.g. password automysqlbackup-2.6+debian.4/debian/defaults:10:#PASSWORD=`grep password /etc/mysql/debian.cnf | tail -n 1 | cut -d"=" -f2 | awk '{print $1}'` automysqlbackup-2.6+debian.4/debian/defaults-11- ############################################## automysqlbackup-2.6+debian.4/debian/defaults-22-# reading the mysql folder content. Feel free to replace by something else. automysqlbackup-2.6+debian.4/debian/defaults:23:# DBNAMES=`find /var/lib/mysql -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f5 | grep -v ^mysql\$ | tr \\\r\\\n ,\ ` automysqlbackup-2.6+debian.4/debian/defaults-24-# This one does a list of dbs using a MySQL statement. automysqlbackup-2.6+debian.4/debian/defaults:25:DBNAMES=`mysql --defaults-file=/etc/mysql/debian.cnf --execute="SHOW DATABASES" | awk '{print $1}' | grep -v ^Database$ | grep -v ^mysql$ | grep -v ^performance_schema$ | grep -v ^information_schema$ | tr \\\r\\\n ,\ ` automysqlbackup-2.6+debian.4/debian/defaults-26- ############################################## automysqlbackup-2.6+debian.4/debian/patches/fix-du-call-with-non-english-locales.patch-12- #Get backup size automysqlbackup-2.6+debian.4/debian/patches/fix-du-call-with-non-english-locales.patch:13:- ATTSIZE=`du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//` automysqlbackup-2.6+debian.4/debian/patches/fix-du-call-with-non-english-locales.patch:14:+ ATTSIZE=`LANG=C du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//` automysqlbackup-2.6+debian.4/debian/patches/fix-du-call-with-non-english-locales.patch-15- if [ $MAXATTSIZE -ge $ATTSIZE ] automysqlbackup-2.6+debian.4/debian/patches/fix-du-call-with-non-english-locales.patch-16- then automysqlbackup-2.6+debian.4/debian/patches/fix-du-call-with-non-english-locales.patch:17: BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-501- else automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:502: DBNAMES="`mysql --user=$USERNAME --password=$PASSWORD --host=$DBHOST --batch --skip-column-names -e "show databases"| sed 's/ /%/g'`" automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-503- fi ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-507- do automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:508: DBNAMES=`echo $DBNAMES | sed "s/\b$exclude\b//g"` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-509- done ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-530- # Prepare $DB for using automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:531: MDB="`echo $MDB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-532- ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-547- # Prepare $DB for using automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:548: DB="`echo $DB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-549- ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-565- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:566: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-567- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:568: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-569- else automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:570: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-571- fi ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-612- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:613: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-614- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:615: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-616- else automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:617: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-618- fi ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-642-echo Size - Location automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:643:echo `du -hs "$BACKUPDIR"` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-644-echo ############################################## automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-673- #Get backup size automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:674: ATTSIZE=`du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//` automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-675- if [ $MAXATTSIZE -ge $ATTSIZE ] automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-676- then automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup:677: BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments automysqlbackup-2.6+debian.4/.pc/direct-compression.patch/automysqlbackup-678- mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-529- else automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:530: DBNAMES="`mysql --user=$USERNAME --password=$PASSWORD --host=$DBHOST --batch --skip-column-names -e "show databases"| sed 's/ /%/g'`" automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-531- fi ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-535- do automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:536: DBNAMES=`echo $DBNAMES | sed "s/\b$exclude\b//g"` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-537- done ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-558- # Prepare $DB for using automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:559: MDB="`echo $MDB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-560- ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-574- # Prepare $DB for using automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:575: DB="`echo $DB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-576- ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-592- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:593: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-594- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:595: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-596- else automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:597: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-598- fi ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-636- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:637: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-638- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:639: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-640- else automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:641: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-642- fi ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-664-echo Size - Location automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:665:echo `du -hs "$BACKUPDIR"` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-666-echo ############################################## automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-695- #Get backup size automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:696: ATTSIZE=`du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//` automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-697- if [ $MAXATTSIZE -ge $ATTSIZE ] automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-698- then automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup:699: BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments automysqlbackup-2.6+debian.4/.pc/fix-du-call-with-non-english-locales.patch/automysqlbackup-700- mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-529- else automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:530: DBNAMES="`mysql --user=$USERNAME --password=$PASSWORD --host=$DBHOST --batch --skip-column-names -e "show databases"| sed 's/ /%/g'`" automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-531- fi ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-535- do automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:536: DBNAMES=`echo $DBNAMES | sed "s/\b$exclude\b//g"` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-537- done ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-558- # Prepare $DB for using automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:559: MDB="`echo $MDB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-560- ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-574- # Prepare $DB for using automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:575: DB="`echo $DB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-576- ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-592- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:593: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-594- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:595: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-596- else automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:597: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-598- fi ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-636- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:637: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-638- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:639: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-640- else automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:641: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-642- fi ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-664-echo Size - Location automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:665:echo `du -hs "$BACKUPDIR"` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-666-echo ############################################## automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-695- #Get backup size automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:696: ATTSIZE=`LANG=C du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//` automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-697- if [ $MAXATTSIZE -ge $ATTSIZE ] automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-698- then automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup:699: BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments automysqlbackup-2.6+debian.4/.pc/support-DOMONTHLY-and-OPTIONS-configurations.patch/automysqlbackup-700- mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-536- else automysqlbackup-2.6+debian.4/automysqlbackup:537: DBNAMES="`mysql --user=$USERNAME --password=$PASSWORD --host=$DBHOST --batch --skip-column-names -e "show databases"| sed 's/ /%/g'`" automysqlbackup-2.6+debian.4/automysqlbackup-538- fi ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-542- do automysqlbackup-2.6+debian.4/automysqlbackup:543: DBNAMES=`echo $DBNAMES | sed "s/\b$exclude\b//g"` automysqlbackup-2.6+debian.4/automysqlbackup-544- done ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-565- # Prepare $DB for using automysqlbackup-2.6+debian.4/automysqlbackup:566: MDB="`echo $MDB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/automysqlbackup-567- ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-581- # Prepare $DB for using automysqlbackup-2.6+debian.4/automysqlbackup:582: DB="`echo $DB | sed 's/%/ /g'`" automysqlbackup-2.6+debian.4/automysqlbackup-583- ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-599- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/automysqlbackup:600: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/automysqlbackup-601- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/automysqlbackup:602: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/automysqlbackup-603- else automysqlbackup-2.6+debian.4/automysqlbackup:604: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/automysqlbackup-605- fi ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-643- if [ "$W" -le 05 ];then automysqlbackup-2.6+debian.4/automysqlbackup:644: REMW=`expr 48 + $W` automysqlbackup-2.6+debian.4/automysqlbackup-645- elif [ "$W" -lt 15 ];then automysqlbackup-2.6+debian.4/automysqlbackup:646: REMW=0`expr $W - 5` automysqlbackup-2.6+debian.4/automysqlbackup-647- else automysqlbackup-2.6+debian.4/automysqlbackup:648: REMW=`expr $W - 5` automysqlbackup-2.6+debian.4/automysqlbackup-649- fi ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-671-echo Size - Location automysqlbackup-2.6+debian.4/automysqlbackup:672:echo `du -hs "$BACKUPDIR"` automysqlbackup-2.6+debian.4/automysqlbackup-673-echo ############################################## automysqlbackup-2.6+debian.4/automysqlbackup-702- #Get backup size automysqlbackup-2.6+debian.4/automysqlbackup:703: ATTSIZE=`LANG=C du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//` automysqlbackup-2.6+debian.4/automysqlbackup-704- if [ $MAXATTSIZE -ge $ATTSIZE ] automysqlbackup-2.6+debian.4/automysqlbackup-705- then automysqlbackup-2.6+debian.4/automysqlbackup:706: BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments automysqlbackup-2.6+debian.4/automysqlbackup-707- mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt