Removed Windows support

I will not be making Detectowor work on Windows.
This commit is contained in:
Cutieguwu
2023-07-13 12:36:46 -04:00
parent 100b7710c6
commit 1b0c488997
2 changed files with 16 additions and 39 deletions

View File

@@ -4,48 +4,29 @@ from os import path
#Temporarily hard coded library into script
def init_lib_linux_filesearch():
def init_lib_filesearch():
#Fractureiser
global sus_linux_files_fractureiser
sus_linux_files_fractureiser = [
global sus_files_fractureiser
sus_files_fractureiser = [
"~/.config/.data/lib.jar",
"~/.config/systemd/user/systemd-utility.service",
"/etc/systemd/system/systemd-utility.service"
]
#Skyrage
global sus_linux_files_skyrage
sus_linux_files_skyrage = [
global sus_files_skyrage
sus_files_skyrage = [
"/bin/vmd-gnu",
"/etc/systemd/system/vmd-gnu.service"
]
def init_lib_win_filesearch():
#Fractureiser
global sus_win_files_fractureiser
sus_win_files_fractureiser = [
r'%LOCALAPPDATA%\\Microsoft Edge\\libWebGL64.jar'
]
#Skyrage
global sus_win_files_skyrage
sus_win_files_skyrage = [
r'%AppData%\\Microsoft\\Start Menu\\Programs\\Startup\\jawaw.jar',
r'%AppData%\\..\\LocalLow\\Microsoft\\Internet Explorer\\DOMStore\\microsoft-vm-core'
]
def init_lib_linux():
def init_lib():
print("Initializing Linux Library: File Locations")
init_lib_linux_filesearch()
init_lib_filesearch()
print("NOTICE: Signature checks not implemented yet.")
def init_lib_win():
init_lib_win_filesearch()
print("NOTICE: Signature checks not implemented yet.")
def scan_linux():
def scan():
global threats
global threats_names
@@ -65,7 +46,7 @@ def scan_linux():
def scan_summary():
global threats_found
print("Scan returned", len(threats_found), "threats")
print("\nScan returned", len(threats_found), "threats")
if len(threats_found) > 0:
for i in threats_found:
@@ -76,15 +57,15 @@ def scan_summary():
def run():
if osname == "nt": #If OS is Windows, do Windows inits and scan, elif OS is Linux, do Linux inits and scan.
print("Windows system detected.")
print("Ending here; Not implemented yet.")
print("Ending here; Windows is not supported.")
exit()
elif osname == "posix":
print("Posix compliant (Linux) system detected")
init_lib_linux()
init_lib()
global threats
threats = [
sus_linux_files_fractureiser,
sus_linux_files_skyrage
sus_files_fractureiser,
sus_files_skyrage
]
global threats_names
threats_names = [
@@ -92,13 +73,12 @@ def run():
"Skyrage {Files}"
]
scan_linux()
scan()
scan_summary()
exit()
try:
while True:
run()
run()
except KeyboardInterrupt:
exit()

View File

@@ -2,9 +2,7 @@
## Cutieguwu's basic virus and malware scanner.
**In very early development!!! Windows is not working yet!!!**
Linux is getting priority for support and will have actual testing done.
**In very early development!!!**
**NOTICE:** As I am busy doing exams and summatives, this project is getting put on hold until further notice.
@@ -17,5 +15,4 @@ Linux is getting priority for support and will have actual testing done.
- The detector will later be able to pull information on detecting new malicious programs via a repository. I hope. That will likely not ever come to fruition, but who knows.
- By extension, at the very least, the library that is currently hard-coded into the script will be moved to an external file and read from there.
- Windows Support [Early Development]
- SHA checks. This will hopefully allow detection of, for example, Minecraft mods that are known to be infected with Fractureiser. Linux and MultiMC users will get priority for support over Windows and the base launcher.