Mini Shell
Direktori : /proc/self/root/bin/ |
|
Current File : //proc/self/root/bin/i360-storage |
#!/usr/bin/bash
help(){
cat << EOF
Usage:
i360-storage mkbin
create .rules file from sources
i360-storage mkdump binfile dumpfile
create dump for mmap from the preivous step .rules file
i360-storage qtest dumpfile
dumpfile quicktest
i360-storage test dumpfile
dumpfile more thourough integrity test
i360-storage rwldump rules_whitelist_file
dump rules whitelist file (v3, v4) content as yaml
i360-storage mksbins rulesfile
create per script rules files
EOF
}
if [ -z "$1" ]; then
help
exit 0
fi
if [ -e /usr/share/i360-php-opts/oldrules ]; then
/usr/bin/i360-storage.immunity "$@"
exit $?
fi
case "$1" in
mkbin)
CURDIR=$(pwd)
/usr/bin/i360-storage.v2 "$CURDIR/.rules.v2" "$CURDIR"
exit $?
;;
mkdump) echo "Deprecated option" ;;
qtest) echo "Deprecated option" ;;
test) echo "Deprecated option" ;;
rwldump)
/usr/bin/i360-storage.immunity rwldump "$2"
exit $?
;;
mksbins)
/usr/bin/i360-storage.immunity mksbins "$2"
exit $?
;;
*)
help
;;
esac
exit 0
Zerion Mini Shell 1.0