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 #Temporarily hard coded library into script
def init_lib_linux_filesearch(): def init_lib_filesearch():
#Fractureiser #Fractureiser
global sus_linux_files_fractureiser global sus_files_fractureiser
sus_linux_files_fractureiser = [ sus_files_fractureiser = [
"~/.config/.data/lib.jar", "~/.config/.data/lib.jar",
"~/.config/systemd/user/systemd-utility.service", "~/.config/systemd/user/systemd-utility.service",
"/etc/systemd/system/systemd-utility.service" "/etc/systemd/system/systemd-utility.service"
] ]
#Skyrage #Skyrage
global sus_linux_files_skyrage global sus_files_skyrage
sus_linux_files_skyrage = [ sus_files_skyrage = [
"/bin/vmd-gnu", "/bin/vmd-gnu",
"/etc/systemd/system/vmd-gnu.service" "/etc/systemd/system/vmd-gnu.service"
] ]
def init_lib_win_filesearch(): def init_lib():
#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():
print("Initializing Linux Library: File Locations") print("Initializing Linux Library: File Locations")
init_lib_linux_filesearch() init_lib_filesearch()
print("NOTICE: Signature checks not implemented yet.") print("NOTICE: Signature checks not implemented yet.")
def init_lib_win(): def scan():
init_lib_win_filesearch()
print("NOTICE: Signature checks not implemented yet.")
def scan_linux():
global threats global threats
global threats_names global threats_names
@@ -65,7 +46,7 @@ def scan_linux():
def scan_summary(): def scan_summary():
global threats_found global threats_found
print("Scan returned", len(threats_found), "threats") print("\nScan returned", len(threats_found), "threats")
if len(threats_found) > 0: if len(threats_found) > 0:
for i in threats_found: for i in threats_found:
@@ -76,15 +57,15 @@ def scan_summary():
def run(): def run():
if osname == "nt": #If OS is Windows, do Windows inits and scan, elif OS is Linux, do Linux inits and scan. 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("Windows system detected.")
print("Ending here; Not implemented yet.") print("Ending here; Windows is not supported.")
exit() exit()
elif osname == "posix": elif osname == "posix":
print("Posix compliant (Linux) system detected") print("Posix compliant (Linux) system detected")
init_lib_linux() init_lib()
global threats global threats
threats = [ threats = [
sus_linux_files_fractureiser, sus_files_fractureiser,
sus_linux_files_skyrage sus_files_skyrage
] ]
global threats_names global threats_names
threats_names = [ threats_names = [
@@ -92,13 +73,12 @@ def run():
"Skyrage {Files}" "Skyrage {Files}"
] ]
scan_linux() scan()
scan_summary() scan_summary()
exit() exit()
try: try:
while True: run()
run()
except KeyboardInterrupt: except KeyboardInterrupt:
exit() exit()

View File

@@ -2,9 +2,7 @@
## Cutieguwu's basic virus and malware scanner. ## Cutieguwu's basic virus and malware scanner.
**In very early development!!! Windows is not working yet!!!** **In very early development!!!**
Linux is getting priority for support and will have actual testing done.
**NOTICE:** As I am busy doing exams and summatives, this project is getting put on hold until further notice. **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. - 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. - 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. - 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.