chg: [app] Renamed project to SkillAegis

This commit is contained in:
Sami Mokaddem 2024-07-18 14:51:36 +02:00
parent d9f21f3606
commit 9e308c1cfd
8 changed files with 13 additions and 13 deletions

View file

@ -1,4 +1,4 @@
# misp-exercise-dashboard
# SkillAegis
## Installation
```bash

View file

@ -27,10 +27,10 @@ misp_settings = {
}
import logging
logger = logging.getLogger('misp-exercise-dashboard')
logger = logging.getLogger('SkillAegis')
format = '[%(levelname)s] %(asctime)s - %(message)s'
formatter = logging.Formatter(format)
logging.basicConfig(filename='misp-exercise-dashboard.log', encoding='utf-8', level=logging.DEBUG, format=format)
logging.basicConfig(filename='SkillAegis.log', encoding='utf-8', level=logging.DEBUG, format=format)
# create console handler and set level to debug
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)

View file

@ -276,7 +276,7 @@ def is_accepted_query(data: dict) -> bool:
return False
return True
if data.get('user_agent', None) == 'misp-exercise-dashboard':
if data.get('user_agent', None) == 'SkillAegis':
return None
url = data.get('url', None)
if url is not None:

View file

@ -22,7 +22,7 @@ requestSession.mount('http://', adapterCache)
async def get(url, data={}, api_key=misp_apikey):
headers = {
'User-Agent': 'misp-exercise-dashboard',
'User-Agent': 'SkillAegis',
"Authorization": api_key,
"Accept": "application/json",
"Content-Type": "application/json"
@ -46,7 +46,7 @@ async def get(url, data={}, api_key=misp_apikey):
async def post(url, data={}, api_key=misp_apikey):
headers = {
'User-Agent': 'misp-exercise-dashboard',
'User-Agent': 'SkillAegis',
"Authorization": api_key,
"Accept": "application/json",
"Content-Type": "application/json"

View file

@ -187,7 +187,7 @@ def get_scope_action_from_url(url) -> Union[str, None]:
def is_accepted_notification(notification) -> bool:
global VERBOSE_MODE
if notification['user_agent'] == 'misp-exercise-dashboard': # Ignore message generated from this app
if notification['user_agent'] == 'SkillAegis': # Ignore message generated from this app
return False
if VERBOSE_MODE:
return True
@ -208,7 +208,7 @@ def is_accepted_notification(notification) -> bool:
def is_accepted_user_activity(notification) -> bool:
global VERBOSE_MODE
if notification['user_agent'] == 'misp-exercise-dashboard': # Ignore message generated from this app
if notification['user_agent'] == 'SkillAegis': # Ignore message generated from this app
return False
if '@' not in notification['user']: # Ignore message from system
return False

4
package-lock.json generated
View file

@ -1,11 +1,11 @@
{
"name": "misp-exercise-dashboard",
"name": "SkillAegis",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "misp-exercise-dashboard",
"name": "SkillAegis",
"version": "0.0.0",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.2",

View file

@ -1,5 +1,5 @@
{
"name": "misp-exercise-dashboard",
"name": "SkillAegis",
"version": "0.0.0",
"private": true,
"type": "module",

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB