chg: Bump deps

pull/612/head
Raphaël Vinot 2023-02-16 16:11:03 +01:00
parent 1558f65c8e
commit 6e4bf72184
4 changed files with 62 additions and 62 deletions

90
poetry.lock generated
View File

@ -687,14 +687,14 @@ files = [
[[package]]
name = "flask"
version = "2.2.2"
version = "2.2.3"
description = "A simple framework for building complex web applications."
category = "main"
optional = false
python-versions = ">=3.7"
files = [
{file = "Flask-2.2.2-py3-none-any.whl", hash = "sha256:b9c46cc36662a7949f34b52d8ec7bb59c0d74ba08ba6cb9ce9adc1d8676d9526"},
{file = "Flask-2.2.2.tar.gz", hash = "sha256:642c450d19c4ad482f96729bd2a8f6d32554aa1e231f4f6b4e7e5264b16cca2b"},
{file = "Flask-2.2.3-py3-none-any.whl", hash = "sha256:c0bec9477df1cb867e5a67c9e1ab758de9cb4a3e52dd70681f59fa40a62b3f2d"},
{file = "Flask-2.2.3.tar.gz", hash = "sha256:7eb373984bf1c770023fce9db164ed0c3353cd0b53f130f4693da0ca756a2e6d"},
]
[package.dependencies]
@ -1246,20 +1246,20 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-
[[package]]
name = "lacuscore"
version = "1.2.5"
version = "1.2.6"
description = "Core of Lacus, usable as a module"
category = "main"
optional = false
python-versions = ">=3.8,<4.0"
files = [
{file = "lacuscore-1.2.5-py3-none-any.whl", hash = "sha256:f9a6596a4ef82c54e6607cda66dbb214fe599a897a30265ab5559de657ec01bf"},
{file = "lacuscore-1.2.5.tar.gz", hash = "sha256:e2285d8b3e543a195e6d1dbb5cb8b2eef8ac34a924657beb8b6542c16f667d7f"},
{file = "lacuscore-1.2.6-py3-none-any.whl", hash = "sha256:56100f673e652db60f350f6e0eae007446fc227f422f61484b5a9e5937d670e7"},
{file = "lacuscore-1.2.6.tar.gz", hash = "sha256:2dad31566b941ed3a4d866c2f3acd56ac14b6ed2495765ce655a73c89df36067"},
]
[package.dependencies]
defang = ">=0.5.3,<0.6.0"
playwrightcapture = {version = ">=1.17.4,<2.0.0", extras = ["recaptcha"]}
redis = {version = ">=4.4.2,<5.0.0", extras = ["hiredis"]}
playwrightcapture = {version = ">=1.17.5,<2.0.0", extras = ["recaptcha"]}
redis = {version = ">=4.5.1,<5.0.0", extras = ["hiredis"]}
requests = ">=2.28.2,<3.0.0"
ua-parser = ">=0.16.1,<0.17.0"
@ -1922,19 +1922,19 @@ typing-extensions = {version = "*", markers = "python_version <= \"3.8\""}
[[package]]
name = "playwrightcapture"
version = "1.17.4"
version = "1.17.5"
description = "A simple library to capture websites using playwright"
category = "main"
optional = false
python-versions = ">=3.8,<4.0"
files = [
{file = "playwrightcapture-1.17.4-py3-none-any.whl", hash = "sha256:082a3e9d8827092aa297f0878a8b5eaf2169fe7330d373edcc3305534e8ad6fb"},
{file = "playwrightcapture-1.17.4.tar.gz", hash = "sha256:d4ab9ff4604caed92b53909dd9fecdf934b67a675c400e1cb10786ee0d0ca048"},
{file = "playwrightcapture-1.17.5-py3-none-any.whl", hash = "sha256:ac0ef81a25b4444e2bb70581345b6a7b72bdaa9680730161c768a6c48cae30d3"},
{file = "playwrightcapture-1.17.5.tar.gz", hash = "sha256:e5acd6bfa463d68d23a9fdb670b3e11f1cbd49e84cc4b876900b441f79f72786"},
]
[package.dependencies]
beautifulsoup4 = ">=4.11.1,<5.0.0"
dateparser = ">=1.1.6,<2.0.0"
beautifulsoup4 = ">=4.11.2,<5.0.0"
dateparser = ">=1.1.7,<2.0.0"
lxml = ">=4.9.2,<5.0.0"
playwright = ">=1.30.0,<2.0.0"
pydub = {version = ">=0.25.1,<0.26.0", optional = true, markers = "extra == \"recaptcha\""}
@ -2568,14 +2568,14 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"]
[[package]]
name = "setuptools"
version = "67.3.1"
version = "67.3.2"
description = "Easily download, build, install, upgrade, and uninstall Python packages"
category = "main"
optional = false
python-versions = ">=3.7"
files = [
{file = "setuptools-67.3.1-py3-none-any.whl", hash = "sha256:23c86b4e44432bfd8899384afc08872ec166a24f48a3f99f293b0a557e6a6b5d"},
{file = "setuptools-67.3.1.tar.gz", hash = "sha256:daec07fd848d80676694d6bf69c009d28910aeece68a38dbe88b7e1bb6dba12e"},
{file = "setuptools-67.3.2-py3-none-any.whl", hash = "sha256:bb6d8e508de562768f2027902929f8523932fcd1fb784e6d573d2cafac995a48"},
{file = "setuptools-67.3.2.tar.gz", hash = "sha256:95f00380ef2ffa41d9bba85d95b27689d923c93dfbafed4aecd7cf988a25e012"},
]
[package.extras]
@ -2597,14 +2597,14 @@ files = [
[[package]]
name = "soupsieve"
version = "2.3.2.post1"
version = "2.4"
description = "A modern CSS selector implementation for Beautiful Soup."
category = "main"
optional = false
python-versions = ">=3.6"
python-versions = ">=3.7"
files = [
{file = "soupsieve-2.3.2.post1-py3-none-any.whl", hash = "sha256:3b2503d3c7084a42b1ebd08116e5f81aadfaea95863628c80a3b774a11b7c759"},
{file = "soupsieve-2.3.2.post1.tar.gz", hash = "sha256:fc53893b3da2c33de295667a0e19f078c14bf86544af307354de5fcf12a3f30d"},
{file = "soupsieve-2.4-py3-none-any.whl", hash = "sha256:49e5368c2cda80ee7e84da9dbe3e110b70a4575f196efb74e51b94549d921955"},
{file = "soupsieve-2.4.tar.gz", hash = "sha256:e28dba9ca6c7c00173e34e4ba57448f0688bb681b7c5e8bf4971daafc093d69a"},
]
[[package]]
@ -2690,14 +2690,14 @@ test = ["argcomplete (>=2.0)", "pre-commit", "pytest", "pytest-mock"]
[[package]]
name = "types-beautifulsoup4"
version = "4.11.6.5"
version = "4.11.6.6"
description = "Typing stubs for beautifulsoup4"
category = "dev"
optional = false
python-versions = "*"
files = [
{file = "types-beautifulsoup4-4.11.6.5.tar.gz", hash = "sha256:20917aa320d54e82e426dfb28b5c09bac2f5794c06728bc8aa5d8a6eb8f475dd"},
{file = "types_beautifulsoup4-4.11.6.5-py3-none-any.whl", hash = "sha256:c8f540eed6d27afc4b344a124fa6c31b153366a1863b43f64915c23040c3ab0a"},
{file = "types-beautifulsoup4-4.11.6.6.tar.gz", hash = "sha256:3eae9907ee46794a4e310f4dae63e5b4229e575d8c2e34955a57d1c0a774345a"},
{file = "types_beautifulsoup4-4.11.6.6-py3-none-any.whl", hash = "sha256:470b924035652f1a92b3c143f6cad2fc3b3eaf7dab89d04eb4833025110c0894"},
]
[package.dependencies]
@ -2729,14 +2729,14 @@ files = [
[[package]]
name = "types-pillow"
version = "9.4.0.10"
version = "9.4.0.12"
description = "Typing stubs for Pillow"
category = "dev"
optional = false
python-versions = "*"
files = [
{file = "types-Pillow-9.4.0.10.tar.gz", hash = "sha256:341c2345610bba452d1724757c7b997a60f593cf003c101ba239db003a0ae389"},
{file = "types_Pillow-9.4.0.10-py3-none-any.whl", hash = "sha256:302ce81cfb61aacc8983a3a2ec682cbef66522a2fe8e640f648ac2e3d6f6af53"},
{file = "types-Pillow-9.4.0.12.tar.gz", hash = "sha256:e0074149d5f06d3593c118acc83e353f8542bcc73576ffefb6568eaab5671348"},
{file = "types_Pillow-9.4.0.12-py3-none-any.whl", hash = "sha256:b4aaa86b43f53e4d552d2c0381068015121e8990b0369df7c5e3b36fa6266984"},
]
[[package]]
@ -2768,26 +2768,26 @@ cryptography = ">=35.0.0"
[[package]]
name = "types-python-dateutil"
version = "2.8.19.6"
version = "2.8.19.7"
description = "Typing stubs for python-dateutil"
category = "dev"
optional = false
python-versions = "*"
files = [
{file = "types-python-dateutil-2.8.19.6.tar.gz", hash = "sha256:4a6f4cc19ce4ba1a08670871e297bf3802f55d4f129e6aa2443f540b6cf803d2"},
{file = "types_python_dateutil-2.8.19.6-py3-none-any.whl", hash = "sha256:cfb7d31021c6bce6f3362c69af6e3abb48fe3e08854f02487e844ff910deec2a"},
{file = "types-python-dateutil-2.8.19.7.tar.gz", hash = "sha256:7af5a5d1b80ab1dfa0ba4d879facb382e836a62c2d408c2a509be4680fd8b1c8"},
{file = "types_python_dateutil-2.8.19.7-py3-none-any.whl", hash = "sha256:669751e1e6d4f3dbbff471231740e7ecdae2135b604383e477fe31fd56223967"},
]
[[package]]
name = "types-redis"
version = "4.5.1.0"
version = "4.5.1.1"
description = "Typing stubs for redis"
category = "dev"
optional = false
python-versions = "*"
files = [
{file = "types-redis-4.5.1.0.tar.gz", hash = "sha256:6f6fb1cfeee3708112dec3609a042774f96f2cfcb4709d267c11f51a6976da0a"},
{file = "types_redis-4.5.1.0-py3-none-any.whl", hash = "sha256:dac6ea398c57a53213b70727be7c8e3a788ded3c3880e94bf74e85c22aa63c7e"},
{file = "types-redis-4.5.1.1.tar.gz", hash = "sha256:c072e4824855f46d0a968509c3e0fa4789fc13b62d472064527bad3d1815aeed"},
{file = "types_redis-4.5.1.1-py3-none-any.whl", hash = "sha256:081dfeec730df6e3f32ccbdafe3198873b7c02516c22d79cc2a40efdd69a3963"},
]
[package.dependencies]
@ -2796,14 +2796,14 @@ types-pyOpenSSL = "*"
[[package]]
name = "types-requests"
version = "2.28.11.12"
version = "2.28.11.13"
description = "Typing stubs for requests"
category = "dev"
optional = false
python-versions = "*"
files = [
{file = "types-requests-2.28.11.12.tar.gz", hash = "sha256:fd530aab3fc4f05ee36406af168f0836e6f00f1ee51a0b96b7311f82cb675230"},
{file = "types_requests-2.28.11.12-py3-none-any.whl", hash = "sha256:dbc2933635860e553ffc59f5e264264981358baffe6342b925e3eb8261f866ee"},
{file = "types-requests-2.28.11.13.tar.gz", hash = "sha256:3fd332842e8759ea5f7eb7789df8aa772ba155216ccf10ef4aa3b0e5b42e1b46"},
{file = "types_requests-2.28.11.13-py3-none-any.whl", hash = "sha256:94896f6f8e9f3db11e422c6e3e4abbc5d7ccace853eac74b23bdd65eeee3cdee"},
]
[package.dependencies]
@ -2811,26 +2811,26 @@ types-urllib3 = "<1.27"
[[package]]
name = "types-urllib3"
version = "1.26.25.5"
version = "1.26.25.6"
description = "Typing stubs for urllib3"
category = "dev"
optional = false
python-versions = "*"
files = [
{file = "types-urllib3-1.26.25.5.tar.gz", hash = "sha256:5630e578246d170d91ebe3901788cd28d53c4e044dc2e2488e3b0d55fb6895d8"},
{file = "types_urllib3-1.26.25.5-py3-none-any.whl", hash = "sha256:e8f25c8bb85cde658c72ee931e56e7abd28803c26032441eea9ff4a4df2b0c31"},
{file = "types-urllib3-1.26.25.6.tar.gz", hash = "sha256:35586727cbd7751acccf2c0f34a88baffc092f435ab62458f10776466590f2d5"},
{file = "types_urllib3-1.26.25.6-py3-none-any.whl", hash = "sha256:a6c23c41bd03e542eaee5423a018f833077b51c4bf9ceb5aa544e12b812d5604"},
]
[[package]]
name = "typing-extensions"
version = "4.4.0"
version = "4.5.0"
description = "Backported and Experimental Type Hints for Python 3.7+"
category = "main"
optional = false
python-versions = ">=3.7"
files = [
{file = "typing_extensions-4.4.0-py3-none-any.whl", hash = "sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e"},
{file = "typing_extensions-4.4.0.tar.gz", hash = "sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa"},
{file = "typing_extensions-4.5.0-py3-none-any.whl", hash = "sha256:fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4"},
{file = "typing_extensions-4.5.0.tar.gz", hash = "sha256:5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb"},
]
[[package]]
@ -2939,14 +2939,14 @@ files = [
[[package]]
name = "werkzeug"
version = "2.2.2"
version = "2.2.3"
description = "The comprehensive WSGI web application library."
category = "main"
optional = false
python-versions = ">=3.7"
files = [
{file = "Werkzeug-2.2.2-py3-none-any.whl", hash = "sha256:f979ab81f58d7318e064e99c4506445d60135ac5cd2e177a2de0089bfd4c9bd5"},
{file = "Werkzeug-2.2.2.tar.gz", hash = "sha256:7ea2d48322cc7c0f8b3a215ed73eabd7b5d75d0b50e31ab006286ccff9e00b8f"},
{file = "Werkzeug-2.2.3-py3-none-any.whl", hash = "sha256:56433961bc1f12533306c624f3be5e744389ac61d722175d543e1751285da612"},
{file = "Werkzeug-2.2.3.tar.gz", hash = "sha256:2e1ccc9417d4da358b9de6f174e3ac094391ea1d4fbef2d667865d819dfd0afe"},
]
[package.dependencies]
@ -3154,4 +3154,4 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools"
[metadata]
lock-version = "2.0"
python-versions = ">=3.8,<3.12"
content-hash = "ca355203c844da25e61b9a5e211482af3c58b025403b9a3983bbadc56ebed75b"
content-hash = "285b2397c5290dc131f2725f25697db4d3d963988f53eb49cac57c2aff1470d4"

View File

@ -37,7 +37,7 @@ start_website = "bin.start_website:main"
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
requests = "^2.28.2"
flask = "^2.2.2"
flask = "^2.2.3"
gunicorn = "^20.1.0"
charset-normalizer = "^3.0.1"
redis = {version = "^4.5.1", extras = ["hiredis"]}
@ -62,10 +62,10 @@ ua-parser = "^0.16.1"
Flask-Login = "^0.6.2"
har2tree = "^1.17.2"
passivetotal = "^2.5.9"
werkzeug = "^2.2.2"
werkzeug = "^2.2.3"
filetype = "^1.2.0"
pypandora = "^1.3.0"
lacuscore = "^1.2.5"
lacuscore = "^1.2.6"
pylacus = "^1.2.0"
pyipasnhistory = "^2.1.2"
publicsuffixlist = "^0.9.3"
@ -76,13 +76,13 @@ pysecuritytxt = "^1.0.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.0.0"
ipython = "^8.10.0"
types-redis = "^4.5.1.0"
types-requests = "^2.28.11.12"
types-redis = "^4.5.1.1"
types-requests = "^2.28.11.13"
types-pkg-resources = "^0.1.3"
types-Deprecated = "^1.2.9"
types-python-dateutil = "^2.8.19.6"
types-beautifulsoup4 = "^4.11.6.5"
types-Pillow = "^9.4.0.10"
types-python-dateutil = "^2.8.19.7"
types-beautifulsoup4 = "^4.11.6.6"
types-Pillow = "^9.4.0.12"
[build-system]
requires = ["poetry_core>=1.1"]

View File

@ -710,7 +710,7 @@ def tree(tree_uuid: str, node_uuid: Optional[str]=None):
@flask_login.login_required
def mark_as_legitimate(tree_uuid: str):
if request.data:
legitimate_entries: Dict = request.get_json(force=True) # type: ignore
legitimate_entries: Dict = request.get_json(force=True)
lookyloo.add_to_legitimate(tree_uuid, **legitimate_entries)
else:
lookyloo.add_to_legitimate(tree_uuid)

View File

@ -53,7 +53,7 @@ class AuthToken(Resource):
@api.doc(body=token_request_fields)
def post(self):
auth: Dict = request.get_json(force=True) # type: ignore
auth: Dict = request.get_json(force=True)
if 'username' in auth and 'password' in auth: # Expected keys in json
if (auth['username'] in self.users_table
and check_password_hash(self.users_table[auth['username']]['password'], auth['password'])):
@ -221,7 +221,7 @@ class MISPPush(Resource):
@api.doc(body=misp_push_fields)
def post(self, capture_uuid: str):
parameters: Dict = request.get_json(force=True) # type: ignore
parameters: Dict = request.get_json(force=True)
with_parents = True if parameters.get('with_parents') else False
allow_duplicates = True if parameters.get('allow_duplicates') else False
@ -259,7 +259,7 @@ trigger_modules_fields = api.model('TriggerModulesFields', {
class TriggerModules(Resource):
@api.doc(body=trigger_modules_fields)
def post(self, capture_uuid: str):
parameters: Dict = request.get_json(force=True) # type: ignore
parameters: Dict = request.get_json(force=True)
force = True if parameters.get('force') else False
return lookyloo.trigger_modules(capture_uuid, force=force)
@ -290,7 +290,7 @@ class URLInfo(Resource):
@api.doc(body=url_info_fields)
def post(self):
to_query: Dict = request.get_json(force=True) # type: ignore
to_query: Dict = request.get_json(force=True)
occurrences = lookyloo.get_url_occurrences(to_query.pop('url'), **to_query)
return occurrences
@ -308,7 +308,7 @@ class HostnameInfo(Resource):
@api.doc(body=hostname_info_fields)
def post(self):
to_query: Dict = request.get_json(force=True) # type: ignore
to_query: Dict = request.get_json(force=True)
occurrences = lookyloo.get_hostname_occurrences(to_query.pop('hostname'), **to_query)
return occurrences
@ -414,7 +414,7 @@ class SubmitCapture(Resource):
user = flask_login.current_user.get_id()
else:
user = src_request_ip(request)
to_query: Dict = request.get_json(force=True) # type: ignore
to_query: Dict = request.get_json(force=True)
perma_uuid = lookyloo.enqueue_capture(to_query, source='api', user=user, authenticated=flask_login.current_user.is_authenticated)
return perma_uuid
@ -454,7 +454,7 @@ compare_captures_fields = api.model('CompareCapturesFields', {
class CompareCaptures(Resource):
@api.doc(body=compare_captures_fields)
def post(self):
parameters: Dict = request.get_json(force=True) # type: ignore
parameters: Dict = request.get_json(force=True)
result = comparator.compare_captures(parameters.get('capture_left'), parameters.get('capture_right'))
return result
@ -471,7 +471,7 @@ takedown_fields = api.model('TakedownFields', {
class Takedown(Resource):
@api.doc(body=takedown_fields)
def post(self):
parameters: Dict = request.get_json(force=True) # type: ignore
parameters: Dict = request.get_json(force=True)
capture_uuid = parameters.get('capture_uuid')
if not capture_uuid:
return {'error': f'Invalid UUID: {capture_uuid}'}