chg: [app] Renamed project to SkillAegis
This commit is contained in:
parent
d9f21f3606
commit
9e308c1cfd
8 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
# misp-exercise-dashboard
|
# SkillAegis
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -27,10 +27,10 @@ misp_settings = {
|
||||||
}
|
}
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger('misp-exercise-dashboard')
|
logger = logging.getLogger('SkillAegis')
|
||||||
format = '[%(levelname)s] %(asctime)s - %(message)s'
|
format = '[%(levelname)s] %(asctime)s - %(message)s'
|
||||||
formatter = logging.Formatter(format)
|
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
|
# create console handler and set level to debug
|
||||||
ch = logging.StreamHandler()
|
ch = logging.StreamHandler()
|
||||||
ch.setLevel(logging.INFO)
|
ch.setLevel(logging.INFO)
|
||||||
|
|
|
@ -276,7 +276,7 @@ def is_accepted_query(data: dict) -> bool:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if data.get('user_agent', None) == 'misp-exercise-dashboard':
|
if data.get('user_agent', None) == 'SkillAegis':
|
||||||
return None
|
return None
|
||||||
url = data.get('url', None)
|
url = data.get('url', None)
|
||||||
if url is not None:
|
if url is not None:
|
||||||
|
|
|
@ -22,7 +22,7 @@ requestSession.mount('http://', adapterCache)
|
||||||
|
|
||||||
async def get(url, data={}, api_key=misp_apikey):
|
async def get(url, data={}, api_key=misp_apikey):
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'misp-exercise-dashboard',
|
'User-Agent': 'SkillAegis',
|
||||||
"Authorization": api_key,
|
"Authorization": api_key,
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"Content-Type": "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):
|
async def post(url, data={}, api_key=misp_apikey):
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'misp-exercise-dashboard',
|
'User-Agent': 'SkillAegis',
|
||||||
"Authorization": api_key,
|
"Authorization": api_key,
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
|
|
@ -187,7 +187,7 @@ def get_scope_action_from_url(url) -> Union[str, None]:
|
||||||
def is_accepted_notification(notification) -> bool:
|
def is_accepted_notification(notification) -> bool:
|
||||||
global VERBOSE_MODE
|
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
|
return False
|
||||||
if VERBOSE_MODE:
|
if VERBOSE_MODE:
|
||||||
return True
|
return True
|
||||||
|
@ -208,7 +208,7 @@ def is_accepted_notification(notification) -> bool:
|
||||||
def is_accepted_user_activity(notification) -> bool:
|
def is_accepted_user_activity(notification) -> bool:
|
||||||
global VERBOSE_MODE
|
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
|
return False
|
||||||
if '@' not in notification['user']: # Ignore message from system
|
if '@' not in notification['user']: # Ignore message from system
|
||||||
return False
|
return False
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "misp-exercise-dashboard",
|
"name": "SkillAegis",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "misp-exercise-dashboard",
|
"name": "SkillAegis",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "misp-exercise-dashboard",
|
"name": "SkillAegis",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
BIN
src/assets/skillaegis-logo-lg.png
Normal file
BIN
src/assets/skillaegis-logo-lg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in a new issue