Skip to content

Commit

Permalink
added information above licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanakan5591 committed Aug 22, 2024
1 parent 9ea51b9 commit 847f540
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 20 deletions.
6 changes: 5 additions & 1 deletion cyntelligence/FileAnalyze.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# FileAnalyze module for sending file hashes to analyze for possible
# existing threats
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
5 changes: 4 additions & 1 deletion cyntelligence/IPEnrich.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# IPEnrich module for enriching IP addresses information
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
7 changes: 5 additions & 2 deletions cyntelligence/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Initialization file for cyntelligence.
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,4 +20,4 @@
from .IPEnrich import IPEnrich
from .FileAnalyze import FileAnalyze

__all__ = ['IPEnrich', 'FileAnalyze']
__all__ = ['IPEnrich', 'FileAnalyze']
7 changes: 5 additions & 2 deletions cyntelligence/common/cache.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Cache utilities for implementing time-invalidation cache
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,4 +40,4 @@ def _wrapped(*args, **kwargs):

return _wrapped

return _decorator
return _decorator
5 changes: 4 additions & 1 deletion cyntelligence/datasource/BaseSource.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Base Data Source file for implementing data source
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
11 changes: 7 additions & 4 deletions cyntelligence/datasource/QRadar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# QRadar Data Source file for interacting with QRadar instance
# via its Ariel API
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,7 +22,7 @@
from typing import Any

import requests
from cyntelligence.datasource import BaseSource
from . import BaseSource
import os

class QRadar(BaseSource):
Expand Down Expand Up @@ -59,5 +63,4 @@ def _get_info_cache(self, ip) -> list[dict]:
return body_response

# if any of the steps failed
return False

return [{}]
7 changes: 5 additions & 2 deletions cyntelligence/datasource/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Initialization file for datasource module
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,4 +19,4 @@

from .QRadar import QRadar

__all__ = ["QRadar"]
__all__ = ["QRadar"]
7 changes: 5 additions & 2 deletions cyntelligence/feature_flags.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Feature Flags file for enabling or disabling features
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,4 +21,4 @@
VIRUSTOTAL_SOURCE = True
ABUSEIPDB_SOURCE = True

QRADAR_SOURCE = True
QRADAR_SOURCE = True
6 changes: 5 additions & 1 deletion cyntelligence/intelsource/AbuseIPDB.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# AbuseIPDB Intelligence Source File for interacting with
# AbuseIPDB via its API
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
5 changes: 4 additions & 1 deletion cyntelligence/intelsource/BaseSource.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Base intelligence source file for implementing intelsource file
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 5 additions & 1 deletion cyntelligence/intelsource/VirusTotal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# VirusTotal Intelligence Source file for interacting with
# VirusTotal platform via vt-py
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
21 changes: 20 additions & 1 deletion cyntelligence/intelsource/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
# ----------------------------------------------------------------------
# Initialization file for intelsource module
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------

from .VirusTotal import VirusTotal
from .AbuseIPDB import AbuseIPDB

__all__ = ["VirusTotal", "AbuseIPDB"]
__all__ = ["VirusTotal", "AbuseIPDB"]
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ----------------------------------------------------------------------
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net> on behalf of Up Up Up All Night
# Main Automated Investigator File containing the web interface
# and most of the logic.
#
# Copyright 2024 Chanakan Moongthin <me@chanakancloud.net>
# on behalf of Up Up Up All Night
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 847f540

Please sign in to comment.