Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.2 features and deprecation #172

Merged
merged 7 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all 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.

33 changes: 17 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,13 @@ 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: The `extra` feature has been removed! 🚫\n"
"Why? It didn't match our code quality standards.\n"
"What to use instead? Check out our new features with --help\033[0m")
input("Press Enter to exit...")
exit(0)

if ACTION == "update":
log.info("Updating...")
Expand Down Expand Up @@ -170,14 +173,11 @@ 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: The `unzip_extra` feature has been removed! 🚫\n"
"Why? It didn't match our code quality standards.\n"
"What to use instead? Check out our new features with --help\033[0m")
input("Press Enter to exit...")
exit(0)

Expand Down Expand Up @@ -327,12 +327,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 +363,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
11 changes: 11 additions & 0 deletions CODE/VulnScan/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# VulnScan Documentation

> [!WARNING]
> # VulnScan Migration Notice 🚨
>
> VulnScan is moving to a new home! Here's what you need to know:
> - This repository section will be archived
> - A link to the new repository will be added here
> - The `pkl` and `pth` files will stay here (they'll work with `vulnscan.py`)
> - VulnScan itself will NOT be moved to the other repository
>
> This will occur in version `3.2.0` of Logicytics.

## 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