mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-30 08:28:18 +02:00
Add new spamhaus analyzer
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "Urlhaus",
|
||||
"version": "0.1",
|
||||
"author": "Wes",
|
||||
"description": "This analyzer queries URLHaus to see if a URL is consdered malicious.",
|
||||
"description": "This analyzer queries URLHaus to see if a URL is considered malicious.",
|
||||
"supportedTypes" : ["url"],
|
||||
"baseUrl": "https://urlhaus-api.abuse.ch/v1/url/"
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ class TestUrlhausMethods(unittest.TestCase):
|
||||
|
||||
def test_main_missing_input(self):
|
||||
with patch('sys.stdout', new=StringIO()) as mock_stdout:
|
||||
sys.argv = ["cmd"]
|
||||
urlhaus.main()
|
||||
self.assertEqual(mock_stdout.getvalue(), "ERROR: Missing input JSON\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user