Results 1 to 10 of 10
  1. #1
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    http://mpgh.net MPGHCash: $700,458,011
    Posts
    1,196
    Reputation
    131
    Thanks
    2,233
    My Mood
    Buzzed

    [C#] Inject Source Code

    Injector Source Code

    [php]using System.Diagnostics;
    using System;
    using System.Windows.Forms;
    using System.Runtime.InteropServices;

    namespace Inject_Source_By_CoderNever
    {
    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("Engine");
    TargetProcessHandle = OpenProcess(0x1F0FFF, false, TargetProcess[0].Id);
    pszLibFileRemote = Application.StartupPath + ("\\DLLNAME.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("HSUpdate");
    if (TargetProcess.Length == 0)
    {}else{
    Inject();
    timer1.Stop();
    this.Close();
    }}
    }
    }
    [/php]

    Credits
    CoderNever - Converting Code from Visual Basic to C#
    Temp - Original Visual Basic injector code.
    Last edited by CoderNever; 08-12-2010 at 08:47 AM.
    I Apologize for my latest release "CN Hack 7-11-11" I assure you it is not up to "CN Standard", and I feel bad due to all its flaws. I'm working hard, and steadily to remake it for I can bring everyone a hack they will really like!


    Support NSY Inject

    CoderNever
    GameArena
    _Fk127_
    ViSiON
    -Lunar_
    Bubbles Kittys

    Code:
    óN Mike says
    Cyber Bulling is bad
    J Whit says
    Yea bob wants to fuck my pussy
    óN Mike says
    Whit
    dont be a cyber bully
    J Whit says
    FUCK YOU
    óN Mike says
    Words hurt
    ѱ NOOB says
    whit gets bullied in school so he goes online and bullies kids online
    J Whit says
    DUH
    Stress relieve
    relieving
    The kintergarden kids beat my ass
    óN Mike says
    Thats just sad

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Does it work for 64 bit systems?

  3. #3
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    http://mpgh.net MPGHCash: $700,458,011
    Posts
    1,196
    Reputation
    131
    Thanks
    2,233
    My Mood
    Buzzed
    Well I'm on 32 so its untested for 64 :S.
    I Apologize for my latest release "CN Hack 7-11-11" I assure you it is not up to "CN Standard", and I feel bad due to all its flaws. I'm working hard, and steadily to remake it for I can bring everyone a hack they will really like!


    Support NSY Inject

    CoderNever
    GameArena
    _Fk127_
    ViSiON
    -Lunar_
    Bubbles Kittys

    Code:
    óN Mike says
    Cyber Bulling is bad
    J Whit says
    Yea bob wants to fuck my pussy
    óN Mike says
    Whit
    dont be a cyber bully
    J Whit says
    FUCK YOU
    óN Mike says
    Words hurt
    ѱ NOOB says
    whit gets bullied in school so he goes online and bullies kids online
    J Whit says
    DUH
    Stress relieve
    relieving
    The kintergarden kids beat my ass
    óN Mike says
    Thats just sad

  4. #4
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    Quote Originally Posted by whit View Post
    Does it work for 64 bit systems?
    there is no reason why it wouldn't





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  5. #5
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Quote Originally Posted by GodHack2 View Post
    there is no reason why it wouldn't
    Yes there is He said he convert the Vb Code to C# ...
    The public Vb Injection method dont work on 64 bit systems

  6. #6
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,085
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    There is no reason why it should. 32 and 64 are so different they might as well make a new OS for it >.>

    x64 uLong FTW LOL
    Any donations would help


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!
    Yes it is me... Yup Yup




  7. #7
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,561
    Reputation
    127
    Thanks
    5,912
    My Mood
    Happy
    Added temp to the credits.
    -Rest in peace leechers-

    Your PM box is 100% full.

  8. #8
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    http://mpgh.net MPGHCash: $700,458,011
    Posts
    1,196
    Reputation
    131
    Thanks
    2,233
    My Mood
    Buzzed
    Are you sure thats him, because I have no fucking clue who came up with the first "Wow Injector code".
    I Apologize for my latest release "CN Hack 7-11-11" I assure you it is not up to "CN Standard", and I feel bad due to all its flaws. I'm working hard, and steadily to remake it for I can bring everyone a hack they will really like!


    Support NSY Inject

    CoderNever
    GameArena
    _Fk127_
    ViSiON
    -Lunar_
    Bubbles Kittys

    Code:
    óN Mike says
    Cyber Bulling is bad
    J Whit says
    Yea bob wants to fuck my pussy
    óN Mike says
    Whit
    dont be a cyber bully
    J Whit says
    FUCK YOU
    óN Mike says
    Words hurt
    ѱ NOOB says
    whit gets bullied in school so he goes online and bullies kids online
    J Whit says
    DUH
    Stress relieve
    relieving
    The kintergarden kids beat my ass
    óN Mike says
    Thats just sad

  9. #9
    Krypton1x's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Tacoma
    Posts
    13,307
    Reputation
    1184
    Thanks
    1,196
    My Mood
    Brooding
    I'm curious. Why did you choose C#?

  10. #10
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,561
    Reputation
    127
    Thanks
    5,912
    My Mood
    Happy
    Quote Originally Posted by CoderNever View Post
    Are you sure thats him, because I have no fucking clue who came up with the first "Wow Injector code".
    I know who released it public

    A guy on youtube leeched it from someone called temp.
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [HELP]Good injecter source code!
    By DeathHunter in forum Programming Tutorial Requests
    Replies: 7
    Last Post: 02-22-2010, 02:32 PM
  2. [HELP]Good injecter source code!
    By DeathHunter in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-22-2010, 02:32 PM
  3. Real VB injecter Source code
    By Ugleh in forum Visual Basic Programming
    Replies: 34
    Last Post: 01-02-2010, 10:38 PM
  4. [Source Code] C++ Code Injection
    By Matrix_NEO006 in forum C++/C Programming
    Replies: 2
    Last Post: 10-22-2009, 11:31 PM
  5. VB injecter Source code
    By Jimmy in forum Visual Basic Programming
    Replies: 20
    Last Post: 09-26-2009, 05:22 PM