mirror of https://github.com/MISP/misp-modules
Release 2.4.199 and remove py38 leftovers
parent
a204497cf6
commit
6e5f38769a
|
@ -14,7 +14,6 @@ as a cron job
|
|||
|
||||
import json
|
||||
import base64
|
||||
from distutils.util import strtobool
|
||||
|
||||
import io
|
||||
import zipfile
|
||||
|
@ -42,6 +41,21 @@ moduleconfig = ['apikey', 'url', 'shareable', 'do_not_reanalyze', 'do_not_includ
|
|||
include_vmrayjobids = False
|
||||
|
||||
|
||||
def strtobool(val):
|
||||
"""Convert a string representation of truth to true (1) or false (0).
|
||||
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
|
||||
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
|
||||
'val' is anything else.
|
||||
"""
|
||||
val = val.lower()
|
||||
if val in ('y', 'yes', 't', 'true', 'on', '1'):
|
||||
return 1
|
||||
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
|
||||
return 0
|
||||
else:
|
||||
raise ValueError("invalid truth value %r" % (val,))
|
||||
|
||||
|
||||
def handler(q=False):
|
||||
global include_vmrayjobids
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|||
|
||||
[tool.poetry]
|
||||
name = "misp-modules"
|
||||
version = "2.4.198"
|
||||
version = "2.4.199"
|
||||
description = "MISP modules are autonomous modules that can be used for expansion and other services in MISP"
|
||||
authors = ["Alexandre Dulaunoy <alexandre.dulaunoy@circl.lu>"]
|
||||
license = "AGPL-3.0-only"
|
||||
|
@ -30,7 +30,7 @@ misp-modules = "misp_modules:main"
|
|||
|
||||
[tool.poetry.dependencies]
|
||||
## platform (pin this to your python version, for 'poetry export' to work)
|
||||
python = ">=3.8.*,<3.13"
|
||||
python = ">=3.9.*,<3.13"
|
||||
## core dependencies
|
||||
psutil = "*"
|
||||
pyparsing = "*"
|
||||
|
@ -41,11 +41,9 @@ urllib3 = ">=1.26,<2"
|
|||
censys = "2.0.9"
|
||||
socialscan = "<2.0.0"
|
||||
yara-python = "4.5.0"
|
||||
# required to support both python 3.8 and wheel builds on python 3.12
|
||||
numpy = [{version = "1.24.4", python = "3.8.*"}, {version = ">=1.26.4,<2.0.0", python = ">=3.9"}]
|
||||
pandas = [{version = "1.5.3", python = "3.8.*"}, {version = ">=2.0.0", python = ">=3.9"}]
|
||||
pandas_ods_reader = [{version = "0.1.4", python = "3.8.*"}, {version = ">=1.0.0", python = ">=3.9"}]
|
||||
pandoc = "*"
|
||||
numpy = ">=1.26.4,<2.0.0"
|
||||
pandas = ">=2.0.0"
|
||||
pandas_ods_reader = ">=1.0.0"
|
||||
## module dependencies
|
||||
apiosintds = "*"
|
||||
assemblyline_client = "*"
|
||||
|
@ -68,6 +66,7 @@ np = "*"
|
|||
oauth2 = "*"
|
||||
opencv-python = "*"
|
||||
openpyxl = "*"
|
||||
pandoc = "*"
|
||||
passivetotal = "*"
|
||||
pdftotext = "*"
|
||||
pycountry = "*"
|
||||
|
@ -84,6 +83,7 @@ pysafebrowsing = "*"
|
|||
pytesseract = "*"
|
||||
python-docx = "*"
|
||||
python-pptx = "*"
|
||||
pyutil = "*"
|
||||
pyzbar = "*"
|
||||
requests = { version = "*", extras = ["security"] }
|
||||
shodan = "*"
|
||||
|
|
Loading…
Reference in New Issue