This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import feedparser | |
import pprint | |
SHA256 = '[a-f0-9]{64}' | |
URL = 'https?://[^\s]+' | |
IP = '\d+\.\d+\.\d+\.\d+' | |
NAME = '\<h4 id="([^\"]+)"\>' | |
SECTION = '\<h4 id="[^\"]+"\>[\s\S]*?\<\/pre\>\<\/div\>\<\/div\>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zmq | |
# ZeroMQ Context | |
context = zmq.Context() | |
# Define the socket using the "Context" | |
sock = context.socket(zmq.SUB) | |
# Define subscription and messages with prefix to accept. | |
sock.setsockopt(zmq.SUBSCRIBE, "misp_json") |