Skip to content

Commit

Permalink
Fixed the Relative Address in GenerateRWXMemorySegment() format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kara-4search committed Jan 21, 2022
1 parent 52bda83 commit 91980e5
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 2 deletions.
Binary file modified .vs/HellgateLoader/v16/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion HellgateLoader/Program.cs
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Linq;
using System.Runtime.InteropServices;

using System.Text;

namespace HellgateLoader
{
Expand Down
2 changes: 1 addition & 1 deletion HellgateLoader/SyscallRes/SyscallFunctions.cs
Expand Up @@ -33,7 +33,7 @@ public bool GenerateRWXMemorySegment()
// Get the address of the function and check if first opcode == JMP
IntPtr pMethod = method.MethodHandle.GetFunctionPointer();

Console.WriteLine($"\t[*] Relative Address: 0x{pMethod:X16}");
Console.WriteLine($"\t[*] Relative Address: 0x{pMethod.ToInt64():X16}");
Console.Write($"{Marshal.ReadByte(pMethod, -1):X2} # ");
Console.Write($"{Marshal.ReadByte(pMethod, 0):X2}");
Console.Write($"{Marshal.ReadByte(pMethod, 1):X2}");
Expand Down
Binary file modified HellgateLoader/bin/x64/Debug/HellgateLoader.exe
Binary file not shown.
Binary file modified HellgateLoader/bin/x64/Debug/HellgateLoader.pdb
Binary file not shown.
Binary file modified HellgateLoader/bin/x64/Release/HellgateLoader.exe
Binary file not shown.
Binary file modified HellgateLoader/bin/x64/Release/HellgateLoader.pdb
Binary file not shown.
Binary file added HellgateLoader/bin/x64/Release/ObfusHell.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified HellgateLoader/obj/x64/Debug/HellgateLoader.exe
Binary file not shown.
Binary file modified HellgateLoader/obj/x64/Debug/HellgateLoader.pdb
Binary file not shown.
Binary file modified HellgateLoader/obj/x64/Release/HellgateLoader.exe
Binary file not shown.
Binary file modified HellgateLoader/obj/x64/Release/HellgateLoader.pdb
Binary file not shown.

0 comments on commit 91980e5

Please sign in to comment.