Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/phpMyAdmin/scripts/ drwxr-xr-x |
Viewing file: find_unused_messages.sh (1.06 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/bin/sh # Simple script to find unused message strings by Michal Čihař tmp1=`mktemp` tmp2=`mktemp` grep -o '\<str[A-Z][a-zA-Z0-9_]*\>' lang/english-iso-8859-1.inc.php \ | grep -Ev '^str(Transformation_|ShowStatus)' | sort -u > $tmp1 grep -ho '\<str[A-Z][a-zA-Z0-9_]*\>' `find . -type f -a -name '*.php' -a -not -path '*/lang/*'` \ | grep -Ev '^str(Transformation_|ShowStatus)' | sort -u > $tmp2 echo Please note that you need to check results of this script, it doesn\'t echo understand PHP, it only tries to find what looks like message name. echo echo Used messages not present in english language file: echo '(this contains generated messages and composed message names, so these' echo 'are not necessary a errors!)' echo # filter out known false positives diff $tmp1 $tmp2 | awk '/^>/ {print $2}' | grep -Ev '(strEncto|strXkana|strDBLink|strPrivDesc|strPrivDescProcess|strTableListOptions|strMissingParameter|strAttribute|strDoSelectAll)' echo echo Not used messages present in english language file: echo diff $tmp1 $tmp2 | awk '/^</ {print $2}' rm -f $tmp1 $tmp2 |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0101 ]-- |