pcileech-4.11.ebuild

This commit is contained in:
Anton Bolshakov 2021-08-17 10:04:24 +08:00
parent ef813a813b
commit d9131c0a16
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
5 changed files with 189 additions and 1 deletions

View file

@ -1,2 +1,2 @@
DIST pcileech-4.10.tar.gz 326747 BLAKE2B 6382bbbc64d2d9b19719c59fec098e2f17f52eeeeb2a33a288981c60c0e5d5eaace63976a1ff0968f8eea48d54d311759ff74558e8df787b1d728fae3514f06a SHA512 35f66f1c6edf0edf5bc657b86f35d4b795611752eea4731e53b19535e10ec8a95666260824d3c97c32bb1fa31648c1856819218536ad5831f91bb03c88da2996
DIST pcileech-4.11.tar.gz 330763 BLAKE2B d58bd53478a0b441795a3ea4caea9f03335131433288a63d92bc9f86cd8873aed6f0501ac69b4282d93ea025e02f45d30b89b2e877b9cc161ba0cc07217d0fea SHA512 63de7fc69bb73bb5c7535a26c81319b768574c35a780f6e5214345b8cfc8cb761c650db4c677d5d3de70ed07552069934572ef52a5bf28eaff7a213d9d4adc50
DIST pcileech-4.9.tar.gz 329085 BLAKE2B 666a7cc12ea07cc6732bf99f55c3e2d3b6fa10d5e95728f24f5aede0581d8fcb20da6dca52da38d2ab71c008c372d11c6072fa6102f226e8c61ef2d212abc331 SHA512 bfd66c020202eee93183a39d0ca714d7e02eacdb3f839bed9f460184a4c7120cf6e93af472669c324ea41c2a502a4cd374aceef275c036326b6d45c21ec6112c

View file

@ -14,9 +14,16 @@ IUSE="ft60x_driver"
DEPEND="virtual/libusb:1
>=dev-libs/LeechCore-2.4
dev-libs/memprocfs
ft60x_driver? ( sys-kernel/ft60x_driver )"
RDEPEND="${DEPEND}"
src_prepare() {
sed '/mv leechcore.so/d' -i pcileech/Makefile || die
sed '/mv vmm.so/d' -i pcileech/Makefile || die
eapply_user
}
src_compile() {
emake -C pcileech
}

View file

@ -0,0 +1 @@
DIST memprocfs-4.2.tar.gz 2909521 BLAKE2B 3030aa6ff50ba2b81d85bf513c8a900bd00f617f86a1f0912fa47cb8cfaa02a8b22b4731efd179fff9f93c441a2fe5ce74e5ee9c506bd1524ee487f119cbdc13 SHA512 d63a830c4325d1a9b592c27997f64d7006a347ab7ae92633298c7b08fd6bfb9c30827aea7199991361cb6d44d7f250aafc7b688b1cee24d31294b54728b276e5

View file

@ -0,0 +1,145 @@
From 886427ffb4bcfd4cecb8a7c40dfde52e3901ecab Mon Sep 17 00:00:00 2001
From: ufrisk <github_ufrisk@frizk.net>
Date: Mon, 16 Aug 2021 17:18:41 +0200
Subject: [PATCH] fix: build on gcc 10
---
MemProcFS/version.h | 4 ++--
m_vmemd/version.h | 4 ++--
vmm/fc.c | 10 ++++++++++
vmm/fc.h | 2 +-
vmm/version.h | 4 ++--
vmm/vmm.c | 9 +++++++++
vmm/vmm.h | 4 ++--
vmmpyc/version.h | 4 ++--
8 files changed, 30 insertions(+), 11 deletions(-)
diff --git a/MemProcFS/version.h b/MemProcFS/version.h
index 88f4009..f64dc76 100644
--- a/MemProcFS/version.h
+++ b/MemProcFS/version.h
@@ -3,8 +3,8 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 2
-#define VERSION_REVISION 0
-#define VERSION_BUILD 36
+#define VERSION_REVISION 1
+#define VERSION_BUILD 37
#define VER_FILE_DESCRIPTION_STR "MemProcFS"
#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD
diff --git a/m_vmemd/version.h b/m_vmemd/version.h
index 814c9df..d2d731d 100644
--- a/m_vmemd/version.h
+++ b/m_vmemd/version.h
@@ -3,8 +3,8 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 2
-#define VERSION_REVISION 0
-#define VERSION_BUILD 36
+#define VERSION_REVISION 1
+#define VERSION_BUILD 37
#define VER_FILE_DESCRIPTION_STR "MemProcFS : Plugin vmemd"
#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD
diff --git a/vmm/fc.c b/vmm/fc.c
index 644534e..0994d57 100644
--- a/vmm/fc.c
+++ b/vmm/fc.c
@@ -29,6 +29,16 @@ static LPSTR FC_SQL_SCHEMA_STR =
"DROP TABLE IF EXISTS str; " \
"CREATE TABLE str ( id INTEGER PRIMARY KEY, cbu INT, cbj INT, sz TEXT ); ";
+
+
+// ----------------------------------------------------------------------------
+// FC global variable below:
+// ----------------------------------------------------------------------------
+
+PFC_CONTEXT ctxFc = NULL;
+
+
+
// ----------------------------------------------------------------------------
// SQLITE GENERAL FUNCTIONALITY:
// ----------------------------------------------------------------------------
diff --git a/vmm/fc.h b/vmm/fc.h
index dc3de1a..8b19b2a 100644
--- a/vmm/fc.h
+++ b/vmm/fc.h
@@ -69,7 +69,7 @@ typedef struct tdFC_CONTEXT {
// FC global variable below:
// ----------------------------------------------------------------------------
-PFC_CONTEXT ctxFc;
+extern PFC_CONTEXT ctxFc;
diff --git a/vmm/version.h b/vmm/version.h
index 57cc953..c52c324 100644
--- a/vmm/version.h
+++ b/vmm/version.h
@@ -3,8 +3,8 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 2
-#define VERSION_REVISION 0
-#define VERSION_BUILD 36
+#define VERSION_REVISION 1
+#define VERSION_BUILD 37
#define VER_FILE_DESCRIPTION_STR "MemProcFS : Core"
#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD
diff --git a/vmm/vmm.c b/vmm/vmm.c
index 3372156..0e29d2d 100644
--- a/vmm/vmm.c
+++ b/vmm/vmm.c
@@ -22,6 +22,15 @@
#include <sddl.h>
#endif /* _WIN32 */
+// ----------------------------------------------------------------------------
+// VMM global variables below:
+// ----------------------------------------------------------------------------
+
+PVMM_CONTEXT ctxVmm = NULL;
+PVMM_MAIN_CONTEXT ctxMain = NULL;
+
+
+
// ----------------------------------------------------------------------------
// CACHE FUNCTIONALITY:
// PHYSICAL MEMORY CACHING FOR READS AND PAGE TABLES
diff --git a/vmm/vmm.h b/vmm/vmm.h
index 107c11b..2fca804 100644
--- a/vmm/vmm.h
+++ b/vmm/vmm.h
@@ -1209,8 +1209,8 @@ typedef struct tdVMM_MAIN_CONTEXT {
// VMM global variables below:
// ----------------------------------------------------------------------------
-PVMM_CONTEXT ctxVmm;
-PVMM_MAIN_CONTEXT ctxMain;
+extern PVMM_CONTEXT ctxVmm;
+extern PVMM_MAIN_CONTEXT ctxMain;
#define vmmprintf(format, ...) { if(ctxMain->cfg.fVerboseDll) { printf(format, ##__VA_ARGS__); } }
#define vmmprintfv(format, ...) { if(ctxMain->cfg.fVerbose) { printf(format, ##__VA_ARGS__); } }
diff --git a/vmmpyc/version.h b/vmmpyc/version.h
index ec41905..b7978e6 100644
--- a/vmmpyc/version.h
+++ b/vmmpyc/version.h
@@ -3,8 +3,8 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 2
-#define VERSION_REVISION 0
-#define VERSION_BUILD 36
+#define VERSION_REVISION 1
+#define VERSION_BUILD 37
#define VER_FILE_DESCRIPTION_STR "MemProcFS : Python API"
#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD

View file

@ -0,0 +1,35 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="The Memory Process File System"
HOMEPAGE="https://github.com/ufrisk/MemProcFS"
SRC_URI="https://github.com/ufrisk/MemProcFS/archive/refs/tags/v4.2.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
DEPEND="virtual/libusb:*
sys-fs/fuse
dev-libs/openssl
app-arch/lz4"
RDEPEND="${DEPEND}"
S="${WORKDIR}/MemProcFS-${PV}"
src_prepare() {
#https://github.com/ufrisk/MemProcFS/issues/72
eapply "${FILESDIR}/886427ffb4bcfd4cecb8a7c40dfde52e3901ecab.patch"
sed '/mv leechcore.so/d' -i vmm/Makefile || die
eapply_user
}
src_compile() {
emake -C vmm vmm
}
src_install(){
dolib.so files/vmm.so
}