Create update_ip_rep.sh

This commit is contained in:
joker2013 2022-04-01 09:23:30 +03:00 committed by GitHub
parent e7fdc168d6
commit b840e42c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
update_ip_rep.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
rm -Rf /etc/suricata/iprep/*
python3 /opt/OTX-Suricata-master/otx-suricata/suricata.py --key 3f59b21830614df4e88ef727cc576a89a5bd58d831a01856ff34a9f65035b51c --skip-filemd5 --destination-directory /etc/suricata/iprep/
curl -Lo /tmp/talos_ip "http://www.talosintelligence.com/documents/ip-blacklist"
sed "s/$/,41,127/" /tmp/talos_ip >> /etc/suricata/iprep/reputation.list
systemctl restart suricata