mirror of
https://github.com/monoxgas/sRDI
synced 2026-06-06 16:14:36 +00:00
Fix small offset error in is64BitDll
This commit is contained in:
+1
-1
@@ -467,7 +467,7 @@ namespace RDIShellcodeLoader
|
||||
IntPtr scPointer = scHandle.AddrOfPinnedObject();
|
||||
|
||||
Int32 headerOffset = Marshal.ReadInt32(scPointer, 60);
|
||||
UInt16 magic = (UInt16)Marshal.ReadInt16(scPointer, 60 + headerOffset);
|
||||
UInt16 magic = (UInt16)Marshal.ReadInt16(scPointer, headerOffset + 4);
|
||||
|
||||
if (magic == (UInt16)512 || magic == (UInt16)34404)
|
||||
is64Bit = true;
|
||||
|
||||
@@ -41,7 +41,7 @@ public class sRDI
|
||||
IntPtr scPointer = scHandle.AddrOfPinnedObject();
|
||||
|
||||
Int32 headerOffset = Marshal.ReadInt32(scPointer, 60);
|
||||
UInt16 magic = (UInt16)Marshal.ReadInt16(scPointer, 60 + headerOffset);
|
||||
UInt16 magic = (UInt16)Marshal.ReadInt16(scPointer, headerOffset + 4);
|
||||
|
||||
if (magic == (UInt16)512 || magic == (UInt16)34404)
|
||||
is64Bit = true;
|
||||
@@ -51,7 +51,6 @@ public class sRDI
|
||||
return is64Bit;
|
||||
}
|
||||
|
||||
|
||||
public static byte[] ConvertToShellcode(byte[] dllBytes, uint functionHash, byte[] userData, uint flags)
|
||||
{
|
||||
//MARKER:S
|
||||
|
||||
Reference in New Issue
Block a user