diff --git a/CODESTYLE.md b/CODESTYLE.md index 7afcea1bb..7ea9ba3c4 100644 --- a/CODESTYLE.md +++ b/CODESTYLE.md @@ -1,6 +1,13 @@ # Coding style -If you wish to develop in DFIR-IRIS, please make sure to read the following tips. +If you wish to develop in DFIR-IRIS, please make sure to read the following tips. + +## Python coding rules + +* do not prefix files with any shebang, such as: +```python +#!/usr/bin/env python3 +``` ## Commits Try to follow the repository convention : diff --git a/scripts/gunicorn-cfg.py b/scripts/gunicorn-cfg.py index 7bdfd862d..9d0b61096 100644 --- a/scripts/gunicorn-cfg.py +++ b/scripts/gunicorn-cfg.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/__init__.py b/source/app/__init__.py index 34f2299bc..2f0fb4606 100644 --- a/source/app/__init__.py +++ b/source/app/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/activities/activities_routes.py b/source/app/blueprints/activities/activities_routes.py index 6a4900255..bdc2887fd 100644 --- a/source/app/blueprints/activities/activities_routes.py +++ b/source/app/blueprints/activities/activities_routes.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python3 -# -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/alerts/alerts_routes.py b/source/app/blueprints/alerts/alerts_routes.py index c09d9a417..c1a4bd59b 100644 --- a/source/app/blueprints/alerts/alerts_routes.py +++ b/source/app/blueprints/alerts/alerts_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2023 - DFIR-IRIS # contact@dfir-iris.org diff --git a/source/app/blueprints/api/api_routes.py b/source/app/blueprints/api/api_routes.py index 43558ebad..0dab9e642 100644 --- a/source/app/blueprints/api/api_routes.py +++ b/source/app/blueprints/api/api_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/case/__init__.py b/source/app/blueprints/case/__init__.py index b61ec7f78..0edbd4a50 100644 --- a/source/app/blueprints/case/__init__.py +++ b/source/app/blueprints/case/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -17,9 +15,3 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# IMPORTS ------------------------------------------------ - -# VARS --------------------------------------------------- - -# CONTENT ------------------------------------------------ \ No newline at end of file diff --git a/source/app/blueprints/case/case_assets_routes.py b/source/app/blueprints/case/case_assets_routes.py index 36f66277c..76b3a56ca 100644 --- a/source/app/blueprints/case/case_assets_routes.py +++ b/source/app/blueprints/case/case_assets_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/case/case_comments.py b/source/app/blueprints/case/case_comments.py index 2208e5678..ecf48b457 100644 --- a/source/app/blueprints/case/case_comments.py +++ b/source/app/blueprints/case/case_comments.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # DFIR-IRIS Team # contact@dfir-iris.org @@ -56,4 +54,4 @@ def case_comment_update(comment_id, object_type, caseid): return response_success("Comment edited", data=comment_schema.dump(comment)) except marshmallow.exceptions.ValidationError as e: - return response_error(msg="Data error", data=e.normalized_messages(), status=400) \ No newline at end of file + return response_error(msg="Data error", data=e.normalized_messages(), status=400) diff --git a/source/app/blueprints/case/case_graphs_routes.py b/source/app/blueprints/case/case_graphs_routes.py index e01d62d02..9b20f2c1f 100644 --- a/source/app/blueprints/case/case_graphs_routes.py +++ b/source/app/blueprints/case/case_graphs_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/case/case_ioc_routes.py b/source/app/blueprints/case/case_ioc_routes.py index f31e7902f..d2ee4cb7f 100644 --- a/source/app/blueprints/case/case_ioc_routes.py +++ b/source/app/blueprints/case/case_ioc_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/case/case_notes_routes.py b/source/app/blueprints/case/case_notes_routes.py index f3080fdae..8e9816298 100644 --- a/source/app/blueprints/case/case_notes_routes.py +++ b/source/app/blueprints/case/case_notes_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/case/case_rfiles_routes.py b/source/app/blueprints/case/case_rfiles_routes.py index 29ccec136..a75b77117 100644 --- a/source/app/blueprints/case/case_rfiles_routes.py +++ b/source/app/blueprints/case/case_rfiles_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/case/case_routes.py b/source/app/blueprints/case/case_routes.py index 63fe4c38c..45c52f2b4 100644 --- a/source/app/blueprints/case/case_routes.py +++ b/source/app/blueprints/case/case_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org @@ -453,4 +451,4 @@ def case_review(caseid): db.session.commit() - return response_success("Case review updated", data=CaseSchema().dump(case)) \ No newline at end of file + return response_success("Case review updated", data=CaseSchema().dump(case)) diff --git a/source/app/blueprints/case/case_tasks_routes.py b/source/app/blueprints/case/case_tasks_routes.py index 7b1790c2e..3d1b0a819 100644 --- a/source/app/blueprints/case/case_tasks_routes.py +++ b/source/app/blueprints/case/case_tasks_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/case/case_timeline_routes.py b/source/app/blueprints/case/case_timeline_routes.py index 9353e5110..2bbcd6f97 100644 --- a/source/app/blueprints/case/case_timeline_routes.py +++ b/source/app/blueprints/case/case_timeline_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) - DFIR-IRIS Team # ir@cyberactionlab.net - contact@dfir-iris.org diff --git a/source/app/blueprints/context/__init__.py b/source/app/blueprints/context/__init__.py index b61ec7f78..2e0379bb3 100644 --- a/source/app/blueprints/context/__init__.py +++ b/source/app/blueprints/context/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -18,8 +16,3 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# IMPORTS ------------------------------------------------ - -# VARS --------------------------------------------------- - -# CONTENT ------------------------------------------------ \ No newline at end of file diff --git a/source/app/blueprints/context/context.py b/source/app/blueprints/context/context.py index 1845f40e8..74077db8b 100644 --- a/source/app/blueprints/context/context.py +++ b/source/app/blueprints/context/context.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/dashboard/dashboard_routes.py b/source/app/blueprints/dashboard/dashboard_routes.py index c92cbf9c3..cac7759fa 100644 --- a/source/app/blueprints/dashboard/dashboard_routes.py +++ b/source/app/blueprints/dashboard/dashboard_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/datastore/datastore_routes.py b/source/app/blueprints/datastore/datastore_routes.py index caa4b5e98..655572aec 100644 --- a/source/app/blueprints/datastore/datastore_routes.py +++ b/source/app/blueprints/datastore/datastore_routes.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python3 -# -# # IRIS Source Code # Copyright (C) 2022 - DFIR IRIS Team # contact@dfir-iris.org diff --git a/source/app/blueprints/demo_landing/demo_landing.py b/source/app/blueprints/demo_landing/demo_landing.py index 08299361f..e619bb8b3 100644 --- a/source/app/blueprints/demo_landing/demo_landing.py +++ b/source/app/blueprints/demo_landing/demo_landing.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # @@ -56,4 +54,4 @@ def demo_landing(): iris_version=iris_version, demo_domain=demo_domain, demo_users=demo_users - ) \ No newline at end of file + ) diff --git a/source/app/blueprints/dim_tasks/dim_tasks.py b/source/app/blueprints/dim_tasks/dim_tasks.py index dab8a9aae..aa7317b2f 100644 --- a/source/app/blueprints/dim_tasks/dim_tasks.py +++ b/source/app/blueprints/dim_tasks/dim_tasks.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python3 -# -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/filters/filters_routes.py b/source/app/blueprints/filters/filters_routes.py index 5dd0e113c..9f01cb9a2 100644 --- a/source/app/blueprints/filters/filters_routes.py +++ b/source/app/blueprints/filters/filters_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2023 - DFIR-IRIS # contact@dfir-iris.org diff --git a/source/app/blueprints/login/login_routes.py b/source/app/blueprints/login/login_routes.py index aa8997626..27764ead1 100644 --- a/source/app/blueprints/login/login_routes.py +++ b/source/app/blueprints/login/login_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_access_control.py b/source/app/blueprints/manage/manage_access_control.py index 705d0d903..af547e740 100644 --- a/source/app/blueprints/manage/manage_access_control.py +++ b/source/app/blueprints/manage/manage_access_control.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_alerts_status_routes.py b/source/app/blueprints/manage/manage_alerts_status_routes.py index 8353fa161..d8818da73 100644 --- a/source/app/blueprints/manage/manage_alerts_status_routes.py +++ b/source/app/blueprints/manage/manage_alerts_status_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_analysis_status_routes.py b/source/app/blueprints/manage/manage_analysis_status_routes.py index 6976779fb..e3e28e6b2 100644 --- a/source/app/blueprints/manage/manage_analysis_status_routes.py +++ b/source/app/blueprints/manage/manage_analysis_status_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_assets.py b/source/app/blueprints/manage/manage_assets.py index 9c070195c..69452166c 100644 --- a/source/app/blueprints/manage/manage_assets.py +++ b/source/app/blueprints/manage/manage_assets.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_assets_type_routes.py b/source/app/blueprints/manage/manage_assets_type_routes.py index deeb05a96..42aace52f 100644 --- a/source/app/blueprints/manage/manage_assets_type_routes.py +++ b/source/app/blueprints/manage/manage_assets_type_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_attributes_routes.py b/source/app/blueprints/manage/manage_attributes_routes.py index 61506318c..54d568e25 100644 --- a/source/app/blueprints/manage/manage_attributes_routes.py +++ b/source/app/blueprints/manage/manage_attributes_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_case_classifications.py b/source/app/blueprints/manage/manage_case_classifications.py index cae2554e7..5d710b987 100644 --- a/source/app/blueprints/manage/manage_case_classifications.py +++ b/source/app/blueprints/manage/manage_case_classifications.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_case_state.py b/source/app/blueprints/manage/manage_case_state.py index 7c09ccb66..91370b870 100644 --- a/source/app/blueprints/manage/manage_case_state.py +++ b/source/app/blueprints/manage/manage_case_state.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_case_templates_routes.py b/source/app/blueprints/manage/manage_case_templates_routes.py index aa1ab1ef7..1994d434b 100644 --- a/source/app/blueprints/manage/manage_case_templates_routes.py +++ b/source/app/blueprints/manage/manage_case_templates_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_cases_routes.py b/source/app/blueprints/manage/manage_cases_routes.py index 87a7485fc..c1ac93226 100644 --- a/source/app/blueprints/manage/manage_cases_routes.py +++ b/source/app/blueprints/manage/manage_cases_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_customers_routes.py b/source/app/blueprints/manage/manage_customers_routes.py index 8637f345f..1509c009b 100644 --- a/source/app/blueprints/manage/manage_customers_routes.py +++ b/source/app/blueprints/manage/manage_customers_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_event_categories_routes.py b/source/app/blueprints/manage/manage_event_categories_routes.py index 242a67761..0328e3f7f 100644 --- a/source/app/blueprints/manage/manage_event_categories_routes.py +++ b/source/app/blueprints/manage/manage_event_categories_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_evidence_types_route.py b/source/app/blueprints/manage/manage_evidence_types_route.py index 526649705..86297c526 100644 --- a/source/app/blueprints/manage/manage_evidence_types_route.py +++ b/source/app/blueprints/manage/manage_evidence_types_route.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_groups.py b/source/app/blueprints/manage/manage_groups.py index b421dcf88..ee1cf7891 100644 --- a/source/app/blueprints/manage/manage_groups.py +++ b/source/app/blueprints/manage/manage_groups.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/blueprints/manage/manage_ioc_types_routes.py b/source/app/blueprints/manage/manage_ioc_types_routes.py index 75507a81f..89206558a 100644 --- a/source/app/blueprints/manage/manage_ioc_types_routes.py +++ b/source/app/blueprints/manage/manage_ioc_types_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_modules_routes.py b/source/app/blueprints/manage/manage_modules_routes.py index 3e7a9797c..10c98be65 100644 --- a/source/app/blueprints/manage/manage_modules_routes.py +++ b/source/app/blueprints/manage/manage_modules_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_objects_routes.py b/source/app/blueprints/manage/manage_objects_routes.py index 884b9bd22..6b7130e32 100644 --- a/source/app/blueprints/manage/manage_objects_routes.py +++ b/source/app/blueprints/manage/manage_objects_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_severities_routes.py b/source/app/blueprints/manage/manage_severities_routes.py index 9a4a4c414..5dfea44b1 100644 --- a/source/app/blueprints/manage/manage_severities_routes.py +++ b/source/app/blueprints/manage/manage_severities_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # @@ -83,4 +81,4 @@ def search_analysis_status(caseid): # Serialize the severity and return them in a JSON response schema = SeveritySchema(many=True) - return response_success("", data=schema.dump(severity)) \ No newline at end of file + return response_success("", data=schema.dump(severity)) diff --git a/source/app/blueprints/manage/manage_srv_settings_routes.py b/source/app/blueprints/manage/manage_srv_settings_routes.py index 884f891e7..f5c1447f6 100644 --- a/source/app/blueprints/manage/manage_srv_settings_routes.py +++ b/source/app/blueprints/manage/manage_srv_settings_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_tags.py b/source/app/blueprints/manage/manage_tags.py index 33b15586b..51596a328 100644 --- a/source/app/blueprints/manage/manage_tags.py +++ b/source/app/blueprints/manage/manage_tags.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # @@ -95,4 +93,4 @@ def manage_tags_suggest(caseid) -> Response: return app.response_class(response=json.dumps(tags, cls=AlchemyEncoder), status=200, - mimetype='application/json') \ No newline at end of file + mimetype='application/json') diff --git a/source/app/blueprints/manage/manage_task_status_routes.py b/source/app/blueprints/manage/manage_task_status_routes.py index e119ade24..035914585 100644 --- a/source/app/blueprints/manage/manage_task_status_routes.py +++ b/source/app/blueprints/manage/manage_task_status_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_templates_routes.py b/source/app/blueprints/manage/manage_templates_routes.py index 3e96057c7..09a6ed4d8 100644 --- a/source/app/blueprints/manage/manage_templates_routes.py +++ b/source/app/blueprints/manage/manage_templates_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_tlps_routes.py b/source/app/blueprints/manage/manage_tlps_routes.py index 0c0210c70..6ef2cf4cb 100644 --- a/source/app/blueprints/manage/manage_tlps_routes.py +++ b/source/app/blueprints/manage/manage_tlps_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/manage/manage_users.py b/source/app/blueprints/manage/manage_users.py index be978f8a3..c32d42588 100644 --- a/source/app/blueprints/manage/manage_users.py +++ b/source/app/blueprints/manage/manage_users.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/overview/overview_routes.py b/source/app/blueprints/overview/overview_routes.py index 26f6f6e2a..c13944e06 100644 --- a/source/app/blueprints/overview/overview_routes.py +++ b/source/app/blueprints/overview/overview_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # DFIR-IRIS Team # contact@dfir-iris.org diff --git a/source/app/blueprints/profile/profile_routes.py b/source/app/blueprints/profile/profile_routes.py index f69c13188..88a680826 100644 --- a/source/app/blueprints/profile/profile_routes.py +++ b/source/app/blueprints/profile/profile_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/reports/__init__.py b/source/app/blueprints/reports/__init__.py index 1a65c19b2..0edbd4a50 100644 --- a/source/app/blueprints/reports/__init__.py +++ b/source/app/blueprints/reports/__init__.py @@ -1,12 +1,17 @@ -#!/usr/bin/env python3 +# IRIS Source Code +# Copyright (C) 2021 - Airbus CyberSecurity (SAS) +# ir@cyberactionlab.net # -# This file is part of IRIS Project -# MIT Licence -# Author : PAM -# File creation date : 4/27/20 - -# IMPORTS ------------------------------------------------ - -# VARS --------------------------------------------------- - -# CONTENT ------------------------------------------------ \ No newline at end of file +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/source/app/blueprints/reports/reports_route.py b/source/app/blueprints/reports/reports_route.py index 6618fc099..4b0aac51b 100644 --- a/source/app/blueprints/reports/reports_route.py +++ b/source/app/blueprints/reports/reports_route.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/blueprints/search/search_routes.py b/source/app/blueprints/search/search_routes.py index 8b8b6f2c6..cdc5b3980 100644 --- a/source/app/blueprints/search/search_routes.py +++ b/source/app/blueprints/search/search_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/configuration.py b/source/app/configuration.py index 11e55e124..86e87e59c 100644 --- a/source/app/configuration.py +++ b/source/app/configuration.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/activities/activities_db.py b/source/app/datamgmt/activities/activities_db.py index 7ce756491..c1fb0c9b5 100644 --- a/source/app/datamgmt/activities/activities_db.py +++ b/source/app/datamgmt/activities/activities_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -131,4 +129,4 @@ def get_all_users_activities(): UserActivity.case_id == None )).order_by(desc(UserActivity.activity_date)).limit(10000).all() - return user_activities \ No newline at end of file + return user_activities diff --git a/source/app/datamgmt/alerts/alerts_db.py b/source/app/datamgmt/alerts/alerts_db.py index b5397aac5..b472a08ac 100644 --- a/source/app/datamgmt/alerts/alerts_db.py +++ b/source/app/datamgmt/alerts/alerts_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2023 - DFIR-IRIS # contact@dfir-iris.org diff --git a/source/app/datamgmt/case/case_assets_db.py b/source/app/datamgmt/case/case_assets_db.py index 7f4cf10c0..a7ae7eec9 100644 --- a/source/app/datamgmt/case/case_assets_db.py +++ b/source/app/datamgmt/case/case_assets_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -399,4 +397,4 @@ def get_asset_by_name(asset_name, caseid): CaseAssets.asset_name == asset_name, CaseAssets.case_id == caseid ).first() - return asset \ No newline at end of file + return asset diff --git a/source/app/datamgmt/case/case_db.py b/source/app/datamgmt/case/case_db.py index ab0a48c94..cdb2f5dfb 100644 --- a/source/app/datamgmt/case/case_db.py +++ b/source/app/datamgmt/case/case_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/case/case_events_db.py b/source/app/datamgmt/case/case_events_db.py index 25cff64cd..d21f888d3 100644 --- a/source/app/datamgmt/case/case_events_db.py +++ b/source/app/datamgmt/case/case_events_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/case/case_iocs_db.py b/source/app/datamgmt/case/case_iocs_db.py index d67e31ef2..cbcc0281b 100644 --- a/source/app/datamgmt/case/case_iocs_db.py +++ b/source/app/datamgmt/case/case_iocs_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -353,4 +351,4 @@ def get_ioc_by_value(ioc_value, caseid=None): IocLink.ioc ).first() - return Ioc.query.filter(Ioc.ioc_value == ioc_value).first() \ No newline at end of file + return Ioc.query.filter(Ioc.ioc_value == ioc_value).first() diff --git a/source/app/datamgmt/case/case_notes_db.py b/source/app/datamgmt/case/case_notes_db.py index 67fdc6fa7..48f28e2ac 100644 --- a/source/app/datamgmt/case/case_notes_db.py +++ b/source/app/datamgmt/case/case_notes_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/case/case_rfiles_db.py b/source/app/datamgmt/case/case_rfiles_db.py index 5f96abf0f..3425972a6 100644 --- a/source/app/datamgmt/case/case_rfiles_db.py +++ b/source/app/datamgmt/case/case_rfiles_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/case/case_tasks_db.py b/source/app/datamgmt/case/case_tasks_db.py index 65fefa90f..dfb3a5c68 100644 --- a/source/app/datamgmt/case/case_tasks_db.py +++ b/source/app/datamgmt/case/case_tasks_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/client/client_db.py b/source/app/datamgmt/client/client_db.py index 17adcbd38..b436242d1 100644 --- a/source/app/datamgmt/client/client_db.py +++ b/source/app/datamgmt/client/client_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/context/context_db.py b/source/app/datamgmt/context/context_db.py index 97675180c..cea2733d3 100644 --- a/source/app/datamgmt/context/context_db.py +++ b/source/app/datamgmt/context/context_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/datamgmt/dashboard/dashboard_db.py b/source/app/datamgmt/dashboard/dashboard_db.py index 06dc30dbf..5023f3260 100644 --- a/source/app/datamgmt/dashboard/dashboard_db.py +++ b/source/app/datamgmt/dashboard/dashboard_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/datastore/datastore_db.py b/source/app/datamgmt/datastore/datastore_db.py index a91e45d21..d8ce88daf 100644 --- a/source/app/datamgmt/datastore/datastore_db.py +++ b/source/app/datamgmt/datastore/datastore_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # # IRIS Source Code # Copyright (C) 2022 - DFIR IRIS Team diff --git a/source/app/datamgmt/exceptions/ElementExceptions.py b/source/app/datamgmt/exceptions/ElementExceptions.py index 608443967..52614d4dc 100644 --- a/source/app/datamgmt/exceptions/ElementExceptions.py +++ b/source/app/datamgmt/exceptions/ElementExceptions.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/iris_engine/evidence_storage.py b/source/app/datamgmt/iris_engine/evidence_storage.py index ee677fc30..a65b28a27 100644 --- a/source/app/datamgmt/iris_engine/evidence_storage.py +++ b/source/app/datamgmt/iris_engine/evidence_storage.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -40,4 +38,4 @@ def add_evidence(case_id, filename, description, size, sha256, date_added, user_ evidence.file_size = size evidence.file_hash = sha256 - return add_rfile(evidence, case_id, user_id) \ No newline at end of file + return add_rfile(evidence, case_id, user_id) diff --git a/source/app/datamgmt/iris_engine/modules_db.py b/source/app/datamgmt/iris_engine/modules_db.py index 31b9ec67d..503f5980a 100644 --- a/source/app/datamgmt/iris_engine/modules_db.py +++ b/source/app/datamgmt/iris_engine/modules_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/manage/manage_access_control_db.py b/source/app/datamgmt/manage/manage_access_control_db.py index 96a464533..c8d188110 100644 --- a/source/app/datamgmt/manage/manage_access_control_db.py +++ b/source/app/datamgmt/manage/manage_access_control_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/datamgmt/manage/manage_attribute_db.py b/source/app/datamgmt/manage/manage_attribute_db.py index 8e854db80..2237f6c1e 100644 --- a/source/app/datamgmt/manage/manage_attribute_db.py +++ b/source/app/datamgmt/manage/manage_attribute_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -289,4 +287,4 @@ def validate_attribute(attribute): else: logs.append(f'{tab} -> {field}, unknown field type "{field_type}"') - return data, logs \ No newline at end of file + return data, logs diff --git a/source/app/datamgmt/manage/manage_case_classifications_db.py b/source/app/datamgmt/manage/manage_case_classifications_db.py index b2f6b9ae7..5f0adcece 100644 --- a/source/app/datamgmt/manage/manage_case_classifications_db.py +++ b/source/app/datamgmt/manage/manage_case_classifications_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/datamgmt/manage/manage_case_objs.py b/source/app/datamgmt/manage/manage_case_objs.py index 6152510c7..014d77658 100644 --- a/source/app/datamgmt/manage/manage_case_objs.py +++ b/source/app/datamgmt/manage/manage_case_objs.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -83,4 +81,4 @@ def search_event_category_by_name(name: str, exact_match: bool = False) -> Asset if exact_match: return EventCategory.query.filter(func.lower(EventCategory.name) == name.lower()).all() - return EventCategory.query.filter(EventCategory.name.ilike(f'%{name}%')).all() \ No newline at end of file + return EventCategory.query.filter(EventCategory.name.ilike(f'%{name}%')).all() diff --git a/source/app/datamgmt/manage/manage_case_state_db.py b/source/app/datamgmt/manage/manage_case_state_db.py index c4c91231f..387fed5a0 100644 --- a/source/app/datamgmt/manage/manage_case_state_db.py +++ b/source/app/datamgmt/manage/manage_case_state_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/datamgmt/manage/manage_case_templates_db.py b/source/app/datamgmt/manage/manage_case_templates_db.py index 9b09f8af5..b83cb6067 100644 --- a/source/app/datamgmt/manage/manage_case_templates_db.py +++ b/source/app/datamgmt/manage/manage_case_templates_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/datamgmt/manage/manage_cases_db.py b/source/app/datamgmt/manage/manage_cases_db.py index 4060d7e0c..a0716baed 100644 --- a/source/app/datamgmt/manage/manage_cases_db.py +++ b/source/app/datamgmt/manage/manage_cases_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/manage/manage_common.py b/source/app/datamgmt/manage/manage_common.py index 77524e74b..52b4894f6 100644 --- a/source/app/datamgmt/manage/manage_common.py +++ b/source/app/datamgmt/manage/manage_common.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2023 - DFIR-IRIS # contact@dfir-iris.org diff --git a/source/app/datamgmt/manage/manage_evidence_types_db.py b/source/app/datamgmt/manage/manage_evidence_types_db.py index e8e7e6112..2184d9f1f 100644 --- a/source/app/datamgmt/manage/manage_evidence_types_db.py +++ b/source/app/datamgmt/manage/manage_evidence_types_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/datamgmt/manage/manage_groups_db.py b/source/app/datamgmt/manage/manage_groups_db.py index 52315e05f..3a197035b 100644 --- a/source/app/datamgmt/manage/manage_groups_db.py +++ b/source/app/datamgmt/manage/manage_groups_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # @@ -308,4 +306,4 @@ def remove_cases_access_from_group(group_id, cases_list): db.session.commit() - return True, "Updated" \ No newline at end of file + return True, "Updated" diff --git a/source/app/datamgmt/manage/manage_users_db.py b/source/app/datamgmt/manage/manage_users_db.py index 87b1f7209..1e9bb06b1 100644 --- a/source/app/datamgmt/manage/manage_users_db.py +++ b/source/app/datamgmt/manage/manage_users_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -739,4 +737,4 @@ def get_filtered_users(user_ids: str = None, app.logger.exception(f'Error getting users: {str(e)}') return None - return filtered_users \ No newline at end of file + return filtered_users diff --git a/source/app/datamgmt/overview/overview_db.py b/source/app/datamgmt/overview/overview_db.py index d7ca0a2f0..17f0ba4d0 100644 --- a/source/app/datamgmt/overview/overview_db.py +++ b/source/app/datamgmt/overview/overview_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # DFIR-IRIS Team # contact@dfir-iris.org diff --git a/source/app/datamgmt/reporter/report_db.py b/source/app/datamgmt/reporter/report_db.py index f718e0bad..14e7c372b 100644 --- a/source/app/datamgmt/reporter/report_db.py +++ b/source/app/datamgmt/reporter/report_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/datamgmt/states.py b/source/app/datamgmt/states.py index f614ed228..b559381a6 100644 --- a/source/app/datamgmt/states.py +++ b/source/app/datamgmt/states.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -130,4 +128,4 @@ def update_notes_state(caseid, userid=None): def get_notes_state(caseid): - return get_object_state('notes', caseid=caseid) \ No newline at end of file + return get_object_state('notes', caseid=caseid) diff --git a/source/app/forms.py b/source/app/forms.py index a8638f72e..f777fb052 100644 --- a/source/app/forms.py +++ b/source/app/forms.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/iris_engine/access_control/ldap_handler.py b/source/app/iris_engine/access_control/ldap_handler.py index 7ca300166..f1b62ec45 100644 --- a/source/app/iris_engine/access_control/ldap_handler.py +++ b/source/app/iris_engine/access_control/ldap_handler.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # contact@dfir-iris.org # diff --git a/source/app/iris_engine/backup/backup.py b/source/app/iris_engine/backup/backup.py index 36cf3d652..0680cff7d 100644 --- a/source/app/iris_engine/backup/backup.py +++ b/source/app/iris_engine/backup/backup.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Core Code # contact@dfir-iris.org # @@ -71,4 +69,4 @@ def backup_iris_db(): if backup_file.is_file() and backup_file.stat().st_size != 0: logs.append(f'Backup completed in {backup_file}') - return False, logs \ No newline at end of file + return False, logs diff --git a/source/app/iris_engine/demo_builder.py b/source/app/iris_engine/demo_builder.py index b94ccfe44..3151badbc 100644 --- a/source/app/iris_engine/demo_builder.py +++ b/source/app/iris_engine/demo_builder.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # DFIR IRIS # contact@dfir-iris.org diff --git a/source/app/iris_engine/module_handler/module_handler.py b/source/app/iris_engine/module_handler/module_handler.py index 571b55971..397bd6e3b 100644 --- a/source/app/iris_engine/module_handler/module_handler.py +++ b/source/app/iris_engine/module_handler/module_handler.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2022 - DFIR IRIS Team # contact@dfir-iris.org @@ -614,4 +612,4 @@ def pipeline_dispatcher(self, module_name, hook_name, pipeline_type, pipeline_da return mod.pipeline_handler(pipeline_type=pipeline_type, pipeline_data=pipeline_data) - return IStatus.I2InterfaceNotImplemented("Couldn't instantiate module {}".format(module_name)) \ No newline at end of file + return IStatus.I2InterfaceNotImplemented("Couldn't instantiate module {}".format(module_name)) diff --git a/source/app/iris_engine/reporter/ImageHandler.py b/source/app/iris_engine/reporter/ImageHandler.py index 1a771116d..7d24dd7fc 100644 --- a/source/app/iris_engine/reporter/ImageHandler.py +++ b/source/app/iris_engine/reporter/ImageHandler.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # contact@dfir-iris.org diff --git a/source/app/iris_engine/reporter/__init__.py b/source/app/iris_engine/reporter/__init__.py index b61ec7f78..0edbd4a50 100644 --- a/source/app/iris_engine/reporter/__init__.py +++ b/source/app/iris_engine/reporter/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -17,9 +15,3 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# IMPORTS ------------------------------------------------ - -# VARS --------------------------------------------------- - -# CONTENT ------------------------------------------------ \ No newline at end of file diff --git a/source/app/iris_engine/reporter/reporter.py b/source/app/iris_engine/reporter/reporter.py index bc54bc5cc..89454bf68 100644 --- a/source/app/iris_engine/reporter/reporter.py +++ b/source/app/iris_engine/reporter/reporter.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2022 - DFIR IRIS Team # contact@dfir-iris.org diff --git a/source/app/iris_engine/tasker/celery.py b/source/app/iris_engine/tasker/celery.py index 0bf2224ec..eb5873096 100644 --- a/source/app/iris_engine/tasker/celery.py +++ b/source/app/iris_engine/tasker/celery.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/iris_engine/tasker/tasks.py b/source/app/iris_engine/tasker/tasks.py index 886358125..da42965d9 100644 --- a/source/app/iris_engine/tasker/tasks.py +++ b/source/app/iris_engine/tasker/tasks.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/iris_engine/updater/updater.py b/source/app/iris_engine/updater/updater.py index 5f53643c0..834613486 100644 --- a/source/app/iris_engine/updater/updater.py +++ b/source/app/iris_engine/updater/updater.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Core Code # contact@dfir-iris.org # diff --git a/source/app/iris_engine/utils/__init__.py b/source/app/iris_engine/utils/__init__.py index b61ec7f78..2e0379bb3 100644 --- a/source/app/iris_engine/utils/__init__.py +++ b/source/app/iris_engine/utils/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -18,8 +16,3 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# IMPORTS ------------------------------------------------ - -# VARS --------------------------------------------------- - -# CONTENT ------------------------------------------------ \ No newline at end of file diff --git a/source/app/iris_engine/utils/common.py b/source/app/iris_engine/utils/common.py index 6c3a22b65..44cda66ae 100644 --- a/source/app/iris_engine/utils/common.py +++ b/source/app/iris_engine/utils/common.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/iris_engine/utils/tracker.py b/source/app/iris_engine/utils/tracker.py index fd39536fe..59e086caf 100644 --- a/source/app/iris_engine/utils/tracker.py +++ b/source/app/iris_engine/utils/tracker.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/models/cases.py b/source/app/models/cases.py index feb2901e6..cb253b99b 100644 --- a/source/app/models/cases.py +++ b/source/app/models/cases.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/models/models.py b/source/app/models/models.py index f3bedd530..1ab9fe11e 100644 --- a/source/app/models/models.py +++ b/source/app/models/models.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/post_init.py b/source/app/post_init.py index 9c57c3146..58983888f 100644 --- a/source/app/post_init.py +++ b/source/app/post_init.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/schema/marshables.py b/source/app/schema/marshables.py index 26b4bd883..38b2440e9 100644 --- a/source/app/schema/marshables.py +++ b/source/app/schema/marshables.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/app/util.py b/source/app/util.py index 0ee4dc8a1..4c8dd15ad 100644 --- a/source/app/util.py +++ b/source/app/util.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2022 - DFIR IRIS Team # contact@dfir-iris.org diff --git a/source/app/views.py b/source/app/views.py index a5aa870ab..bfaf836e9 100644 --- a/source/app/views.py +++ b/source/app/views.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net @@ -153,4 +151,4 @@ def load_user_from_request(request): return user # finally, return None if both methods did not login the user - return None \ No newline at end of file + return None diff --git a/source/run.py b/source/run.py index c4208201e..32dbe6204 100644 --- a/source/run.py +++ b/source/run.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/clean_database.py b/source/tests/clean_database.py index 3f5e6799d..1f52df6bc 100644 --- a/source/tests/clean_database.py +++ b/source/tests/clean_database.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/performance/test_burst_db_interaction.py b/source/tests/performance/test_burst_db_interaction.py index 03cb28510..d523f3dfd 100644 --- a/source/tests/performance/test_burst_db_interaction.py +++ b/source/tests/performance/test_burst_db_interaction.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/test_helper.py b/source/tests/test_helper.py index b4c6932b1..202a66209 100644 --- a/source/tests/test_helper.py +++ b/source/tests/test_helper.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/unit/blueprints/case/test_case_rfiles_routes.py b/source/tests/unit/blueprints/case/test_case_rfiles_routes.py index 715b1eede..6395e7333 100644 --- a/source/tests/unit/blueprints/case/test_case_rfiles_routes.py +++ b/source/tests/unit/blueprints/case/test_case_rfiles_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/unit/blueprints/case/test_case_tasks_routes.py b/source/tests/unit/blueprints/case/test_case_tasks_routes.py index 1d37890a4..cdc3d7240 100644 --- a/source/tests/unit/blueprints/case/test_case_tasks_routes.py +++ b/source/tests/unit/blueprints/case/test_case_tasks_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/unit/blueprints/manage/test_manage_modules_routes.py b/source/tests/unit/blueprints/manage/test_manage_modules_routes.py index 5a2078847..e636d3722 100644 --- a/source/tests/unit/blueprints/manage/test_manage_modules_routes.py +++ b/source/tests/unit/blueprints/manage/test_manage_modules_routes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/source/tests/unit/datamgmt/client/test_client_db.py b/source/tests/unit/datamgmt/client/test_client_db.py index edca22b1d..7e2f3ad86 100644 --- a/source/tests/unit/datamgmt/client/test_client_db.py +++ b/source/tests/unit/datamgmt/client/test_client_db.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2021 - Airbus CyberSecurity (SAS) # ir@cyberactionlab.net diff --git a/upgrades/upgrade_to_2.0.0.py b/upgrades/upgrade_to_2.0.0.py index 38ef0680f..ecbe3dc8b 100644 --- a/upgrades/upgrade_to_2.0.0.py +++ b/upgrades/upgrade_to_2.0.0.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # IRIS Source Code # Copyright (C) 2023 - DFIR-IRS # contact@dfir-iris.org