C# and dll injection

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
3 Tem 2020
Mesajlar
52
Tepki puanı
5
Yaş
39
5 HİZMET YILI
I'm a system developer, but never worked with dll injection before...
I searched a little bit on the internet and figure out, the best way of ***** or cheat a game is with DLL injection.
Anyone knows what is the best language to work with this, and if i can use my skills in C# to develop something like this.
 
✅❤♡MH Battle Eye♡❤✅
Emektar Üye
Katılım
15 Haz 2020
Mesajlar
179
Çözümler
6
Tepki puanı
74
Ödüller
4
Yaş
37
5 HİZMET YILI
Wrong category for this topic I will move it to C# area and programming but C# and C++ is some of the best dll production applications for injections etc
 
Onaylı Üye
Katılım
3 Tem 2020
Mesajlar
52
Tepki puanı
5
Yaş
39
5 HİZMET YILI
Wrong category for this topic I will move it to C# area and programming but C# and C++ is some of the best dll production applications for injections etc
I work with financial and fiscal system, maybe the first step is to practice and start to create some games, or have a better way to learn this?
 
✅❤♡MH Battle Eye♡❤✅
Emektar Üye
Katılım
15 Haz 2020
Mesajlar
179
Çözümler
6
Tepki puanı
74
Ödüller
4
Yaş
37
5 HİZMET YILI
Apparently they are trying to translate and are not putting any effort into there posts but they will soon find out posts begin to vanish putting two words and thinking that will do is still spam/flooding Put some effort and communicate properly or find the Non-English section and talk there

Also
Morgantine,
Your best bet would to be google dll cheats and sources to learn about pointers and access points, I would recommend making a dll for a offline single player game to learn that makes it 100 times easier to learn
 
Onaylı Üye
Katılım
3 Tem 2020
Mesajlar
52
Tepki puanı
5
Yaş
39
5 HİZMET YILI
Apparently they are trying to translate and are not putting any effort into there posts but they will soon find out posts begin to vanish putting two words and thinking that will do is still spam/flooding Put some effort and communicate properly or find the Non-English section and talk there

Also
Morgantine,
Your best bet would to be google dll cheats and sources to learn about pointers and access points, I would recommend making a dll for a offline single player game to learn that makes it 100 times easier to learn
I'll sure do that, thanks a lot for the tips.
I know a little bit about pointers, but think never heard about entry points.
 
Ultra Üye
Katılım
22 Mar 2019
Mesajlar
1,538
Çözümler
10
Tepki puanı
125
Ödüller
7
Yaş
29
7 HİZMET YILI
I started learning too and the software always gets my attention
 
Üye
Katılım
7 Haz 2020
Mesajlar
5
Tepki puanı
0
Yaş
31
5 HİZMET YILI
It's ok to do it with c# or C++, depends how confortable your are with the language you use
 
Üye
Katılım
19 Tem 2020
Mesajlar
49
Tepki puanı
2
Yaş
27
5 HİZMET YILI
I started learning too and the software always gets my attention
 
Üye
Katılım
24 Tem 2020
Mesajlar
49
Tepki puanı
2
Yaş
26
5 HİZMET YILI
theres videos on youtube by guidedhacking, very helpfull
 
Onaylı Üye
Katılım
25 Tem 2020
Mesajlar
61
Çözümler
1
Tepki puanı
8
Yaş
25
5 HİZMET YILI
here a simple executor that i write like 2 years ago for a game called "roblox"
Kod:
 title="injector"]using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;

namespace yourexploitnamehere
{
  class Injector
  {
      public enum DllInjectionResult
      {
          DllNotFound,
          GameProcessNotFound,
          InjectionFailed,
          Success
      }

      public sealed class DllInjector
      {
          static readonly IntPtr INTPTR_ZERO = (IntPtr)0;

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern IntPtr OpenProcess(uint dwDesiredAccess, int bInheritHandle, uint dwProcessId);

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern int CloseHandle(IntPtr hObject);

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern IntPtr GetProcAddress(IntPtr hModule, string lpProcName);

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern IntPtr GetModuleHandle(string lpModuleName);

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress, IntPtr dwSize, uint flAllocationType, uint flProtect);

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern int WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] buffer, uint size, int lpNumberOfBytesWritten);

          [DllImport("kernel32.dll", SetLastError = true)]
          static extern IntPtr CreateRemoteThread(IntPtr hProcess, IntPtr lpThreadAttribute, IntPtr dwStackSize, IntPtr lpStartAddress,
              IntPtr lpParameter, uint dwCreationFlags, IntPtr lpThreadId);

          static DllInjector _instance;

          public static DllInjector GetInstance
          {
              get
              {
                  if (_instance == null)
                  {
                      _instance = new DllInjector();
                  }
                  return _instance;
              }
          }

          DllInjector() { }

          public DllInjectionResult Inject(string sProcName, string sDllPath)
          {
              if (!File.Exists(sDllPath))
              {
                  return DllInjectionResult.DllNotFound;
              }

              uint _procId = 0;

              Process[] _procs = Process.GetProcesses();
              for (int i = 0; i < _procs.Length; i++)
              {
                  if (_procs.ProcessName == sProcName)
                  {
                      _procId = (uint)_procs.Id;
                      break;
                  }
              }

              if (_procId == 0)
              {
                  return DllInjectionResult.GameProcessNotFound;
              }

              if (!bInject(_procId, sDllPath))
              {
                  return DllInjectionResult.InjectionFailed;
              }

              return DllInjectionResult.Success;
          }

          bool bInject(uint pToBeInjected, string sDllPath)
          {
              IntPtr hndProc = OpenProcess((0x2 | 0x8 | 0x10 | 0x20 | 0x400), 1, pToBeInjected);

              if (hndProc == INTPTR_ZERO)
              {
                  return false;
              }

              IntPtr lpLLAddress = GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA");

              if (lpLLAddress == INTPTR_ZERO)
              {
                  return false;
              }

              IntPtr lpAddress = VirtualAllocEx(hndProc, (IntPtr)null, (IntPtr)sDllPath.Length, (0x1000 | 0x2000), 0X40);

              if (lpAddress == INTPTR_ZERO)
              {
                  return false;
              }

              byte[] bytes = Encoding.ASCII.GetBytes(sDllPath);

              if (WriteProcessMemory(hndProc, lpAddress, bytes, (uint)bytes.Length, 0) == 0)
              {
                  return false;
              }

              if (CreateRemoteThread(hndProc, (IntPtr)null, INTPTR_ZERO, lpLLAddress, lpAddress, 0, (IntPtr)null) == INTPTR_ZERO)
              {
                  return false;
              }

              CloseHandle(hndProc);

              return true;
          }
      }
  }
}
 
Moderatörün son düzenlenenleri:
Onaylı Üye
Katılım
27 Nis 2020
Mesajlar
109
Çözümler
2
Tepki puanı
8
Ödüller
5
Yaş
27
6 HİZMET YILI
i think the best language for that is c or c++ but u can do it with c# as well
 
Üye
Katılım
30 Tem 2020
Mesajlar
18
Tepki puanı
0
Yaş
33
5 HİZMET YILI
I work with financial and fiscal system, maybe the first step is to practice and start to create some games, or have a better way to learn this?
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst