GLOBAL OFFENSIVE SECURITY HACKERS
Anonymous Philippines
Anonymous General Santos
Anonymous Davao
MeowSec
Log in

I forgot my password

Search
 
 

Display results as :
 

 


Rechercher Advanced Search

Latest topics
» GO LOADER OFFICAL
by Zaisen Mon Nov 05, 2018 8:39 pm

» [Help] How to use Termux??
by Zaisen Mon Nov 05, 2018 8:17 pm

» FACEBOOK HACKING W/ COOKIE
by Zaisen Mon Nov 05, 2018 6:40 pm

» WARROCK GO LOADER
by Zaisen Mon Nov 05, 2018 1:59 pm

» Termux (Facebook-Bruteforce)
by Ahlex_paf Tue Oct 23, 2018 6:30 pm

» XENOS INJECTOR 2.2.2
by emikako123 Tue Oct 23, 2018 2:14 am

» D3D HACK WARROCK PH
by tiel123 Mon Oct 22, 2018 7:34 pm

» Raml[Zii] D3D simple!
by mufak Tue Oct 16, 2018 6:09 pm

» [Release] Simple Hack 2k18!!
by Jason Thu Oct 11, 2018 7:51 pm

» Http Injector
by tiel123 Mon Oct 08, 2018 12:37 pm

» XENOS INJECTOR
by tiel123 Sun Oct 07, 2018 11:30 pm

» OllyDBG 64bit
by Zaisen Tue Oct 02, 2018 9:37 am

» Simple hack!!!Soon!
by ployaxngnext Sat Sep 29, 2018 11:00 pm

» THEME by your self
by Zaisen Wed Sep 26, 2018 9:47 am

» VISUAL C++ 2010 ONLY
by Zaisen Wed Sep 26, 2018 9:34 am


BLACKSHOT AUTO INJECTOR

Go down

default BLACKSHOT AUTO INJECTOR

Post by Zaisen on Mon Oct 16, 2017 11:23 am



Code:
using System.Diagnostics;
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;



[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 + ("\\SILK.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();
}
}
avatar
Zaisen
______________
______________

Moods : WALAY KWARTA
Posts : 50
Join date : 2017-09-08

View user profile http://eliteph.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum