Originally Posted by
fazilaynoor
any injector undetected ? or any code i can make injector i tried Armagedonz tutorial but its not injecting dll
- - - Updated - - -
code i used for injector but its not injecting help fix this or new code or any private injector
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace Injector
{
public partial class Form1 : Form
{
[DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int ReadProcessMemory(int hProcess, int lpBaseAddress, string lpBuffer, int nSize, ref int lpNumberOfBytesWritten);
[DllImport("kernel32", EntryPoint = "LoadLibraryA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int LoadLibrary(string lpLibFileName);
[DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int WriteProcessMemory(System.IntPtr hProcess, int lpBaseAddress, string lpBuffer, int nSize, int lpNumberOfBytesWritten);
[DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int VirtualAllocEx(System.IntPtr hProcess, int lpAddress, int dwSize, int flAllocationType, int flProtect);
[DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int GetProcAddress(int hModule, string lpProcName);
[DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int CreateRemoteThread(System.IntPtr hProcess, int lpThreadAttributes, int dwStackSize, int lpStartAddress, int lpParameter, int dwCreationFlags, int lpThreadId);
[DllImport("Kernel32", EntryPoint = "GetModuleHandleA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
private static extern int GetModuleHandle(string lpModuleName);
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
[DllImport("kernel32", EntryPoint = "CloseHandle")]
private static extern int CloseHandle(System.IntPtr hObject);
[DllImport("user32", EntryPoint = "FindWindowA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
private static extern int FindWindow(string lpClassName, string lpWindowName);
void Inject()
{
System.IntPtr TargetProcessHandle;
int TargetBufferSize;
String pszLibFileRemote;
int pfnStartAddr;
Process[] TargetProcess = Process.GetProcessesByName("BlackShot");
TargetProcessHandle = OpenProcess(0x1F0FFF, false, TargetProcess[0].Id);
pszLibFileRemote = Application.StartupPath + ("\\Fasi.dll");
pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32.dll"), "LoadLibraryA");
TargetBufferSize = 1 + pszLibFileRemote.Length;
int Rtn;
int LoadLibParamAdr;
LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, 4096, 4);
Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0);
CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0);
CloseHandle(TargetProcessHandle);
}
private void timer1_Tick(object sender, EventArgs e)
{
Process[] TargetProcess = Process.GetProcessesByName("BlackShot");
if (TargetProcess.Length == 0)
{ }
else
{
Inject();
timer1.Stop();
this.Close();
}
}
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
- - - Updated - - -
any pro coders help little I am newbie