Removed and refactored the database to import data directly from Arsenal.

This commit is contained in:
ben
2025-07-17 19:59:15 +02:00
parent 9624fd0e29
commit d7d31b719f
6 changed files with 77 additions and 3993 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
for c in python git; do
if ! command -v ${c} &>/dev/null; then
echo "$command ${c} could not be found"
exit 1
fi
done
cd /tmp
git clone --depth 1 https://github.com/Orange-Cyberdefense/arsenal
echo -e "title: Commands for Fast Memo Shell from Arsenal\ncommands:" >"${SCRIPTPATH}/commands.yaml"
find arsenal/arsenal/data/cheats/ -iname '*.md' ! -name 'README.md' -exec ${SCRIPTPATH}/arsenal_parser.py {} \; >>"${SCRIPTPATH}/commands.yaml"
rm -rf /tmp/arsenal