=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== usbmount-0.0.22/usbmount-143- if [ -r "/sys$DEVPATH/device/vendor" ]; then usbmount-0.0.22/usbmount:144: vendor="`cat \"/sys$DEVPATH/device/vendor\"`" usbmount-0.0.22/usbmount-145- elif [ -r "/sys$DEVPATH/../device/vendor" ]; then usbmount-0.0.22/usbmount:146: vendor="`cat \"/sys$DEVPATH/../device/vendor\"`" usbmount-0.0.22/usbmount-147- elif [ -r "/sys$DEVPATH/device/../manufacturer" ]; then usbmount-0.0.22/usbmount:148: vendor="`cat \"/sys$DEVPATH/device/../manufacturer\"`" usbmount-0.0.22/usbmount-149- elif [ -r "/sys$DEVPATH/../device/../manufacturer" ]; then usbmount-0.0.22/usbmount:150: vendor="`cat \"/sys$DEVPATH/../device/../manufacturer\"`" usbmount-0.0.22/usbmount-151- fi ############################################## usbmount-0.0.22/usbmount-155- if [ -r "/sys$DEVPATH/device/model" ]; then usbmount-0.0.22/usbmount:156: model="`cat \"/sys$DEVPATH/device/model\"`" usbmount-0.0.22/usbmount-157- elif [ -r "/sys$DEVPATH/../device/model" ]; then usbmount-0.0.22/usbmount:158: model="`cat \"/sys$DEVPATH/../device/model\"`" usbmount-0.0.22/usbmount-159- elif [ -r "/sys$DEVPATH/device/../product" ]; then usbmount-0.0.22/usbmount:160: model="`cat \"/sys$DEVPATH/device/../product\"`" usbmount-0.0.22/usbmount-161- elif [ -r "/sys$DEVPATH/../device/../product" ]; then usbmount-0.0.22/usbmount:162: model="`cat \"/sys$DEVPATH/../device/../product\"`" usbmount-0.0.22/usbmount-163- fi ############################################## usbmount-0.0.22/00_remove_model_symlink-16-ls /var/run/usbmount | while read name; do usbmount-0.0.22/00_remove_model_symlink:17: if test "`readlink \"/var/run/usbmount/$name\" || :`" = "$UM_MOUNTPOINT"; then usbmount-0.0.22/00_remove_model_symlink-18- rm -f "/var/run/usbmount/$name" ############################################## usbmount-0.0.22/00_create_model_symlink-17-# and model name. usbmount-0.0.22/00_create_model_symlink:18:UM_VENDOR=`echo "$UM_VENDOR" | sed 's/ /_/g; s/[^0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-]//g'` usbmount-0.0.22/00_create_model_symlink:19:UM_MODEL=`echo "$UM_MODEL" | sed 's/ /_/g; s/[^0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-]//g'` usbmount-0.0.22/00_create_model_symlink-20- ############################################## usbmount-0.0.22/00_create_model_symlink-31-# Append partition number, if any, to the symlink name. usbmount-0.0.22/00_create_model_symlink:32:partition=`echo "$UM_DEVICE" | sed 's/^.*[^0123456789]\([0123456789]*\)/\1/'` usbmount-0.0.22/00_create_model_symlink-33-if test -n "$partition"; then