Skip to content

Commit

Permalink
Create ApachefeedMISP_script3.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
crocodyli authored Jul 28, 2024
1 parent 85cfcf6 commit 2a2696c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 2024/MISP/ApachefeedMISP_script3.sh
Original file line number Diff line number Diff line change
@@ -0,0 1,16 @@
#!/bin/bash
misp_md5="https://URL_MISP/attributes/restSearch/returnFormat:text/publish_timestamp:15d/to_ids:1||0/tags:CSIRT/type:md5"
misp_sha256="https://URL_MISP/attributes/restSearch/returnFormat:text/publish_timestamp:15d/to_ids:1||0/tags:CSIRT/type:sha256"
misp_sha1="https://URL_MISP/attributes/restSearch/returnFormat:text/publish_timestamp:15d/to_ids:1||0/tags:CSIRT/type:sha1"
misp_key="APYKEY"
#
curl -s -k -H "Authorization: $misp_key" -X GET "$misp_md5" -o /var/www/html/feed/blocklist_md5.txt
curl -s -k -H "Authorization: $misp_key" -X GET "$misp_sha1" -o /var/www/html/feed/blocklist_sha1.txt
curl -s -k -H "Authorization: $misp_key" -X GET "$misp_sha256" -o /var/www/html/feed/blocklist_sha256.txt

#sudo chmod 777 /var/www/html/feed
#sudo chmod 777 <script>
#sudo nano /etc/apache2/port.conf
#alterar para a porta desejada, exemplo 155, 8080;
#service apache2 restart
#execute o script

0 comments on commit 2a2696c

Please sign in to comment.