From f34d39946213f68c4d49c47eaaedb99b0f5f47ad Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Wed, 25 Sep 2024 10:38:06 +0200 Subject: IMP: Add driver creation tool, zxdmake. Also adding a FireWall system. - A FW is used to block connections from unknown ends. - The ZXD is a format used to describe a ZKA PE32+ driver. - Some refactors have been done as well. Signed-off-by: Amlal EL Mahrouss --- dev/base/EncryptFS/build.json | 2 +- dev/base/FireWall/build.json | 19 +++++++++++++++++++ dev/base/FireWall/fwapi.hxx | 7 +++++++ dev/base/FireWall/src/fwentry.cc | 5 +++++ dev/base/ReadMe.md | 4 ++-- dev/base/RunDLL64/src/dll.cxx | 4 ++++ dev/base/RunXPCOM/src/xpcom.cxx | 4 ++++ 7 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 dev/base/FireWall/build.json create mode 100644 dev/base/FireWall/fwapi.hxx create mode 100644 dev/base/FireWall/src/fwentry.cc (limited to 'dev/base') diff --git a/dev/base/EncryptFS/build.json b/dev/base/EncryptFS/build.json index 3b41b059..1f9b018e 100644 --- a/dev/base/EncryptFS/build.json +++ b/dev/base/EncryptFS/build.json @@ -3,7 +3,7 @@ "compiler_std": "c++20", "headers_path": ["../", "./"], "sources_path": ["src/*.cxx"], - "output_name": "efs.sys", + "output_name": "efs.zsc", "compiler_flags": [ "-ffreestanding", "-shared", diff --git a/dev/base/FireWall/build.json b/dev/base/FireWall/build.json new file mode 100644 index 00000000..7f8c4956 --- /dev/null +++ b/dev/base/FireWall/build.json @@ -0,0 +1,19 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++.exe", + "compiler_std": "c++20", + "headers_path": [ "../", "./", "../../" ], + "sources_path": [ "src/*.cc" ], + "output_name": "firewall.zsc", + "compiler_flags": [ + "-ffreestanding", + "-fno-rtti", + "-fno-exceptions", + "-Wl,--subsystem=17" + ], + "cpp_macros": [ + "__FIREWALL_AMD64__", + "cFWVersion=0x0100", + "cFWVersionHighest=0x0100", + "cFWVersionLowest=0x0100" + ] +} diff --git a/dev/base/FireWall/fwapi.hxx b/dev/base/FireWall/fwapi.hxx new file mode 100644 index 00000000..7e22333d --- /dev/null +++ b/dev/base/FireWall/fwapi.hxx @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2024 ZKA Technologies + */ + +#pragma once + +#include \ No newline at end of file diff --git a/dev/base/FireWall/src/fwentry.cc b/dev/base/FireWall/src/fwentry.cc new file mode 100644 index 00000000..e7b929d3 --- /dev/null +++ b/dev/base/FireWall/src/fwentry.cc @@ -0,0 +1,5 @@ +/* + * Copyright (c) 2024 ZKA Technologies + */ + +#include \ No newline at end of file diff --git a/dev/base/ReadMe.md b/dev/base/ReadMe.md index 46443aea..307ef17d 100644 --- a/dev/base/ReadMe.md +++ b/dev/base/ReadMe.md @@ -1,7 +1,7 @@ -# ZKA User DLLs/Programs. +# ZKA User apps and services. ## Description: -- Used to provide features to a program from the sci.dll. +- Provides firewall, filesystem encrypter and rundll/runxpcom tools. ###### Copyright ZKA Technologies, all rights reserved. diff --git a/dev/base/RunDLL64/src/dll.cxx b/dev/base/RunDLL64/src/dll.cxx index 560a404d..ece370dc 100644 --- a/dev/base/RunDLL64/src/dll.cxx +++ b/dev/base/RunDLL64/src/dll.cxx @@ -1,3 +1,7 @@ +/* + * Copyright (c) 2024 ZKA Technologies + */ + #include typedef int (*MainKind)(int, char**); diff --git a/dev/base/RunXPCOM/src/xpcom.cxx b/dev/base/RunXPCOM/src/xpcom.cxx index 9536b070..7c6aa252 100644 --- a/dev/base/RunXPCOM/src/xpcom.cxx +++ b/dev/base/RunXPCOM/src/xpcom.cxx @@ -1,3 +1,7 @@ +/* + * Copyright (c) 2024 ZKA Technologies + */ + #include typedef SInt32 (*RPCProcKind)(IUnknown*); -- cgit v1.2.3