Commit graph

87 commits

Author SHA1 Message Date
terrtia
7e27089255
chg: [user] force lowercase + add v6.0.1 update
Some checks are pending
CI / ail_test (3.10) (push) Waiting to run
CI / ail_test (3.7) (push) Waiting to run
CI / ail_test (3.8) (push) Waiting to run
CI / ail_test (3.9) (push) Waiting to run
2025-01-14 16:21:01 +01:00
Fafner [_KeyZee_]
75b2d97504
Update Tracker.py
If self._get_field('level') is None, trying to convert it into int will crash the system :)

2024-12-23 14:22:46,232 Flask_server ERROR:Exception on /trackers [GET]
Traceback (most recent call last):
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 1511, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 919, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask_login/utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/var/www/Role_Manager.py", line 81, in decorated_view
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/var/www/blueprints/hunters.py", line 74, in trackers_dashboard
    trackers = Tracker.get_trackers_dashboard(user_org, user_id)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/bin/lib/Tracker.py", line 785, in get_trackers_dashboard
    if not tracker.check_level(user_org, user_id):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/bin/lib/Tracker.py", line 220, in check_level
    level = self.get_level()
            ^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/bin/lib/Tracker.py", line 183, in get_level
    level = int(self._get_field('level'))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2024-12-23 14:29:20 +01:00
terrtia
e0ae20968d
fix: [retro hunts] remove objects 2024-11-25 15:15:10 +01:00
terrtia
a595bb5175
fix: [trackers] typo 2024-09-12 09:28:32 +02:00
terrtia
d8724fa96e
chg: [trackers] check acl of last trackers matches 2024-09-11 17:27:05 +02:00
terrtia
478f8f47d1
chg: [trackers + retro_hunts] show organisation 2024-09-06 13:46:04 +02:00
terrtia
a05e1feed6
chg: [acl] refactor acl cookiejars, trackers, retro_hunts, investigation + refactor users roles 2024-09-05 14:41:13 +02:00
terrtia
cb45e06ebc
chg: [module extractor] check tracker and retro hunt acl 2024-09-03 16:27:02 +02:00
terrtia
5c903f9f88
chg: [trackers + retro_hunts] add org level to retro_hunt + update acl to support org + refactor trackers org 2024-08-28 16:47:44 +02:00
terrtia
69471e0d37
chg: [core] add users organisation + tracker acl by organisation 2024-08-26 15:56:46 +02:00
terrtia
e752f59a0a
chg: [ail users] remove old User lib + improve API test 2024-08-13 14:10:17 +02:00
terrtia
d4df580b92
Merge branch 'master' into otp 2024-08-13 11:43:52 +02:00
terrtia
33062b8bdb
fix: [tracker] firce delete objects filter on edit
Some checks failed
CI / ail_test (3.10) (push) Has been cancelled
CI / ail_test (3.7) (push) Has been cancelled
CI / ail_test (3.8) (push) Has been cancelled
CI / ail_test (3.9) (push) Has been cancelled
2024-08-13 11:43:05 +02:00
terrtia
6a3e0502bc
fix: [trackers] fix tracker view objects acl for global trackers 2024-06-24 16:37:30 +02:00
terrtia
3d3b4d6da2
fix: [trackers] fix tracker view objects acl for global trackers
Some checks failed
CI / ail_test (3.9) (push) Has been cancelled
CI / ail_test (3.10) (push) Has been cancelled
CI / ail_test (3.7) (push) Has been cancelled
CI / ail_test (3.8) (push) Has been cancelled
2024-06-24 16:23:00 +02:00
terrtia
61701e2fcc
chg: [perf] reduce memory usage 2024-04-09 14:22:11 +02:00
terrtia
dbde04caa3
chg: [tracker] add experimental report generator 2024-04-03 17:39:45 +02:00
terrtia
ee563a79d3
chg: [trackers] UI: remove object from tracker 2024-03-27 11:03:27 +01:00
terrtia
93d1b6fc1f
fix: [tracker] fix message trackers 2024-02-15 16:22:00 +01:00
terrtia
1e8f8e9e9c
chg: [tracker] list of last matchs, show description 2024-02-15 12:02:01 +01:00
terrtia
1a3ffe70c1
fix: [retro_hunt] api delete paused retro_hunt 2024-02-15 11:45:55 +01:00
terrtia
48ce4a76a4
fix: [retro_hunt] delete paused retro_hunt 2024-02-15 11:42:10 +01:00
terrtia
7d42315419
chg: [retro_hunt] show match + fix None subtype 2024-02-15 11:31:17 +01:00
terrtia
38a918e485
fix: [flask] fix escape import 2024-02-06 11:56:39 +01:00
terrtia
fee3332edb
fix: [tracker] delete yara rule, fix filter by object type 2023-09-29 15:43:37 +02:00
Terrtia
c01b806ae3
chg: [mail exporter] add obj content extract for each yara rule match 2023-08-24 11:11:57 +02:00
Terrtia
f44c5509da
chg: [titles] add yara tracker on title + tags domains if unsafe title tags 2023-08-23 11:16:22 +02:00
Terrtia
1aa0bd8a0e
fix: [settings] fix edit user 2023-07-31 16:25:28 +02:00
Terrtia
64252ddf75
fix: [Tracker] edit tracker filters 2023-07-31 16:00:31 +02:00
Terrtia
d6a24c0357
fix: [hunter + misp export] fix misp event json export + retro hunt date search and description 2023-06-29 08:48:50 +02:00
Terrtia
8252d6b69e
fix: [tracker] fix tracker delete 2023-05-26 14:09:12 +02:00
Terrtia
1e7b527e41
fix: [tracker] fix webhook 2023-05-26 13:57:34 +02:00
Terrtia
f4d20533cc
chg: [trackers UI] add admin endpoint 2023-05-12 09:25:17 +02:00
Terrtia
d4766c5adc
fix: [trackers] fix trackers edit 2023-05-11 16:49:09 +02:00
Terrtia
4473086f89
chg: [trackers] refactor trackers 2023-05-11 16:21:43 +02:00
Terrtia
37c71b8438
chg: [objects + retro hunt] refactor retro hunt + objects retro hunts + get objects generator by filters (date_from, sources, mimetypes, ...) 2023-05-10 16:26:46 +02:00
Terrtia
0daf5bad44
chg: [trackers] refactor trackers: track objects + filter by object types/sources/subtypes 2023-05-04 16:35:56 +02:00
Terrtia
524a404dc8
chg: [core] merge conflict 2023-03-16 15:50:42 +01:00
Terrtia
c2a4224375
fix: [user] fix user creation 2023-03-16 14:47:59 +01:00
Terrtia
ab24343b48
fix: [modules] fix modules 2023-02-22 11:08:29 +01:00
Terrtia
3365a054a8
chg: [cleanup] remove ARDB + fix hive case 2023-01-18 16:28:08 +01:00
Terrtia
bf71c9ba99
chg: [DB Migration] UI: Extract + highlight leaks and trackers match, Data Retention save object first/last date, Refactor Tools 2022-12-19 16:38:20 +01:00
Terrtia
af583939d8
chg: [migration] migrate Screenshots + Trackers + Duplicates + fix zadd zincrby 2022-11-29 16:01:01 +01:00
Terrtia
73dbef2700
chg: [all] remove old objects + migrate cryptocurrencies module + cleanup code 2022-11-28 15:01:40 +01:00
Terrtia
d27d47dc70
chg: [Kvrocks migration] rewrite obj tags + migration 2022-09-01 14:04:00 +02:00
Terrtia
9c1bfb7073
DB migration 2022-08-19 16:53:31 +02:00
Terrtia
8672671e51
fix: [Tracker migration] clean old Term library 2022-07-11 11:37:16 +02:00
Terrtia
7a5c7dc14e
fix: [tracker typo squatting] fix cache 2022-07-08 11:23:31 +02:00
Terrtia
8eec6fc8ce
fix: [tracker typo squatting] 2022-07-08 10:55:19 +02:00
Terrtia
50f7a31820
chg: [Kvrocks migration] add users + updates + trackers + retro_hunts + investigation migration 2022-07-08 09:47:47 +02:00