misp-circl-feed/build.sh

9 lines
314 B
Bash

#!/bin/bash
cd ./feeds/circl/misp
wget -A .json -np -nH --cut-dirs=3 -m https://www.circl.lu/doc/misp/feed-osint/
rm manifest.json robots.txt.tmp
mkdir ./feeds/circl/stix-2.1/
cd ./feeds/circl/stix-2.1/
ls -1 ../misp/*-*.json | parallel "misp_stix_converter -v2.1 -e -f {}"
mmv -d "../misp/*.json.out" "#1.json"