=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== openttd-opengfx-0.6.0/findversion.sh-53-# Find out some dirs openttd-opengfx-0.6.0/findversion.sh:54:cd `dirname "$0"` openttd-opengfx-0.6.0/findversion.sh-55-ROOT_DIR=`pwd` ############################################## openttd-opengfx-0.6.0/findversion.sh-67- HASH=`LC_ALL=C git rev-parse --verify HEAD 2>/dev/null` openttd-opengfx-0.6.0/findversion.sh:68: SHORTHASH=`echo ${HASH} | cut -c1-10` openttd-opengfx-0.6.0/findversion.sh:69: ISODATE=`LC_ALL=C git show -s --pretty='format:%ci' HEAD | "$AWK" '{ gsub("-", "", $1); print $1 }'` openttd-opengfx-0.6.0/findversion.sh-70- BRANCH="`git symbolic-ref -q HEAD 2>/dev/null | sed 's@.*/@@'`" openttd-opengfx-0.6.0/findversion.sh:71: TAG="`git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null | sed 's@\^0$@@'`" openttd-opengfx-0.6.0/findversion.sh-72- ############################################## openttd-opengfx-0.6.0/findversion.sh-83- ISTAG="1" openttd-opengfx-0.6.0/findversion.sh:84: if [ -n "`echo \"${TAG}\" | grep \"^[0-9.]*$\"`" ]; then openttd-opengfx-0.6.0/findversion.sh-85- ISSTABLETAG="1" ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-36- //drop table if exists openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:37: @mysql_query("DROP TABLE `".$cfg_db['table']."`;", $cfg_db['server_link']); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-38- openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-39- //create new table openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:40: mysql_query("CREATE TABLE `".$cfg_db['table']."` ( openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-41- `id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-61- //construct SQL statement openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:62: $sql = "INSERT INTO `".$cfg_db['table']."` openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-63- (`id`, `file`, `range_start`, `range_end`, `num_sprites`, `description`, `graphics`, `alignment`, `ticket`, `done`) ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-76- //insert in table openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:77: mysql_query($sql, $cfg_db['server_link']); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-78- } ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-105- echo '<a href="?feature='; openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:106: echo urlencode(htmlspecialchars($_GET['feature'])); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-107- echo '&q='; openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:108: echo urlencode(htmlspecialchars($_GET['q'])); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-109- echo '&orderby='; ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-214- //get resultset openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:215: $result = mysql_query("SELECT * FROM `".$cfg_db['table']."` WHERE `done`=0 ORDER BY `".$orderby."` ".$direction." , `range_start`, `id`;", $cfg_db['server_link']); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-216- ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-236- //get resultset openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:237: $result = mysql_query("SELECT * FROM `".$cfg_db['table']."` WHERE (`done`=0 AND ( openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-238- (`file`='ogfx1_base' AND (`range_end`<1947 OR (`range_start`>1946 AND `range_end`<1968) OR `range_start`>4625)) ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-240- OR (`file`='ogfxe_extra' AND `description` LIKE '%[Type 0C]%') openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:241: )) ORDER BY `".$orderby."` ".$direction." , `range_start`, `id`;", $cfg_db['server_link']); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-242- ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-257- ?><h1>Who worked on what</h1> openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:258: <p><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-259- <input type="hidden" name="feature" value="spritesbyauthor" /> ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-266- //get resultset openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:267: $result = mysql_query("SELECT * FROM `".$cfg_db['table']."` WHERE ( openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-268- `graphics` LIKE '%".mysql_real_escape_string($author)."%' openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-269- OR `alignment` LIKE '%".mysql_real_escape_string($author)."%' openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:270: ) ORDER BY `".$orderby."` ".$direction." , `range_start`, `id`;", $cfg_db['server_link']); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-271- ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-289- ?><h1>Generate overview by file</h1> openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:290: <p><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-291- <input type="hidden" name="feature" value="spritesbyfile" /> ############################################## openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-312- //get resultset openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:313: $result = mysql_query("SELECT * FROM `".$cfg_db['table']."` WHERE ( openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-314- `file` = '".mysql_real_escape_string($file)."' openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php:315: ) ORDER BY `".$orderby."` ".$direction." , `range_start`, `id`;", $cfg_db['server_link']); openttd-opengfx-0.6.0/extra/aoHTMLoutput/script.php-316- ############################################## openttd-opengfx-0.6.0/extra/ttd-box-editor/sprite-source/update-nightly-sprites-25- openttd-opengfx-0.6.0/extra/ttd-box-editor/sprite-source/update-nightly-sprites:26:REV=`wget -q -O - $BASEURL/REV` openttd-opengfx-0.6.0/extra/ttd-box-editor/sprite-source/update-nightly-sprites-27- ############################################## openttd-opengfx-0.6.0/scripts/make_changelog-70-CURRENT_REV=`hg id -n | cut -d+ -f1` openttd-opengfx-0.6.0/scripts/make_changelog:71:CURRENT_BRANCH_START_REV=`hg log -b $CURRENT_BRANCH --template='{rev}\n' | tail -n1` openttd-opengfx-0.6.0/scripts/make_changelog-72-TIP_REV=`hg id -rtip -n` ############################################## openttd-opengfx-0.6.0/scripts/make_changelog-84- -s|--showrev) SHOWREV="{rev}: " ; ((i++));; openttd-opengfx-0.6.0/scripts/make_changelog:85: -r|--revision) REVS=`echo "-r${optarr[$((i+1))]}" | sed "s/'//g"`;((i=i+2));; openttd-opengfx-0.6.0/scripts/make_changelog-86- --) ((i++)); break;; ############################################## openttd-opengfx-0.6.0/scripts/make_changelog-95- TAG=`hg tags | head -n2 | tail -n1 | cut -d\ -f1` openttd-opengfx-0.6.0/scripts/make_changelog:96: TAG_BRANCH=`hg id -b -r$TAG` openttd-opengfx-0.6.0/scripts/make_changelog-97- if [ $TAG_BRANCH != $CURRENT_BRANCH ]; then openttd-opengfx-0.6.0/scripts/make_changelog:98: START_REV=`hg log -b $CURRENT_BRANCH --template='{rev}\n' | tail -n1` openttd-opengfx-0.6.0/scripts/make_changelog-99- else ############################################## openttd-opengfx-0.6.0/scripts/make_changelog-117- if [ $TAG_BRANCH != "default" ]; then openttd-opengfx-0.6.0/scripts/make_changelog:118: START_REV=`hg log -b $TAG_BRANCH --template='{rev}\n' | tail -n1` openttd-opengfx-0.6.0/scripts/make_changelog-119- echo "Changelog from start of $TAG_BRANCH-branch (r$START_REV) to start of $CURRENT_BRANCH-branch (r$CURRENT_BRANCH_START_REV)" ############################################## openttd-opengfx-0.6.0/scripts/make_changelog-121- else openttd-opengfx-0.6.0/scripts/make_changelog:122: START_REV=`hg id -n -r$TAG` openttd-opengfx-0.6.0/scripts/make_changelog-123- echo "Changelog from $TAG (r$START_REV) to start of $CURRENT_BRANCH-branch (r$CURRENT_BRANCH_START_REV)" ############################################## openttd-opengfx-0.6.0/scripts/translations.sh-3-function get_langline() { openttd-opengfx-0.6.0/scripts/translations.sh:4: id=`cat $1 | grep 'grflangid' | cut -c13-16` openttd-opengfx-0.6.0/scripts/translations.sh:5: text=`cat $1 | grep 'STR_GENERAL_DESC' | cut -d: -f2-` openttd-opengfx-0.6.0/scripts/translations.sh-6- langcode="" ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-249- for j in $(GFX_SCRIPT_LIST_FILES); do\ openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:250: for i in `cat $$j | grep "\([pP][cCnN][xXgG]\)" | grep -v "^#" | cut -d\ -f1 | sed "s/\.\([pP][cCnN][xXgG]\)//"`; do\ openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-251- echo "$$i.scm: $$j" >> $@;\ ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-268- $(_E) "[CLEAN GFX]" openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:269: $(_V) for j in $(GFX_SCRIPT_LIST_FILES); do for i in `cat $$j | grep "\([pP][cCnN][xXgG]\)" | cut -d\ -f1 | sed "s/\.\([pP][cCnN][xXgG]\)//"`; do rm -rf $$i.scm; done; done openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-270- $(_V) rm -rf Makefile.gfx ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-273- $(_E) "[CLEAN-GFX]" openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:274: $(_V) for j in $(GFX_SCRIPT_LIST_FILES); do for i in `cat $$j | grep "\([pP][cCnN][xXgG]\)" | cut -d\ -f1 | sed "s/\.\([pP][cCnN][xXgG]\)//"`; do rm -rf $$i.png; done; done openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-275- ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-370- @echo "[files]" >> $@ openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:371: $(_V) $(_V)for i in $(BASE_FILENAME); do echo "`echo $$i | cut -d_ -f2` = $$i.grf" >> $@; done openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-372- ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-374- @echo "[md5s]" >> $@ openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:375: $(_V)for i in $(GRF_FILES); do printf "%-18s = %s\n" $$i `$(GRFID) $(GRFID_FLAGS) $$i` >> $@; done openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-376- ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-500- $(_V) -rm -f $@ openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:501: $(_V)for i in $(GRF_FILES); do printf "%-18s = %s\n" $$i `$(GRFID) $(GRFID_FLAGS) $$i` >> $@; done openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-502- ############################################## openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-508- $(_V) if [ -f $(MD5_SRC_FILENAME) ]; then echo "[CHECKING md5sums]"; else echo "Required file '$(MD5_SRC_FILENAME)' which to test against not found!"; false; fi openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile:509: $(_V) if [ -z "`diff $(MD5_FILENAME) $(MD5_SRC_FILENAME)`" ]; then echo "Checksums are equal"; else echo "Differences in checksums:"; echo "`diff $(MD5_FILENAME) $(MD5_SRC_FILENAME)`"; false; fi openttd-opengfx-0.6.0/.pc/fix-documentation-filenames.patch/Makefile-510- $(_V) rm $(MD5_FILENAME) ############################################## openttd-opengfx-0.6.0/Makefile-249- for j in $(GFX_SCRIPT_LIST_FILES); do\ openttd-opengfx-0.6.0/Makefile:250: for i in `cat $$j | grep "\([pP][cCnN][xXgG]\)" | grep -v "^#" | cut -d\ -f1 | sed "s/\.\([pP][cCnN][xXgG]\)//"`; do\ openttd-opengfx-0.6.0/Makefile-251- echo "$$i.scm: $$j" >> $@;\ ############################################## openttd-opengfx-0.6.0/Makefile-268- $(_E) "[CLEAN GFX]" openttd-opengfx-0.6.0/Makefile:269: $(_V) for j in $(GFX_SCRIPT_LIST_FILES); do for i in `cat $$j | grep "\([pP][cCnN][xXgG]\)" | cut -d\ -f1 | sed "s/\.\([pP][cCnN][xXgG]\)//"`; do rm -rf $$i.scm; done; done openttd-opengfx-0.6.0/Makefile-270- $(_V) rm -rf Makefile.gfx ############################################## openttd-opengfx-0.6.0/Makefile-273- $(_E) "[CLEAN-GFX]" openttd-opengfx-0.6.0/Makefile:274: $(_V) for j in $(GFX_SCRIPT_LIST_FILES); do for i in `cat $$j | grep "\([pP][cCnN][xXgG]\)" | cut -d\ -f1 | sed "s/\.\([pP][cCnN][xXgG]\)//"`; do rm -rf $$i.png; done; done openttd-opengfx-0.6.0/Makefile-275- ############################################## openttd-opengfx-0.6.0/Makefile-370- @echo "[files]" >> $@ openttd-opengfx-0.6.0/Makefile:371: $(_V) $(_V)for i in $(BASE_FILENAME); do echo "`echo $$i | cut -d_ -f2` = $$i.grf" >> $@; done openttd-opengfx-0.6.0/Makefile-372- ############################################## openttd-opengfx-0.6.0/Makefile-374- @echo "[md5s]" >> $@ openttd-opengfx-0.6.0/Makefile:375: $(_V)for i in $(GRF_FILES); do printf "%-18s = %s\n" $$i `$(GRFID) $(GRFID_FLAGS) $$i` >> $@; done openttd-opengfx-0.6.0/Makefile-376- ############################################## openttd-opengfx-0.6.0/Makefile-500- $(_V) -rm -f $@ openttd-opengfx-0.6.0/Makefile:501: $(_V)for i in $(GRF_FILES); do printf "%-18s = %s\n" $$i `$(GRFID) $(GRFID_FLAGS) $$i` >> $@; done openttd-opengfx-0.6.0/Makefile-502- ############################################## openttd-opengfx-0.6.0/Makefile-508- $(_V) if [ -f $(MD5_SRC_FILENAME) ]; then echo "[CHECKING md5sums]"; else echo "Required file '$(MD5_SRC_FILENAME)' which to test against not found!"; false; fi openttd-opengfx-0.6.0/Makefile:509: $(_V) if [ -z "`diff $(MD5_FILENAME) $(MD5_SRC_FILENAME)`" ]; then echo "Checksums are equal"; else echo "Differences in checksums:"; echo "`diff $(MD5_FILENAME) $(MD5_SRC_FILENAME)`"; false; fi openttd-opengfx-0.6.0/Makefile-510- $(_V) rm $(MD5_FILENAME)