Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<!-- To tick the checkboxes replace the space with an 'x', so [ ] becomes [x] . -->

- [ ] Bug fix <!-- Non-Breaking Bug Fix - Usually relates to fixing an issue -->
- [ ] Deprecation Change <!-- Removing a deprecation -->
- [ ] New feature <!-- Non-Breaking Change that adds a new feature -->
- [ ] Refactoring <!-- Non-Breaking Change that modifies existing code to refactor it to become more organised -->
- [ ] Documentation
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/file-mod-restrict.yml

This file was deleted.

39 changes: 23 additions & 16 deletions CODE/Logicytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
import zipfile
from datetime import datetime
from typing import Any

from prettytable import PrettyTable
from pathlib import Path

from logicytics import Log, Execute, Check, Get, FileManagement, Flag, DEBUG, DELETE_LOGS


# Initialization
FileManagement.mkdir()
log = Log({"log_level": DEBUG, "delete_log": DELETE_LOGS})
Expand Down Expand Up @@ -136,9 +135,16 @@ def handle_special_actions():
log.info("Opening developer menu...")
special_execute("_dev.py")

# Deprecated, remove in v3.3.0
if ACTION == "extra":
log.info("Opening extra tools menu...")
special_execute("_extra.py")
print("\033[91mDeprecationWarning: "
"A call to the deprecated feature `extra` has been called, "
"this feature has been removed as it doesn't follow "
"the required code standards or aim of Logicytics.\033[0m")
log.info("No flag is supplied due to --extra flag deprecation, will show help menu instead")
Flag.show_help_menu()
input("Press Enter to exit...")
exit(0)

if ACTION == "update":
log.info("Updating...")
Expand Down Expand Up @@ -170,14 +176,14 @@ def handle_special_actions():
input("Press Enter to exit...")
exit(0)

# Deprecated, remove in v3.3.0
if ACTION == "unzip_extra":
log.warning(
"The contents of this directory can be flagged as malicious and enter quarantine, please use with "
"caution"
)
log.info("Unzipping...")
FileManagement.unzip(Path("..\\EXTRA\\EXTRA.zip"))
log.info("Unzip complete!")
print("\033[91mDeprecationWarning: "
"A call to the deprecated feature `unzip-extra` has been called, "
"this feature has been removed as it doesn't follow "
"the required code standards or aim of Logicytics.\033[0m")
log.info("No flag is supplied due to --unzip-extra flag deprecation, will show help menu instead")
Flag.show_help_menu()
input("Press Enter to exit...")
exit(0)

Expand Down Expand Up @@ -327,12 +333,13 @@ def threaded_execution(execution_list_thread, index_thread):

def zip_generated_files():
"""Zips generated files based on the action."""

def zip_and_log(directory: str, name: str):
log.debug(f"Zipping directory '{directory}' with name '{name}' under action '{ACTION}'")
zip_values = FileManagement.Zip.and_hash(
directory,
name,
ACTION if ACTION is not None else f"ERROR_NO_ACTION_SPECIFIED_{datetime.now().isoformat()}"
directory,
name,
ACTION if ACTION is not None else f"ERROR_NO_ACTION_SPECIFIED_{datetime.now().isoformat()}"
)
if isinstance(zip_values, str):
log.error(zip_values)
Expand Down Expand Up @@ -362,8 +369,8 @@ def handle_sub_action():
elif SUB_ACTION == "reboot":
subprocess.call("shutdown /r /t 3", shell=False)
# elif sub_action == "webhook":
# Implement this in future
# log.warning("This feature is not implemented yet! Sorry")
# Implement this in future
# log.warning("This feature is not implemented yet! Sorry")


if __name__ == "__main__":
Expand Down
6 changes: 6 additions & 0 deletions CODE/VulnScan/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# VulnScan Documentation

> [!WARNING]
> VulnScan will be moved to a different repository soon.
> This part of the repository will be archived and the new repository will be linked here.
> The `pkl` and `pth` files will stay here, linked properly for `vulnscan.py`,
> VulnScan will NOT be moved to the other repository.

## Overview

VulnScan is designed to detect sensitive data across various file formats. It offers a modular framework to train models using diverse algorithms, from traditional ML classifiers to advanced Neural Networks. This document outlines the system's naming conventions, lifecycle, and model configuration.
Expand Down
Loading
Loading