summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-09-25 10:38:06 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-09-25 10:38:06 +0200
commitf34d39946213f68c4d49c47eaaedb99b0f5f47ad (patch)
treec98ab1d8e90275c203b5e4b8e6ce1b53ff3d0eff /dev
parentdaa4f8c748d290feba8a71e889743a8a3097ad7d (diff)
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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/base/EncryptFS/build.json2
-rw-r--r--dev/base/FireWall/build.json19
-rw-r--r--dev/base/FireWall/fwapi.hxx7
-rw-r--r--dev/base/FireWall/src/fwentry.cc5
-rw-r--r--dev/base/ReadMe.md4
-rw-r--r--dev/base/RunDLL64/src/dll.cxx4
-rw-r--r--dev/base/RunXPCOM/src/xpcom.cxx4
7 files changed, 42 insertions, 3 deletions
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 <sci/sci_base.hxx> \ 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 <fwapi.hxx> \ 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 <sci/sci_base.hxx>
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 <sci/sci_base.hxx>
typedef SInt32 (*RPCProcKind)(IUnknown*);