Skip to content

Commit

Permalink
AbuseIPDB Integration File
Browse files Browse the repository at this point in the history
AbuseIPDB Integration File
  • Loading branch information
alicangnll authored Dec 7, 2022
1 parent 38747cb commit f252d7c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions AbuseIPDB/custom-abuseipdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh
# SOCFortress
# https://www.socfortress.co
# [email protected]
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
WPYTHON_BIN="framework/python/bin/python3"
SCRIPT_PATH_NAME="$0"
DIR_NAME="$(cd $(dirname ${SCRIPT_PATH_NAME}); pwd -P)"
SCRIPT_NAME="$(basename ${SCRIPT_PATH_NAME})"
case ${DIR_NAME} in
*/active-response/bin | */wodles*)
if [ -z "${WAZUH_PATH}" ]; then
WAZUH_PATH="$(cd ${DIR_NAME}/../..; pwd)"
fi
PYTHON_SCRIPT="${DIR_NAME}/${SCRIPT_NAME}.py"
;;
*/bin)
if [ -z "${WAZUH_PATH}" ]; then
WAZUH_PATH="$(cd ${DIR_NAME}/..; pwd)"
fi
PYTHON_SCRIPT="${WAZUH_PATH}/framework/scripts/${SCRIPT_NAME}.py"
;;
*/integrations)
if [ -z "${WAZUH_PATH}" ]; then
WAZUH_PATH="$(cd ${DIR_NAME}/..; pwd)"
fi
PYTHON_SCRIPT="${DIR_NAME}/${SCRIPT_NAME}.py"
;;
esac
${WAZUH_PATH}/${WPYTHON_BIN} ${PYTHON_SCRIPT} "$@"

0 comments on commit f252d7c

Please sign in to comment.